﻿.form-card h2,
.sub,
.trusted-exam {
    text-align: center
}

.appointment {
    background: #f7fbff;
    padding: 40px 20px
}

.appointment-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px
}

.form-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

.captcha,
.inputfield {
    border: 1px solid #ddd
}

.form-card h2 {
    color: #0f766e
}

.sub {
    color: #666;
    font-size: 14px
}

.verify-form {
    padding-top: 20px
}

.book-appointment,
.inputfield {
    padding: 14px;
    transition: .3s;
    width: 100%
}

.input-row {
    display: flex;
    gap: 15px
}

.badge,
.secure-encrypted,
.secure-encrypted p {
    align-items: center;
    gap: 5px;
    display: flex
}

.inputfield {
    margin-bottom: 15px;
    border-radius: 8px
}

.book-appointment {
    background: #0f766e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer
}

.trusted-exam {
    color: #666;
    line-height: 1.2;
    margin-top: 20px
}

.secure-confidential p,
.trusted-exam,
.what-next li {
    font-size: 14px
}

.secureandconfidential,
.what-next p {
    font-weight: 700;
    font-size: 18px
}

.what-next {
    padding: 15px;
    background: #fff;
    border-radius: 15px;
    margin-top: 20px;
    border-left: 5px solid #0f766e
}

.what-next ul {
    padding: 0 20px
}

.secure-confidential {
    padding: 10px 20px;
    background-color: #fff;
    margin: 10px 0;
    border-left: 5px solid #0f766e;
    border-radius: 10px
}

.mobileno {
    margin-bottom: 0
}

.no-calls {
    font-size: 12px;
    margin-bottom: 15px;
    color: #666
}

.image-box {
    position: relative
}

.image-box-img {
    border-radius: 15px
}

.badge {
    position: absolute;
    top: 50%;
    left: 20px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    font-weight: 500
}

.captcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 15px auto;
    background: #fafafa;
    max-width: 320px
}

.captcha input {
    margin-right: 10px
}

.captcha label {
    flex: 1;
    font-size: 14px
}

.captcha img {
    width: 32px
}

.outline-field {
    position: relative;
    width: 100%;
    margin-bottom: 15px
}

    .outline-field input {
        width: 100%;
        padding: 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px
        /*background: 0 0;*/
    }

.outline-field input:focus {
    border: 2px solid #0f766e;
    outline: 0;
    box-shadow: none
}

.outline-field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    font-size: 14px;
    color: #0f766e;
    opacity: 0;
    pointer-events: none;
    transition: .2s
}

.outline-field input:focus::placeholder {
    opacity: 0
}

.outline-field input:focus+label,
.outline-field input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 1
}

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #e53935;
    font-weight: 500;
}

.error {
    border: 1px solid #e53935;
    background-color: #fff5f5;
}

/* smooth UX */
.field-error:empty {
    display: none;
}

/* ??? PROGRESS PILL ??? */
.progress-pill {
    display: flex;
    align-items: center;
    justify-content: center; /* Added this to center it above the title */
    gap: 6px;
    margin-bottom: 10px;
}

.progress-dot {
    width: 50px;
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0; /* Replaced var(--border) with light gray */
}

    .progress-dot.done {
        background-color: #84ccb9; /* Replaced var(--teal-mid) with light teal */
    }

    .progress-dot.active {
        background-color: #117b66; /* Replaced var(--teal) with your dark teal */
        border-radius: 4px;
    }

.progress-label {
    font-size: 13px;
    color: #64748b; /* Replaced var(--ink-3) with slate gray */
    margin-left: 4px;
    font-weight: 500;
}

/* ─── SELECTION BANNER ─── */
.selection-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #117b66;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center; /* Keeps button centered with text on desktop */
    justify-content: space-between;
    flex-wrap: wrap; /* Allows elements to stack on smaller screens */
    gap: 16px; /* Slightly larger gap for better spacing when stacked */
}

.selection-banner-info {
    font-size: 14px;
    line-height: 1.5; /* Improves readability if text wraps to multiple lines */
    color: #475569;
    flex: 1 1 0%; /* Allows the text container to grow and shrink properly */
    min-width: 200px; /* Forces the flex container to wrap on very small screens */
    overflow-wrap: break-word; /* Prevents ultra-long unbroken words from breaking the layout */
}

    .selection-banner-info strong {
        color: #111827;
        font-weight: 600;
        margin-right: 4px;
    }

.selection-banner-change {
    flex-shrink: 0; /* CRITICAL: Prevents the button from being squished by long text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0d705a;
    background: #e6f4f1;
    border: none;
    border-radius: 6px;
    padding: 8px 16px; /* Slightly taller tap target for mobile users */
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

    .selection-banner-change:hover {
        background: #d1ebe5;
    }

/* ─── MOBILE RESPONSIVENESS ─── */
@media (max-width: 480px) {
    .selection-banner {
        align-items: flex-start; /* Aligns text to top if it gets very long on mobile */
    }

    .selection-banner-change {
        width: 100%; /* Makes the button full width on small screens for easy tapping */
    }
}

@media (max-width:1024px) {
    .appointment-container {
        gap: 20px
    }
}

@media (max-width:768px) {
    .appointment-container {
        grid-template-columns: 1fr
    }

    .input-row {
        flex-direction: column;
        gap: 0
    }

    .image-box {
        display: none
    }

    .secure-encrypted {
        justify-content: center
    }
}

@media (max-width:600px) {
    .no-calls {
        text-align: center
    }

    .sub {
        margin-top: 5px
    }

    .secure-encrypted {
        flex-direction: column;
        gap: 0;
        margin-top: 10px
    }

    .secure-encrypted span {
        display: none
    }

    .appointment {
        padding: 20px
    }

    .form-card {
        padding: 15px;
    }
}
    .recaptcha-wrapper {
        display:flex;
        justify-content:center;
        margin:10px;
    }
.error-margin {
    margin-bottom: 0 !important;
}
@media (max-width: 576px) {
    .field-error {
        font-size: 12px;
    }
}

@media (max-width: 330px) {
    .form-card {
        max-width: 290px;
        margin: 0 auto;
    }

    .g-recaptcha > div {
        margin: 0 auto;
    }
    .g-recaptcha {
        display: flex;
        justify-content: center;
        transform: scale(0.92);
        transform-origin: center;
    }
}