/* =========================================================
   APPOINTMENT PAGE
   ========================================================= */

.appointment-page {
    padding: 80px 0;
    background: #f6fafc;
}

.appointment-page *,
.appointment-page *::before,
.appointment-page *::after {
    box-sizing: border-box;
}

.appointment-page .container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 50px;
    align-items: start;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.appointment-info {
    position: sticky;
    top: 110px;
}

.appointment-info .section-tag {
    display: inline-block;
    margin-bottom: 14px;
    color: #16a085;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .4px;
}

.appointment-info h1 {
    margin: 0 0 18px;
    color: #0f4c81;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.12;
}

.appointment-info > p {
    margin: 0;
    color: #5c6873;
    font-size: 16px;
    line-height: 1.8;
}

.appointment-benefits {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #34495e;
    font-weight: 600;
}

.benefit-item i {
    color: #16a085;
    font-size: 18px;
}

.clinic-contact-card {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #dce9ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 76, 129, .08);
}

.clinic-contact-card h3 {
    margin: 0 0 8px;
    color: #0f4c81;
}

.clinic-contact-card p {
    margin: 0 0 18px;
    color: #6b7785;
}

.clinic-contact-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #0f4c81;
    font-weight: 700;
    text-decoration: none;
}

.clinic-contact-card a i {
    color: #16a085;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.appointment-form-card {
    padding: 38px;
    border: 1px solid #dfecef;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 76, 129, .09);
}

.form-header {
    margin-bottom: 30px;
}

.form-header > span {
    color: #16a085;
    font-size: 14px;
    font-weight: 700;
}

.form-header h2 {
    margin: 7px 0 8px;
    color: #0f4c81;
    font-size: 30px;
}

.form-header p {
    margin: 0;
    color: #74808c;
}


/* =========================================================
   FORM
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    min-width: 0;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #23384d;
    font-size: 14px;
    font-weight: 700;
}

.form-group label span {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #d6e1e6;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #263747;
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aa6b2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #16a085;
    box-shadow: 0 0 0 4px rgba(22, 160, 133, .10);
}


/* =========================================================
   NOTE
   ========================================================= */

.form-note {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #eaf7f5;
}

.form-note i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #16a085;
}

.form-note p {
    margin: 0;
    color: #4e6670;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.appointment-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    border: 0;
    border-radius: 14px;
    background: #16a085;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.appointment-submit i {
    font-size: 20px;
}

.appointment-submit:hover {
    background: #12866f;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(22, 160, 133, .25);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .appointment-page {
        padding: 60px 0;
    }

    .appointment-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .appointment-info {
        position: static;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .appointment-page {
        padding: 42px 0;
    }

    .appointment-page .container {
        width: calc(100% - 24px);
    }

    .appointment-info h1 {
        font-size: 31px;
    }

    .appointment-form-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .form-header h2 {
        font-size: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-full {
        grid-column: auto;
    }

    .clinic-contact-card {
        padding: 20px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .appointment-page .container {
        width: calc(100% - 20px);
    }

    .appointment-form-card {
        padding: 21px 15px;
    }

    .appointment-info h1 {
        font-size: 28px;
    }

    .appointment-submit {
        padding: 15px 16px;
    }
}

/* ===== MOBILE BOOK APPOINTMENT BUTTON FIX ===== */

.appointment-form-card .appointment-btn {
    display: flex !important;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    margin-top: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .appointment-form-card .appointment-btn {
        display: flex !important;
        width: 100%;
        min-height: 56px;
        visibility: visible !important;
        opacity: 1 !important;
    }
}