
/* =========================================
   BOOK APPOINTMENT PAGE
   Annai Theresa Hospital
========================================= */

.appointment-page {
    width: 100%;
    overflow: hidden;
    color: var(--hospital-text, #193b5b);
    font-family: "DM Sans", Arial, sans-serif;
    background: #ffffff;
}

.appointment-page *,
.appointment-page *::before,
.appointment-page *::after {
    box-sizing: border-box;
}

.appointment-page h1,
.appointment-page h2,
.appointment-page p {
    margin-top: 0;
}


/* =========================================
   HERO SECTION
========================================= */

.appointment-hero {
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 48px;

    min-height: 450px;

    padding: 65px 5.5% 70px;

    background: linear-gradient(
        115deg,
        #f0f8f7 0%,
        #e7f4f2 55%,
        #dcefeb 100%
    );

    isolation: isolate;
}

.appointment-hero-shape {
    position: absolute;
    z-index: -1;

    top: -130px;
    left: -180px;

    width: 470px;
    height: 470px;

    border: 1px solid rgba(0, 92, 80, 0.08);
    border-radius: 50%;
}


/* Hero Text */

.appointment-hero-copy {
    max-width: 540px;

    animation: appointmentFadeIn 0.8s ease both;
}

.appointment-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: #005c50;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.1px;
}

.appointment-eyebrow span {
    width: 25px;
    height: 2px;

    background: #005c50;
}

.appointment-hero h1 {
    margin-bottom: 23px;

    color: #153b60;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(40px, 5.3vw, 60px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.appointment-hero h1 em {
    color: #005c50;
    font-weight: 500;
}

.appointment-hero-copy > p {
    max-width: 460px;

    margin-bottom: 25px;

    color: #50677a;

    font-size: 14px;
    line-height: 1.85;
}

.appointment-hero-note {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 28px;

    color: #64788a;
    font-size: 12px;
}

.appointment-hero-note i {
    color: #005c50;
    font-size: 18px;
}


/* Hero Image */

.appointment-hero-visual {
    position: relative;

    min-width: 0;
    height: 390px;

    animation: appointmentFadeIn 0.95s ease both;
}

.appointment-hero-visual > img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border-radius: 160px 18px 18px 18px;

    background: #d7e9e5;
}


/* Floating Image Card */

.appointment-image-tag {
    position: absolute;

    right: -16px;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 13px;

    max-width: 270px;

    padding: 16px 19px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: 0 15px 45px rgba(19, 59, 91, 0.12);
}

.appointment-image-tag > i {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: #e4f2ef;
    color: #005c50;

    font-size: 19px;
}

.appointment-image-tag strong,
.appointment-image-tag small {
    display: block;
}

.appointment-image-tag strong {
    margin-bottom: 4px;

    color: #153b60;
    font-size: 13px;
}

.appointment-image-tag small {
    color: #64788a;
    font-size: 10px;
}


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

.appointment-form-section {
    padding: 78px 5.5% 88px;
}

.appointment-section-heading {
    max-width: 700px;

    margin: 0 auto 35px;

    text-align: center;
}

.appointment-section-heading .section-eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #005c50;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.appointment-section-heading h2 {
    margin-bottom: 14px;

    color: #153b60;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(32px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.appointment-section-heading p {
    margin: 0;

    color: #64788a;

    font-size: 13px;
    line-height: 1.8;
}


/* Form Card */

.appointment-form {
    max-width: 970px;

    margin: 0 auto;

    padding: 36px;

    border: 1px solid #d9e6e4;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 16px 45px rgba(19, 59, 91, 0.06);
}


/* Form Grid */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 23px 24px;
}

.form-field {
    min-width: 0;
}


/* Labels */

.form-field label {
    display: block;

    margin-bottom: 9px;

    color: #193b5b;

    font-size: 12px;
    font-weight: 700;
}

.form-field label span {
    color: #b14a45;
}

.form-field label small,
.form-field label .optional {
    color: #7c8c99;

    font-size: 10px;
    font-weight: 500;
}


/* Inputs */

