:root{
    --coffee-dark:#3a1f12;
    --coffee:#5a2e18;
    --coffee-light:#8a4a28;
    --cream:#f6f4ef;
    --border:#e3dfd8;
    --text:#2b2b2b;
    --muted:#7a736b;
}

*{
    box-sizing:border-box;
}

html, body{
    width:100%;
    overflow-x:hidden;
}

/* =========================
   BODY + BACKGROUND BLUR
========================= */
body{
    margin:0;
    font-family:'Instrument Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial;
    color:var(--text);
    position:relative;
    background:#efece6;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:url('/images/reservationbg.webp') center / cover no-repeat;
    filter:blur(7px);
    transform:scale(1.1);
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(255, 255, 255, 0.496);
    z-index:-1;
}

/* =========================
   HERO
========================= */
.hero{
    padding:120px 20px 80px;
}

.hero-content{
    max-width:1200px;
    margin:0 auto;
}

.hero h1{
    font-family:'Cormorant Garamond',serif;
    font-size:56px;
    line-height:1.15;
    margin:0 0 18px;
}

.hero p{
    font-size:16px;
    line-height:1.7;
    max-width:520px;
    color:#000000;
    margin:0;
}

/* =========================
   SECTION BAWAH HERO
========================= */
.reservation-wrapper{
    max-width:1200px;
    margin:0 auto 120px;
    padding:0 20px;
}

/* =========================
   GRID INFO + FORM
========================= */
.content{
    display:grid;
    grid-template-columns:1fr 440px;
    gap:64px;
    align-items:flex-start;
}

/* =========================
   INFO CARD
========================= */
.info-card{
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-top:32px;
    color:#000;
}

.info-item{
    display:flex;
    gap:16px;
    align-items:flex-start;
}

.info-icon{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#c53a1f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#fff;
    flex-shrink:0;
}

.info-icon img{
    width:20px;
    height:20px;
    object-fit:contain;
    display:block;
}

.info-content .label{
    font-weight:600;
    margin-bottom:4px;
    color:#000;
}

.info-content p{
    margin:0;
    font-size:14px;
    color:#000000;
}

/* =========================
   FORM CARD
========================= */
.form-card{
    background:var(--cream);
    border-radius:26px;
    padding:36px 36px 40px;
    box-shadow:0 30px 80px rgba(0,0,0,.18);
    margin-top:-520px;
    max-width:400px;
    width:100%;
    justify-self:end;
}

/* =========================
   FORM
========================= */
.form-group{
    margin-bottom:20px;
}

.form-group label{
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
    display:block;
    color:#4a433c;
}

.form-group input,
.form-group select{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1.5px solid var(--border);
    font-size:14px;
    background:#fff;
    color:var(--text);
}

.form-group input::placeholder{
    color:#aaa39a;
}

.form-group input:focus,
.form-group select:focus{
    outline:none;
    border-color:var(--coffee-light);
}

/* =========================
   BUTTON
========================= */
.btn-submit{
    width:100%;
    margin-top:14px;
    padding:16px;
    border:none;
    border-radius:16px;
    background:#c53a1f;
    color:#fff;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:.3s ease;
}

.btn-submit:hover{
    background:#b1321a;
    box-shadow:0 18px 36px rgba(197,58,31,.45);
    transform:translateY(-2px);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:1200px){
    .hero{
        padding:100px 18px 60px;
    }

    .hero h1{
        font-size:48px;
    }

    .content{
        gap:48px;
    }

    .form-card{
        max-width:380px;
        margin-top:-400px;
    }
}

@media(max-width:1000px){
    .content{
        grid-template-columns:1fr;
        gap:30px;
    }

    .form-card{
        margin-top:0;
        max-width:100%;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:15px;
    }
}

