/* =========================================
   BOOKING MODAL
========================================= */

.booking-modal{
    position:fixed;
    inset:0;
    z-index:99999;

    display:none;
    align-items:center;
    justify-content:center;

    padding:24px;
}

.booking-modal.active{
    display:flex;
}

body.booking-modal-open{
    overflow:hidden;
}


/* =========================================
   OVERLAY
========================================= */

.booking-modal-overlay{
    position:absolute;
    inset:0;

    background:rgba(15,23,42,.78);

    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
}


/* =========================================
   DIALOG
========================================= */

.booking-modal-dialog{
    position:relative;
    z-index:2;

    width:min(100%,980px);
    max-height:92vh;

    overflow-y:auto;
    overscroll-behavior:contain;

    padding:38px;

    border-radius:26px;

    background:#fff;

    box-shadow:0 30px 90px rgba(0,0,0,.30);

    animation:bookingModalShow .3s ease;
}

@keyframes bookingModalShow{

    from{
        opacity:0;
        transform:translateY(25px) scale(.97);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}


/* =========================================
   SCROLLBAR
========================================= */

.booking-modal-dialog::-webkit-scrollbar{
    width:8px;
}

.booking-modal-dialog::-webkit-scrollbar-track{
    background:#f1f5f9;
    border-radius:20px;
}

.booking-modal-dialog::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.booking-modal-close{
    position:absolute;
    top:18px;
    right:18px;
    z-index:10;

    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;
    border-radius:50%;

    background:#f1f5f9;
    color:#111827;

    font-size:20px;
    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.booking-modal-close:hover{
    background:#fee2e2;
    color:#dc2626;
    transform:rotate(90deg);
}


/* =========================================
   HEADER
========================================= */

.booking-modal-header{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(260px,.9fr);
    gap:28px;
    align-items:center;

    margin-bottom:34px;
    padding-right:45px;
}

.booking-modal-intro{
    min-width:0;
}

.booking-modal-label{
    display:inline-block;

    margin-bottom:10px;

    color:#22c55e;

    font-size:13px;
    font-weight:800;
    letter-spacing:1.8px;
    text-transform:uppercase;
}

.booking-modal-header h2{
    margin:0 0 12px;

    color:#111827;

    font-size:38px;
    font-weight:800;
    line-height:1.15;
}

.booking-modal-header p{
    margin:0;

    color:#64748b;

    font-size:16px;
    line-height:1.7;
}


/* =========================================
   IMPACT CARD
========================================= */

.booking-impact-card{
    padding:22px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        #111827,
        #1f2937
    );

    color:#fff;

    box-shadow:0 18px 40px rgba(17,24,39,.20);
}

.impact-title{
    display:flex;
    align-items:center;
    gap:14px;

    margin-bottom:18px;
    padding-bottom:18px;

    border-bottom:1px solid rgba(255,255,255,.12);
}

.impact-title > i{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:14px;

    background:#22c55e;
    color:#fff;

    font-size:21px;
}

.impact-title div{
    min-width:0;

    display:flex;
    flex-direction:column;
}

.impact-title strong{
    color:#fff;

    font-size:16px;
    font-weight:800;
}

.impact-title span{
    margin-top:4px;

    color:#cbd5e1;

    font-size:13px;
}

.impact-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;

    text-align:center;
}

.impact-stats div{
    min-width:0;

    display:flex;
    flex-direction:column;
    gap:3px;
}

.impact-stats strong{
    color:#22c55e;

    font-size:17px;
    font-weight:800;
}

.impact-stats span{
    color:#cbd5e1;

    font-size:11px;
}


/* =========================================
   FORM
========================================= */

.booking-popup-form{
    position:relative;
    width:100%;
}

.booking-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.booking-field{
    min-width:0;

    display:flex;
    flex-direction:column;
    gap:9px;
}

.booking-field-full{
    grid-column:1 / -1;
}

.booking-field label{
    color:#1f2937;

    font-size:14px;
    font-weight:700;
}

.booking-field label span{
    color:#ef4444;
}

