* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f3ff;
    color: #222;
}

/* =========================
   HEADER
========================= */

header {
    background-color: #008c95;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
}

header p {
    margin: 0;
    font-size: 16px;
}

/* =========================
   APPOINTMENT CONTAINER
========================= */

.appointment-container {
    width: 90%;
    max-width: 650px;
    margin: 40px auto;
    background-color: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* =========================
   TITLE
========================= */

.appointment-container h2 {
    text-align: center;
    color: #008c95;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 15px;
}

.appointment-container > p {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

/* =========================
   FORM
========================= */

form {
    display: flex;
    flex-direction: column;
}

/* =========================
   LABELS
========================= */

label {
    margin-top: 18px;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
}

/* =========================
   INPUTS
========================= */

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    color: #222;
}

/* Input focus */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #008c95;
    box-shadow: 0 0 0 2px rgba(0, 140, 149, 0.15);
}

/* =========================
   TEXTAREA
========================= */

textarea {
    min-height: 100px;
    resize: vertical;
}

/* =========================
   BOOK APPOINTMENT BUTTON
========================= */

button {
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 7px;
    background-color: #008c95;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #00727a;
}

button:active {
    transform: scale(0.99);
}

/* =========================
   RESULT MESSAGE
========================= */

#result {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    line-height: 1.6;
}

/* =========================
   MOBILE RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    header {
        padding: 25px 15px;
    }

    header h1 {
        font-size: 26px;
    }

    header p {
        font-size: 14px;
    }

    .appointment-container {
        width: 94%;
        margin: 25px auto;
        padding: 25px 20px;
        border-radius: 12px;
    }

    .appointment-container h2 {
        font-size: 26px;
    }

    .appointment-container > p {
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        padding: 12px;
    }

    button {
        font-size: 17px;
        padding: 14px;
    }
}

/* =========================
   SMALL MOBILE PHONES
========================= */
.success-message {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    background-color: #e8f8f5;
}

.success-message h3 {
    color: #008c95;
    margin-top: 0;
    font-size: 20px;
}

.success-message p {
    line-height: 1.6;
}

.whatsapp-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 25px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 17px;
    font-weight: bold;
}

.whatsapp-button:hover {
    opacity: 0.9;
}

.error-message {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    background-color: #ffeaea;
    color: #c62828;
    font-weight: bold;
}
/* =========================
   APPOINTMENT TIME
========================= */

.time-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.time-row input {
    flex: 1;
}

.time-row select {
    width: 130px;
}

/* Mobile */

@media (max-width: 500px) {

    .time-row {
        gap: 8px;
    }

    .time-row input {
        width: 60%;
    }

    .time-row select {
        width: 40%;
    }
}