/* =========================================================
   APPOINTMENT POPUP
========================================================= */

.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.appointment-modal.is-open {
    display: flex;
}

.appointment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 35, 34, 0.72);
    backdrop-filter: blur(7px);
}


/* =========================================================
   MODAL BOX
========================================================= */

.appointment-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 1050px);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 40, 37, 0.28);
    animation: appointmentPopupIn 0.3s ease;
}

@keyframes appointmentPopupIn {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

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


/* =========================================================
   CLOSE BUTTON
========================================================= */

.appointment-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: #073f43;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);

    transition: 0.2s ease;
}

.appointment-modal-close:hover {
    background: #006c63;
    color: #fff;
    transform: rotate(90deg);
}


/* =========================================================
   GRID
========================================================= */

.appointment-modal-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}


/* =========================================================
   LEFT INFORMATION PANEL
========================================================= */

.appointment-modal-info {
    position: relative;
    overflow: hidden;

    padding: 55px 45px;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255,255,255,0.16),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #006c63,
            #004f49
        );

    color: #fff;
}

.appointment-modal-info::after {
    content: "";
    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    bottom: -110px;

    border: 45px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}


.appointment-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;

    color: #bdf2e7;
}


.appointment-modal-info h2 {
    margin: 0 0 18px;

    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -1px;
}


.appointment-modal-info > p {
    margin: 0;

    max-width: 430px;

    color: rgba(255,255,255,0.82);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   BENEFITS
========================================================= */

.appointment-benefits {
    display: grid;
    gap: 20px;

    margin-top: 35px;
}

.appointment-benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.benefit-icon {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.15);
    color: #c9fff3;

    font-size: 14px;
    font-weight: 800;
}

.appointment-benefit strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
}

.appointment-benefit small {
    color: rgba(255,255,255,0.68);
    font-size: 12px;
}


/* =========================================================
   PHONE CALLOUT
========================================================= */

.appointment-callout {
    position: relative;
    z-index: 2;

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

    margin-top: 40px;
    padding: 16px;

    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;

    background: rgba(255,255,255,0.08);
}

.appointment-callout > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,0.13);
}

.appointment-callout small {
    display: block;

    margin-bottom: 2px;

    color: rgba(255,255,255,0.65);
}

.appointment-callout a {
    color: #fff;

    font-weight: 700;
    text-decoration: none;
}


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

.appointment-modal-form {
    padding: 48px 45px;
    background: #fff;
}

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

.appointment-form-heading > span {
    display: block;

    margin-bottom: 7px;

    color: #006c63;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.appointment-form-heading h3 {
    margin: 0 0 6px;

    color: #073f43;

    font-size: 28px;
    line-height: 1.2;
}

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

    color: #607778;

    font-size: 14px;
}


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

.appointment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


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

.appointment-field {
    margin-bottom: 18px;
}

.appointment-field label {
    display: block;

    margin-bottom: 7px;

    color: #173f42;

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

.appointment-field label span {
    color: #d9534f;
}

.appointment-field input,
.appointment-field select,
.appointment-field textarea {
    width: 100%;

    box-sizing: border-box;

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

    background: #f8fcfb;

    color: #173f42;

    font-family: inherit;
    font-size: 14px;

    outline: none;

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

.appointment-field input,
.appointment-field select {
    height: 48px;
    padding: 0 14px;
}

.appointment-field textarea {
    min-height: 105px;
    padding: 13px 14px;
    resize: vertical;
}

.appointment-field input::placeholder,
.appointment-field textarea::placeholder {
    color: #91a4a4;
}

.appointment-field input:focus,
.appointment-field select:focus,
.appointment-field textarea:focus {
    border-color: #006c63;
    background: #fff;

    box-shadow: 0 0 0 4px rgba(0,108,99,0.08);
}


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

.appointment-submit {
    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;

    cursor: pointer;

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

.appointment-submit span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.appointment-submit:hover span {
    transform: translateX(4px);
}


.appointment-form-note {
    margin: 12px 0 0;

    color: #7a8b8c;

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.appointment-modal-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .appointment-modal {
        padding: 15px;
    }

    .appointment-modal-dialog {
        max-height: 95vh;
        border-radius: 18px;
    }

    .appointment-modal-grid {
        grid-template-columns: 1fr;
    }

    .appointment-modal-info {
        padding: 35px 28px;
        display: none;
    }

    .appointment-modal-info h2 {
        font-size: 30px;
        padding-right: 30px;
    }

    .appointment-benefits {
        gap: 14px;
        margin-top: 25px;
    }

    .appointment-callout {
        margin-top: 25px;
    }

    .appointment-modal-form {
        padding: 35px 28px;
    }

}


@media (max-width: 520px) {

    .appointment-modal {
        padding: 8px;
    }

    .appointment-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .appointment-modal-info {
        padding: 30px 22px;
    }

    .appointment-modal-form {
        padding: 30px 22px;
    }

    .appointment-modal-info h2 {
        font-size: 27px;
    }

    .appointment-form-heading h3 {
        font-size: 24px;
    }

    .appointment-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   APPOINTMENT FORM VALIDATION
========================================================= */

.appointment-form-message {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.appointment-message-error {
    background: #fff3f2;
    border: 1px solid #f1c7c4;
    color: #b42318;
}

.appointment-message-success {
    background: #eaf8f4;
    border: 1px solid #b9e5dc;
    color: #006c63;
}

.appointment-message-success strong {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 14px;
}


/* =========================================================
   FIELD ERROR
========================================================= */

.appointment-input-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 11px;
    line-height: 1.4;
}

.appointment-field-error {
    border-color: #d9534f !important;
    background: #fffafa !important;
}

.appointment-field-error:focus {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.08) !important;
}


/* =========================================================
   SUBMIT LOADING
========================================================= */

.appointment-submit {
    position: relative;
}

.appointment-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.appointment-submit-loader {
    display: none;
    align-items: center;
    gap: 4px;
}

.appointment-submit-loader span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: appointmentLoadingDot 1.2s infinite ease-in-out;
}

.appointment-submit-loader span:nth-child(2) {
    animation-delay: 0.15s;
}

.appointment-submit-loader span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes appointmentLoadingDot {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }

}

/* =========================================================
   CHARACTER COUNT
========================================================= */

.appointment-character-count {
    display: block;
    margin-top: 5px;
    color: #91a4a4;
    font-size: 10px;
    text-align: right;
}