/* -----------------------------
   RESET & BASE
------------------------------ */
* {
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
    background: #f4f8fb;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

/* -----------------------------
   FORM CONTAINER
------------------------------ */
#appointmentForm {
    max-width: 860px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* -----------------------------
   HEADINGS
------------------------------ */
#appointmentForm h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #0f766e;
    border-bottom: 2px solid #e5f3f2;
    padding-bottom: 6px;
}

/* -----------------------------
   INPUTS & SELECTS
------------------------------ */
#appointmentForm input,
#appointmentForm select,
#appointmentForm textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

label {
    font-size: 13px;
}

#appointmentForm textarea {
    min-height: 90px;
    resize: vertical;
}

/* Focus State */
#appointmentForm input:focus,
#appointmentForm select:focus,
#appointmentForm textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* -----------------------------
   PLACEHOLDER
------------------------------ */
::placeholder {
    color: #9ca3af;
}

/* -----------------------------
   GRID LAYOUT
------------------------------ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* -----------------------------
   BUTTON
------------------------------ */
#appointmentForm button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: #0f766e;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#appointmentForm button:hover {
    background: #115e59;
}

#appointmentForm button:active {
    transform: scale(0.98);
}

/* -----------------------------
   STATUS MESSAGE
------------------------------ */
#formStatus {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
}

#formStatus.success {
    color: #047857;
}

#formStatus.error {
    color: #b91c1c;
}

/* -----------------------------
   INTL TEL INPUT FIX
------------------------------ */
.iti {
    width: 100%;
}

.iti input {
    padding-left: 88px !important;
}
/* intl-tel-input country dropdown overflow fix */
.iti__country-list {
    max-height: 240px;
    overflow-y: auto;
    background: azure;
    overflow-x: hidden;
    scrollbar-width: thin; /* Firefox */
}

.iti--container .iti__country-list {
    max-height: 60vh;
}
.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}


/* Style for the error message */
.error-message {
    color: #ff0000; /* Red color for errors */
    font-size: 12px;
    margin-top: 0px;
    margin-bottom: 5px;
    display: none; /* Hide by default */
}

/* Show the error message when it's needed */
.error-message.show {
    display: block; /* Make it visible */
}

/* Style for the input field when there's an error */
.field-error {
    border-color: #ff0000; /* Red border to highlight the input field */
    background-color: #ffe6e6; /* Light red background */
}

/* Style for the submit button when there's an error */
button[type="submit"].disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* -----------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    #appointmentForm {
        margin: 10px;
        padding: 10px;
    }
}