.booking-field input,
.booking-field select,
.booking-field textarea{
    width:100%;

    border:1px solid #dbe2ea;
    border-radius:13px;
    outline:none;

    background:#fff;
    color:#111827;

    font-family:inherit;
    font-size:15px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.booking-field input,
.booking-field select{
    min-height:52px;
    padding:0 16px;
}

.booking-field textarea{
    min-height:120px;

    padding:15px 16px;

    resize:vertical;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder{
    color:#94a3b8;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus{
    border-color:#22c55e;

    box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.booking-field select{
    cursor:pointer;
}


/* =========================================
   FIELD NOTE
========================================= */

.booking-field-note{
    display:block;

    margin-top:2px;

    color:#dc2626;

    font-size:12px;
    line-height:1.5;
}


/* =========================================
   HONEYPOT
========================================= */

.booking-honeypot{
    position:absolute !important;
    left:-9999px !important;
    top:-9999px !important;

    width:1px !important;
    height:1px !important;

    overflow:hidden !important;

    opacity:0 !important;
    pointer-events:none !important;
}

.booking-honeypot label,
.booking-honeypot input{
    display:none !important;
}


/* =========================================
   PHONE FIELD
========================================= */

.booking-phone-input{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;

    min-height:52px;

    overflow:hidden;

    border:1px solid #dbe2ea;
    border-radius:13px;

    background:#fff;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.booking-phone-input:focus-within{
    border-color:#22c55e;

    box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.booking-phone-input > span{
    height:100%;

    display:flex;
    align-items:center;

    padding:0 15px;

    border-right:1px solid #e2e8f0;

    background:#f8fafc;
    color:#334155;

    font-size:14px;
    font-weight:700;

    white-space:nowrap;
}

.booking-phone-input input{
    min-width:0;
    min-height:50px;

    border:0;
    border-radius:0;

    box-shadow:none;
}

.booking-phone-input input:focus{
    box-shadow:none;
}


/* =========================================
   ICON INPUTS
========================================= */

.booking-input-icon{
    position:relative;
}

.booking-input-icon i{
    position:absolute;
    top:50%;
    left:16px;

    transform:translateY(-50%);

    color:#22c55e;

    font-size:15px;

    pointer-events:none;
}

.booking-input-icon input{
    padding-left:44px;
}


/* =========================================
   MESSAGE
========================================= */

.booking-message-field{
    margin-top:22px;
}


/* =========================================
   BUTTONS
========================================= */

.booking-modal-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;

    margin-top:28px;
}

.booking-submit-button,
.booking-whatsapp-button{
    min-height:54px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:0 20px;

    border-radius:30px;

    font-family:inherit;
    font-size:15px;
    font-weight:800;

    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.booking-submit-button{
    border:0;

    background:#22c55e;
    color:#fff;

    box-shadow:0 12px 24px rgba(34,197,94,.24);
}

.booking-submit-button:hover{
    background:#16a34a;
    transform:translateY(-3px);
}

.booking-whatsapp-button{
    border:1px solid #bbf7d0;

    background:#dcfce7;
    color:#15803d;
}

.booking-whatsapp-button:hover{
    border-color:#22c55e;

    background:#22c55e;
    color:#fff;

    transform:translateY(-3px);
}

.booking-submit-button:disabled,
.booking-whatsapp-button:disabled{
    cursor:not-allowed;
    opacity:.55;
    transform:none;
    box-shadow:none;
}


/* =========================================
   TABLET
========================================= */

@media(max-width:850px){

    .booking-modal{
        padding:16px;
    }

    .booking-modal-dialog{
        padding:30px 24px;
        border-radius:22px;
    }

    .booking-modal-header{
        grid-template-columns:1fr;
        gap:22px;

        padding-right:35px;
    }

    .booking-modal-header h2{
        font-size:32px;
    }

    .booking-impact-card{
        max-width:520px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media(max-width:650px){

    .booking-modal{
        align-items:flex-start;
        padding:10px;
    }

    .booking-modal-dialog{
        width:100%;
        max-height:calc(100dvh - 20px);

        padding:26px 18px;

        border-radius:18px;
    }

    .booking-modal-close{
        top:12px;
        right:12px;

        width:38px;
        height:38px;

        font-size:17px;
    }

    .booking-modal-header{
        gap:20px;

        margin-bottom:26px;
        padding-right:28px;
    }

    .booking-modal-header h2{
        font-size:28px;
    }

    .booking-modal-header p{
        font-size:14px;
    }

    .booking-impact-card{
        width:100%;
        padding:18px;
    }

    .impact-stats{
        gap:6px;
    }

    .booking-form-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .booking-field-full{
        grid-column:auto;
    }

    .booking-modal-actions{
        grid-template-columns:1fr;
    }

    .booking-submit-button,
    .booking-whatsapp-button{
        width:100%;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media(max-width:380px){

    .booking-modal-dialog{
        padding:24px 14px;
    }

    .booking-modal-header h2{
        font-size:25px;
    }

    .booking-phone-input{
        grid-template-columns:1fr;
    }

    .booking-phone-input > span{
        min-height:42px;

        border-right:0;
        border-bottom:1px solid #e2e8f0;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media(prefers-reduced-motion:reduce){

    .booking-modal-dialog{
        animation:none;
    }

    .booking-modal-close,
    .booking-submit-button,
    .booking-whatsapp-button{
        transition:none;
    }
}