@media(max-width:768px){
    .hero{
        padding:70px 16px 50px;
    }

    .hero h1{
        font-size:36px;
        margin-bottom: 12px;
    }

    .hero p{
        font-size:14px;
    }

    .reservation-wrapper{
        margin-bottom:60px;
        padding:0 16px;
    }

    .content{
        gap:20px;
    }

    .form-card{
        padding:24px;
        border-radius:18px;
        box-shadow:0 20px 60px rgba(0,0,0,0.12);
    }

    .form-group{
        margin-bottom:14px;
    }

    .form-group label{
        font-size:12px;
    }

    .form-group input,
    .form-group select{
        font-size:13px;
        padding:12px 14px;
        border-radius:10px;
    }

    .btn-submit{
        height:44px;
        font-size:14px;
        margin-top:10px;
    }

    .info-card{
        gap:18px;
        padding-bottom:32px;
    }

    .info-item{
        gap:12px;
    }

    .info-icon{
        width:38px;
        height:38px;
        font-size:16px;
    }

    .info-content .label{
        font-size:12px;
    }

    .info-content p{
        font-size:12px;
    }
}

@media(max-width:600px){
    .hero{
        padding:50px 14px 40px;
    }

    .hero h1{
        font-size:28px;
        line-height:1.2;
        margin-bottom:10px;
    }

    .hero p{
        font-size:12px;
    }

    .reservation-wrapper{
        margin-bottom:40px;
        padding:0 12px;
    }

    .content{
        grid-template-columns:1fr;
        gap:16px;
    }

    .form-card{
        padding:20px;
        border-radius:14px;
        box-shadow:0 12px 36px rgba(0,0,0,0.1);
    }

    .form-group{
        margin-bottom:12px;
    }

    .form-group label{
        font-size:11px;
        margin-bottom:5px;
    }

    .form-group input,
    .form-group select{
        font-size:12px;
        padding:10px 12px;
        border-radius:8px;
        border:1.5px solid var(--border);
    }

    .form-group input::placeholder{
        font-size:12px;
    }

    .btn-submit{
        height:40px;
        font-size:12px;
        margin-top:8px;
        border-radius:10px;
    }

    .info-card{
        gap:16px;
        margin-top:20px;
    }

    .info-item{
        gap:10px;
    }

    .info-icon{
        width:36px;
        height:36px;
        font-size:14px;
    }

    .info-icon img{
        width:16px;
        height:16px;
    }

    .info-content .label{
        font-size:11px;
    }

    .info-content p{
        font-size:11px;
    }

    /* POPUP */
    .popup-card,
    .modal-content{
        padding:24px 20px;
        border-radius:16px;
        max-width:380px;
    }

    .popup-content h3,
    .modal-content h3{
        font-size:20px;
        margin-bottom:8px;
    }

    .popup-content p,
    .modal-content p{
        font-size:12px;
    }

    .detail-item{
        font-size:12px;
    }

    .preview-box{
        font-size:11px;
        padding:10px;
    }

    .popup-actions button,
    .modal-actions button{
        font-size:12px;
        padding:10px;
    }
}

@media(max-width:480px){
    .hero{
        padding:40px 12px 30px;
    }

    .hero h1{
        font-size:24px;
        margin-bottom:8px;
    }

    .hero p{
        font-size:11px;
        line-height:1.5;
    }

    .reservation-wrapper{
        margin-bottom:30px;
        padding:0 10px;
    }

    .form-card{
        padding:16px;
        border-radius:12px;
    }

    .form-group{
        margin-bottom:10px;
    }

    .form-group label{
        font-size:10px;
    }

    .form-group input,
    .form-group select{
        font-size:11px;
        padding:9px 10px;
        border-radius:8px;
    }

    .btn-submit{
        height:38px;
        font-size:11px;
        margin-top:6px;
    }

    .info-card{
        gap:12px;
        margin-top:16px;
    }

    .info-item{
        gap:8px;
    }

    .info-icon{
        width:32px;
        height:32px;
        font-size:12px;
    }

    .info-icon img{
        width:14px;
        height:14px;
    }

    .info-content .label{
        font-size:10px;
    }

    .info-content p{
        font-size:10px;
        line-height:1.4;
    }

    /* POPUP */
    .popup-card,
    .modal-content{
        padding:18px 16px;
        border-radius:12px;
        max-width:360px;
        max-height:85vh;
    }

    .popup-content h3,
    .modal-content h3{
        font-size:16px;
        margin-bottom:6px;
    }

    .popup-content p,
    .modal-content p{
        font-size:11px;
        line-height:1.5;
    }

    .modal-close{
        font-size:18px;
        width:32px;
        height:32px;
        top:10px;
        right:10px;
    }

    .detail-item{
        font-size:11px;
        padding:4px 0;
    }

    .preview-label{
        font-size:10px;
    }

    .preview-box{
        font-size:10px;
        padding:8px;
    }

    .popup-actions button,
    .modal-actions button{
        font-size:11px;
        padding:8px;
    }

    body.modal-open{
        padding-right:0;
    }
}