.form-field input,
.form-field select,
.form-field textarea {
    display: block;

    width: 100%;
    min-height: 49px;

    padding: 13px 15px;

    border: 1px solid #d9e6e4;
    border-radius: 8px;

    outline: none;

    background: #fbfdfc;
    color: #193b5b;

    font: 400 13px "DM Sans", Arial, sans-serif;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-field textarea {
    min-height: 130px;

    resize: vertical;

    line-height: 1.65;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9aa9b2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #005c50;

    box-shadow: 0 0 0 3px rgba(0, 92, 80, 0.10);
}


/* Message */

.form-field-message {
    grid-column: 1 / -1;

    position: relative;
}

.character-count {
    margin-top: 6px;

    text-align: right;

    color: #7c8c99;
    font-size: 10px;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 27px;
    padding-top: 24px;

    border-top: 1px solid #e3ecea;
}

.form-bottom p {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 0;

    color: #71818e;

    font-size: 11px;
    line-height: 1.6;
}

.form-bottom p i {
    margin-top: 2px;

    color: #005c50;
}

.appointment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    min-height: 48px;

    padding: 0 22px;

    border: 0;
    border-radius: 9px;

    background: #005c50;
    color: #ffffff;

    text-decoration: none;

    font: 600 12px "DM Sans", Arial, sans-serif;

    cursor: pointer;

    transition:
        background 0.25s,
        transform 0.25s,
        box-shadow 0.25s;
}

.appointment-btn:hover {
    background: #00483f;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(0, 92, 80, 0.15);
}


/* =========================================
   SUCCESS MESSAGE
========================================= */

.appointment-success {
    max-width: 760px;

    margin: 0 auto;

    padding: 45px 40px;

    border: 1px solid #d9e6e4;
    border-radius: 16px;

    background: #f5faf8;

    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #dff0e9;
    color: #005c50;

    font-size: 22px;
}

.appointment-success h2 {
    margin-bottom: 14px;

    color: #153b60;

    font: 500 clamp(28px, 4vw, 38px) / 1.15
          "Playfair Display", Georgia, serif;
}

.appointment-success p {
    max-width: 590px;

    margin: 0 auto 13px;

    color: #5f7383;

    font-size: 13px;
    line-height: 1.85;
}

.appointment-success .success-signoff {
    color: #005c50;
    font-weight: 600;
}

.appointment-success .appointment-btn {
    margin-top: 16px;
}

.delivery-note {
    font-size: 11px !important;
    color: #8a5b2a !important;
}


/* =========================================
   ERROR MESSAGE
========================================= */

.appointment-errors {
    max-width: 970px;

    margin: 0 auto 20px;

    padding: 18px 22px;

    border: 1px solid #edc5c2;
    border-radius: 10px;

    background: #fff7f6;
    color: #8a302b;

    font-size: 13px;
}

.appointment-errors ul {
    margin: 8px 0 0;

    padding-left: 20px;
}


/* Spam protection */

.form-honeypot {
    position: absolute !important;

    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}


/* =========================================
   ANIMATION
========================================= */

@keyframes appointmentFadeIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .appointment-hero {
        grid-template-columns: 1fr 1fr;

        gap: 28px;

        padding: 55px 5%;
    }

    .appointment-hero-visual {
        height: 340px;
    }

    .appointment-image-tag {
        right: -8px;
    }

    .appointment-form-section {
        padding: 60px 5%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .appointment-hero {
        grid-template-columns: 1fr;

        gap: 28px;

        min-height: 0;

        padding: 45px 5% 55px;
    }

    .appointment-hero h1 {
        font-size: clamp(38px, 11vw, 48px);

        letter-spacing: -1.7px;
    }

    .appointment-hero-copy > p {
        font-size: 13px;
    }

    .appointment-hero-visual {
        height: 290px;

        margin: 0 5px 10px 0;
    }

    .appointment-hero-visual > img {
        border-radius: 105px 14px 14px 14px;
    }

    .appointment-image-tag {
        right: -5px;
        bottom: 12px;

        padding: 13px;
    }

    .appointment-form-section {
        padding: 45px 5% 55px;
    }

    .appointment-section-heading {
        margin-bottom: 25px;
    }

    .appointment-form {
        padding: 23px 18px;

        border-radius: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 19px;
    }

    .form-field-message {
        grid-column: auto;
    }

    .form-bottom {
        align-items: stretch;

        flex-direction: column;
    }

    .form-bottom .appointment-btn {
        width: 100%;
    }

    .appointment-success {
        padding: 35px 22px;
    }

}


/* Small Mobile */

@media (max-width: 380px) {

    .appointment-hero-visual {
        height: 245px;
    }

    .appointment-hero h1 {
        font-size: 35px;
    }

    .appointment-form {
        padding: 20px 14px;
    }

}