/* ═══ NE Tour Booking — Premium Design ═══ */

/* Trigger button */
.ne-trigger{background:#e02020;color:#fff;border:none;padding:12px 28px;border-radius:6px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.5px}

/* Overlay */
.ne-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.ne-modal{border-radius:16px;overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.5);animation:neSlide .3s ease;max-width:95vw;max-height:92vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
@keyframes neSlide{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

/* ═══ ENQUIRY FORM MODAL ═══ */
.ne-modal-form{display:flex;width:880px}

/* Left banner */
.ne-banner{flex:0 0 42%;position:relative;background-size:cover;background-position:center;min-height:520px;display:flex;flex-direction:column;justify-content:flex-end}
.ne-banner-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,10,.3) 0%,rgba(10,10,10,.85) 70%,rgba(10,10,10,.95) 100%)}
.ne-banner-content{position:relative;z-index:1;padding:28px 28px 24px}

.ne-banner-logo{height:40px;width:auto;margin-bottom:16px}
.ne-banner-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.ne-brand-icon{width:36px;height:36px;background:#e02020;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;letter-spacing:1px;flex-shrink:0}
.ne-brand-text{font-size:15px;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:.5px}
.ne-brand-text em{color:#e02020;font-style:normal}

.ne-banner-title{font-size:30px;font-weight:800;color:#fff;line-height:1.15;margin:0 0 8px;letter-spacing:-.5px}
.ne-banner-sub{font-size:12px;color:rgba(255,255,255,.55);margin:0 0 22px;letter-spacing:.3px}

.ne-banner-stats{display:flex;gap:16px;align-items:center;margin-bottom:20px}
.ne-stat{text-align:center}
.ne-stat-num{display:block;font-size:20px;font-weight:800;color:#fff}
.ne-stat-label{display:block;font-size:10px;color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:1px}
.ne-stat-divider{width:1px;height:28px;background:rgba(255,255,255,.15)}

.ne-banner-phone{display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.5);font-size:13px}
.ne-banner-phone a{color:rgba(255,255,255,.7);text-decoration:none;font-weight:600}
.ne-banner-phone a:hover{color:#fff}

/* Right form panel */
.ne-form-panel{flex:1;background:#fff;display:flex;flex-direction:column;position:relative}

.ne-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:1.5px solid #e5e7eb;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;transition:all .15s;z-index:2}
.ne-close:hover{background:#f3f4f6;color:#333;border-color:#d1d5db}

.ne-form-header{padding:28px 28px 0;text-align:center}
.ne-form-header h3{font-size:22px;font-weight:800;color:#111;margin:0 0 4px}
.ne-form-header p{font-size:13px;color:#888;margin:0}

.ne-form-body{padding:20px 28px 0;flex:1}

/* Inputs */
.ne-input-wrap{margin-bottom:14px;flex:1}
.ne-input-wrap.ne-small{flex:0 0 80px}
.ne-input-wrap label{display:block;font-size:11px;font-weight:700;color:#555;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px}
.ne-input-wrap input,
.ne-input-wrap select{width:100%;padding:11px 14px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:14px;font-family:inherit;outline:none;box-sizing:border-box;background:#fafafa;color:#111;transition:border .2s,box-shadow .2s}
.ne-input-wrap input:focus,
.ne-input-wrap select:focus{border-color:#e02020;box-shadow:0 0 0 3px rgba(224,32,32,.08);background:#fff}
.ne-input-wrap input::placeholder{color:#bbb}
.ne-input-wrap select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer;color:#666}

/* Phone input */
.ne-phone-input{display:flex;border:1.5px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fafafa;transition:border .2s,box-shadow .2s}
.ne-phone-input:focus-within{border-color:#e02020;box-shadow:0 0 0 3px rgba(224,32,32,.08);background:#fff}
.ne-country-code{padding:11px 12px;font-size:13px;font-weight:700;color:#555;border-right:1.5px solid #e5e7eb;white-space:nowrap;background:#f5f5f5;flex-shrink:0}
.ne-phone-input input{border:none!important;box-shadow:none!important;background:transparent!important;border-radius:0}

/* Row */
.ne-row{display:flex;gap:10px}

/* Buttons */
.ne-form-actions{display:flex;gap:10px;margin-top:6px}
.ne-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;border:none;transition:all .15s;flex:1;text-align:center}
.ne-btn:disabled{opacity:.5;cursor:not-allowed}
.ne-btn-primary{background:#e02020;color:#fff;box-shadow:0 2px 12px rgba(224,32,32,.25)}
.ne-btn-primary:hover:not(:disabled){background:#c41c1c;box-shadow:0 4px 16px rgba(224,32,32,.35)}
.ne-btn-secondary{background:#0a0a0a;color:#fff}
.ne-btn-secondary:hover:not(:disabled){background:#222}
.ne-btn-full{width:100%;padding:14px;font-size:15px;margin-top:16px}

/* Footer */
.ne-form-footer{padding:14px 28px;border-top:1px solid #f3f4f6;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:#aaa}
.ne-form-footer a{color:#e02020;text-decoration:none;font-weight:700}
.ne-form-footer a:hover{text-decoration:underline}

/* Messages */
.ne-msg{padding:12px 16px;border-radius:10px;font-size:13px;line-height:1.5;margin-bottom:12px}
.ne-msg-ok{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.ne-msg-err{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}

/* ═══ ITINERARY MODAL ═══ */
.ne-modal-itin{width:600px;background:#fff}

.ne-itin-head{background:#0a0a0a;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #e02020}
.ne-itin-head h3{font-size:18px;font-weight:800;color:#fff;margin:0}
.ne-itin-head p{font-size:12px;color:rgba(255,255,255,.5);margin:2px 0 0}
.ne-back-btn{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:8px 14px;cursor:pointer;font-size:13px;font-weight:600;color:#fff;font-family:inherit;transition:background .15s}
.ne-back-btn:hover{background:rgba(255,255,255,.15)}

.ne-itin-body{padding:24px;max-height:70vh;overflow-y:auto}

/* Steps */
.ne-step-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#111;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px}
.ne-step-num{width:24px;height:24px;border-radius:50%;background:#e02020;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* Region cards */
.ne-regions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:24px}
.ne-reg-card{padding:16px;border-radius:10px;cursor:pointer;text-align:center;border:2px solid #f0f0f0;transition:all .15s;background:#fff}
.ne-reg-card:hover{border-color:#f5a5a5;background:#fff9f9}
.ne-reg-card.ne-reg-active{border-color:#e02020;background:#fef2f2;box-shadow:0 0 0 3px rgba(224,32,32,.1)}
.ne-reg-name{font-size:14px;font-weight:700;color:#111}
.ne-reg-active .ne-reg-name{color:#c41c1c}
.ne-reg-tag{font-size:11px;color:#999;margin-top:3px;line-height:1.3}

/* Duration */
.ne-dur-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.ne-dur-btn{padding:10px 20px;border-radius:8px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;border:2px solid #f0f0f0;background:#fff;color:#333;transition:all .12s}
.ne-dur-btn:hover{border-color:#e02020;color:#e02020}
.ne-dur-btn.ne-dur-active{border-color:#e02020;background:#fef2f2;color:#c41c1c;box-shadow:0 0 0 3px rgba(224,32,32,.1)}

/* Custom textarea */
#ne-custom-note{width:100%;padding:14px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;font-family:inherit;outline:none;box-sizing:border-box;min-height:90px;resize:vertical;margin-bottom:16px;background:#fafafa;color:#111}
#ne-custom-note:focus{border-color:#e02020;box-shadow:0 0 0 3px rgba(224,32,32,.08)}

/* Days */
.ne-day{margin-bottom:18px}
.ne-day-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ne-day-num{width:30px;height:30px;border-radius:50%;background:#0a0a0a;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ne-day-head span:last-child{font-size:14px;font-weight:700;color:#111}

/* Places */
.ne-place{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;margin-bottom:4px;border-radius:10px;cursor:pointer;border:1.5px solid #f0f0f0;opacity:.45;transition:all .15s;background:#fff}
.ne-place:hover:not(.ne-locked){opacity:.7;border-color:#ddd}
.ne-place.ne-on{background:#fef2f2;border-color:#f5c4c4;opacity:1}
.ne-place.ne-locked{cursor:default}
.ne-place-left{display:flex;align-items:center;gap:10px}
.ne-check{width:22px;height:22px;border-radius:6px;border:2px solid #ddd;display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff;flex-shrink:0;transition:all .15s}
.ne-on .ne-check{background:#e02020;border-color:#e02020}
.ne-place-name{font-size:14px;font-weight:600;color:#111}
.ne-place-tag{display:block;font-size:10px;color:#bbb;font-weight:500}
.ne-place-status{font-size:12px;color:#ccc;font-weight:500}
.ne-on .ne-place-status{color:#e02020}

/* ═══ RESPONSIVE ═══ */

/* ── Tablet (≤800px) ── */
@media(max-width:800px){
    .ne-modal-form{flex-direction:column;width:100%;max-width:440px}
    .ne-banner{min-height:180px;flex:0 0 auto}
    .ne-banner-title{font-size:22px}
    .ne-banner-stats{gap:12px}
    .ne-stat-num{font-size:16px}
    .ne-form-header{padding:20px 20px 0}
    .ne-form-body{padding:16px 20px 0}
    .ne-form-footer{padding:12px 20px}
    .ne-modal-itin{width:100%;max-width:440px}
}

/* ── Phone (≤480px) — full-screen sheet style ── */
@media(max-width:480px){
    /* Overlay: edge-to-edge */
    .ne-overlay{padding:0;align-items:stretch;justify-content:flex-end}

    /* Modal: full width, tall as needed, no rounded corners */
    .ne-modal{max-width:100%;max-height:100vh;border-radius:16px 16px 0 0;width:100%!important}
    .ne-modal-form{max-width:100%}
    .ne-modal-itin{max-width:100%}

    /* Banner: compact — just brand + title, no dead space */
    .ne-banner{min-height:auto!important;flex:0 0 auto}
    .ne-banner-content{padding:16px 18px 14px}
    .ne-banner-title{font-size:18px;margin-bottom:4px}
    .ne-banner-sub{font-size:11px;margin-bottom:10px}
    .ne-banner-stats{display:none}
    .ne-banner-phone{display:none}
    .ne-banner-brand{margin-bottom:10px}

    /* Form panel: tighter padding */
    .ne-form-header{padding:16px 16px 0}
    .ne-form-header h3{font-size:18px}
    .ne-form-header p{font-size:12px}
    .ne-form-body{padding:12px 16px 0}

    /* Inputs: comfortable touch size (min 44px) */
    .ne-input-wrap{margin-bottom:10px}
    .ne-input-wrap label{font-size:10px;margin-bottom:3px}
    .ne-input-wrap input,
    .ne-input-wrap select{padding:12px 12px;font-size:16px;border-radius:8px}
    .ne-phone-input input{padding:12px 12px!important}
    .ne-country-code{padding:12px 10px;font-size:14px}

    /* font-size 16px prevents iOS auto-zoom on focus */

    /* Rows: stack vertically */
    .ne-row{flex-direction:column;gap:0}

    /* Destination + Adults + Children: 
       Destination full width, Adults & Children side by side */
    .ne-input-wrap.ne-small{flex:0 0 auto}
    .ne-row:last-of-type{flex-direction:row;flex-wrap:wrap}
    .ne-row:last-of-type .ne-input-wrap:first-child{flex:1 1 100%}
    .ne-row:last-of-type .ne-input-wrap.ne-small{flex:1 1 45%}

    /* Action buttons: stack, bigger tap targets */
    .ne-form-actions{flex-direction:column;gap:8px}
    .ne-btn{padding:14px 16px;font-size:15px;border-radius:10px;min-height:48px}

    /* Footer */
    .ne-form-footer{padding:10px 16px;font-size:12px}

    /* Close button: bigger touch target */
    .ne-close{width:38px;height:38px;top:10px;right:10px}

    /* ── Itinerary modal on phone ── */
    .ne-itin-head{padding:14px 16px;flex-wrap:wrap;gap:10px}
    .ne-itin-head h3{font-size:16px}
    .ne-itin-head p{font-size:11px}
    .ne-back-btn{padding:8px 12px;font-size:12px}

    .ne-itin-body{padding:16px;max-height:calc(100vh - 80px);-webkit-overflow-scrolling:touch}

    /* Step labels */
    .ne-step-label{font-size:12px;gap:8px;margin-bottom:10px}
    .ne-step-num{width:22px;height:22px;font-size:11px}

    /* Region grid: 2 columns, compact cards */
    .ne-regions-grid{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:16px}
    .ne-reg-card{padding:12px 8px;border-radius:8px}
    .ne-reg-name{font-size:13px}
    .ne-reg-tag{font-size:10px}

    /* Duration buttons: full-width stack */
    .ne-dur-row{flex-direction:column;gap:6px;margin-bottom:16px}
    .ne-dur-btn{padding:12px 16px;font-size:14px;text-align:center;width:100%;box-sizing:border-box;min-height:44px}

    /* Custom textarea */
    #ne-custom-note{font-size:16px;padding:12px;min-height:80px;margin-bottom:12px}

    /* Day itinerary cards */
    .ne-day{margin-bottom:14px}
    .ne-day-head{gap:8px;margin-bottom:6px}
    .ne-day-num{width:26px;height:26px;font-size:11px}
    .ne-day-head span:last-child{font-size:13px}

    /* Places: ensure text doesn't overflow */
    .ne-place{padding:10px 12px;margin-bottom:3px;border-radius:8px;gap:8px}
    .ne-place-left{gap:8px;min-width:0;flex:1}
    .ne-place-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100vw - 160px)}
    .ne-check{width:20px;height:20px;border-radius:5px;font-size:12px;flex-shrink:0}
    .ne-place-status{font-size:11px;flex-shrink:0;white-space:nowrap}

    /* Send itinerary button */
    .ne-btn-full{padding:14px;font-size:15px;margin-top:12px;min-height:48px}

    /* Messages */
    .ne-msg{padding:10px 14px;font-size:12px;border-radius:8px;margin-bottom:10px}

    /* reCAPTCHA notice */
    .ne-recaptcha-notice{padding:4px 16px 10px;font-size:10px}
}

/* ── Very small phones (≤360px, e.g. iPhone SE, older Androids) ── */
@media(max-width:360px){
    .ne-banner-content{padding:12px 14px 10px}
    .ne-banner-title{font-size:16px}
    .ne-banner-brand .ne-brand-text{font-size:13px}
    .ne-form-header h3{font-size:16px}
    .ne-form-body{padding:10px 12px 0}
    .ne-form-header{padding:12px 12px 0}
    .ne-form-footer{padding:8px 12px}
    .ne-itin-body{padding:12px}
    .ne-itin-head{padding:12px}
    .ne-itin-head h3{font-size:14px}
    .ne-regions-grid{gap:5px}
    .ne-reg-card{padding:10px 6px}
    .ne-reg-name{font-size:12px}
    .ne-place-name{max-width:calc(100vw - 140px)}
}

/* reCAPTCHA v2 checkbox widget */
.ne-recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 4px;
}

.ne-recaptcha-notice {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    padding: 6px 16px 12px;
}
.ne-recaptcha-notice a {
    color: #9ca3af;
    text-decoration: underline;
}

/* Scale reCAPTCHA widget on very small screens (it's 304px wide natively) */
@media (max-width: 360px) {
    .ne-recaptcha-wrap {
        transform: scale(0.88);
        transform-origin: center center;
    }
}