@media(max-width:360px){
    .hero{
        padding:30px 10px 24px;
    }

    .hero h1{
        font-size:20px;
    }

    .hero p{
        font-size:10px;
    }

    .reservation-wrapper{
        padding:0 8px;
    }

    .form-card{
        padding:14px;
    }

    .form-group input,
    .form-group select{
        font-size:10px;
        padding:8px 8px;
    }

    .btn-submit{
        height:36px;
        font-size:10px;
    }

    .info-card{
        margin-top:20px;
        padding-bottom:20px;
    }

    .popup-card,
    .modal-content{
        padding:14px 12px;
        width:95%;
    }

    .popup-content h3{
        font-size:14px;
    }

    .popup-content p{
        font-size:10px;
    }
}

/* =========================
   POPUP / MODAL WHATSAPP
========================= */
.popup,
.popup-overlay,
.modal,
.modal-overlay{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
    z-index:2147483647;
}

.popup.active,
.popup-overlay.active,
.modal.active,
.modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.popup-content,
.modal-content,
.popup-card{
    background:var(--cream);
    border-radius:24px;
    padding:32px 28px;
    max-width:420px;
    width:90%;
    text-align:center;
    box-shadow:0 40px 80px rgba(0,0,0,.35);
    animation:popupIn .35s ease;
    position:relative;
    margin:0;
    max-height:80vh;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform: translateY(-50px);
}

.modal-close{
    position:absolute;
    top:14px;
    right:16px;
    background:none;
    border:none;
    font-size:22px;
    cursor:pointer;
    color:#6a625a;
}

@keyframes popupIn{
    from{
        transform:translateY(20px) scale(.95);
        opacity:0;
    }
    to{
        transform:translateY(0) scale(1);
        opacity:1;
    }
}

.popup-content h3,
.modal-content h3,
.popup-card h3,
.modal-header h2{
    font-family:'Cormorant Garamond',serif;
    font-size:28px;
    margin:0 0 10px;
    color:var(--coffee-dark);
}

.popup-content p,
.modal-content p,
.popup-card p,
.modal-header p{
    font-size:14px;
    line-height:1.6;
    color:#5f574f;
    margin-bottom:20px;
}

.reservation-detail{
    text-align:left;
    margin-bottom:18px;
}

.detail-item{
    display:flex;
    justify-content:space-between;
    font-size:14px;
    padding:6px 0;
    border-bottom:1px dashed var(--border);
}

.detail-label{
    color:#6a625a;
}

.detail-value{
    font-weight:600;
}

.whatsapp-preview{
    text-align:left;
    margin-top:16px;
}

.preview-label{
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
}

.preview-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:12px;
    font-size:13px;
    white-space:pre-line;
}

.popup-actions,
.modal-actions,
.modal-footer{
    display:flex;
    gap:14px;
    margin-top:22px;
}

.popup-actions button,
.modal-actions button,
.modal-footer button{
    flex:1;
    padding:12px;
    border-radius:14px;
    font-size:14px;
    font-weight:600;
    border:none;
    cursor:pointer;
    transition:.25s ease;
}

.popup-actions .cancel,
.popup-actions .btn-cancel,
.modal-actions .cancel,
.modal-footer .btn-cancel{
    background:#e0ddd7;
    color:#4a433c;
}

.popup-actions .confirm,
.popup-actions .btn-confirm,
.modal-actions .confirm,
.modal-footer .btn-confirm{
    background:#c53a1f;
    color:#fff;
}

.popup-actions .confirm:hover,
.popup-actions .btn-confirm:hover,
.modal-footer .btn-confirm:hover{
    box-shadow:0 14px 30px rgba(58,31,18,.35);
    transform:translateY(-1px);
}

body.modal-open{
    overflow: hidden;
    height: 100vh;
    padding-right: 15px;
}