/* ══════════════════════════════════════════════════════
   form.css  –  MED-ED Registration Form Styles
════════════════════════════════════════════════════════ */

:root {
    --primary:      #1a3a6b;
    --accent:       #e8a020;
    --accent2:      #c0392b;
    --bg:           #f4f6fb;
    --card:         #ffffff;
    --border:       #d0d8e8;
    --text:         #1a2540;
    --muted:        #7080a0;
    --green-bg:     #e8f8ef;
    --green-bd:     #27ae60;
    --section-head: #1a3a6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Sarabun', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Header ── */
.site-header {
    background: var(--primary);
    color: #fff;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
    box-shadow: 0 3px 16px rgba(26,58,107,.35);
    position: sticky; top: 0; z-index: 100;
}
.site-header .logo-box {
    width: 120px; height: 48px;
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; opacity: .7; flex-shrink: 0;
}
.site-header h1 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.15rem; font-weight: 600; letter-spacing: .02em;
}
.site-header .subtitle { font-size: .8rem; opacity: .7; margin-top: 2px; }
.header-right { margin-left: auto; }
.header-right a {
    color: rgba(255,255,255,.8); font-size: .82rem;
    text-decoration: none; border: 1px solid rgba(255,255,255,.3);
    padding: 6px 14px; border-radius: 6px;
}
.header-right a:hover { background: rgba(255,255,255,.1); }

/* ── Page ── */
.page { max-width: 860px; margin: 0 auto; padding: 32px 16px 60px; }

/* ── Error box ── */
.error-box {
    background: #fff5f5; border: 1.5px solid #f5c6cb;
    border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
}
.error-box ul { list-style: none; }
.error-box li::before { content: "⚠ "; color: var(--accent2); }
.error-box li { font-size: .87rem; color: #721c24; padding: 2px 0; }

/* ── Section card ── */
.section-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26,58,107,.06);
}
.section-head {
    background: var(--section-head);
    color: #fff;
    padding: 13px 22px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: .95rem; font-weight: 600;
}
.section-head .num {
    background: rgba(255,255,255,.2);
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; flex-shrink: 0;
}
.optional-badge {
    font-size: .72rem; font-weight: 600;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    padding: 2px 8px; border-radius: 10px;
    margin-left: 6px;
}
.section-body { padding: 20px 22px; }
.field-hint-top { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }

/* ── Form grid & fields ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.col-full { grid-column: 1 / -1; }

.field label {
    display: block; font-size: .82rem; font-weight: 600;
    color: var(--primary); margin-bottom: 5px;
}
.field label .req { color: var(--accent2); margin-left: 2px; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=time],
.field select,
.field textarea {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .88rem;
    font-family: 'Sarabun', sans-serif;
    color: var(--text); background: #fafbfe;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.field input[readonly] { background: #f0f4ff; color: var(--primary); font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,.1);
    background: #fff;
}
.field textarea { resize: vertical; min-height: 70px; }
.field .hint { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* ── Password field with toggle ── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1rem; padding: 2px; line-height: 1;
    color: var(--muted);
}
.pw-toggle:hover { color: var(--primary); }

/* ── Coordinator highlight ── */
.type-coordinator-item {
    border-color: #c7d2fe !important;
    background: #eef2ff;
}
.type-coordinator-item input { accent-color: #4338ca; }

/* ── Checkbox group ── */
.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer; transition: all .15s;
}
.check-item:hover { background: #f0f4ff; border-color: #c7d2fe; }
.check-item input[type=checkbox] {
    width: 17px; height: 17px; accent-color: var(--primary);
    margin-top: 2px; flex-shrink: 0;
}
.check-item .cl { font-size: .88rem; line-height: 1.4; }
.check-item .cl small { display: block; font-size: .76rem; color: var(--muted); margin-top:2px }

.sub-checks { margin-left: 32px; margin-top: 4px; display: flex; flex-direction: column; gap: 5px; }
.sub-checks .check-item { padding: 5px 8px; }
.sub-checks .check-item .cl { font-size: .83rem; }

/* ── Workshop grid ── */
.workshop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-item {
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 10px 14px; cursor: pointer; transition: all .15s; background: #fafbfe;
}
.ws-item:hover { border-color: var(--primary); background: #f0f4ff; }
.ws-item.full-ws { opacity: .55; pointer-events: none; border-color: #fca5a5; background: #fff5f5; }
.ws-item input[type=checkbox] { accent-color: var(--primary); margin-right: 8px; }
.ws-label { font-size: .87rem; font-weight: 600; }
.ws-slot { margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.slot-bar { flex: 1; height: 5px; background: #e0e7ff; border-radius: 3px; overflow: hidden; display: flex; }
.slot-fill { height: 100%; border-radius: 3px; background: var(--primary); transition: width .4s; }
.slot-fill.warn { background: var(--accent); }
.slot-fill.full { background: var(--accent2); }
.slot-text { font-size: .72rem; white-space: nowrap; }
.slot-text.ok { color: var(--primary); font-weight: 600; }
.slot-text.warn { color: var(--accent); font-weight: 600; }
.slot-text.full-label { color: var(--accent2); font-weight: 700; }

/* ── Radio group ── */
.radio-group { display: flex; flex-direction: column; gap: 7px; }
.radio-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    border: 1.5px solid transparent; cursor: pointer; transition: all .15s;
}
.radio-item:hover { background: #f0f4ff; border-color: #c7d2fe; }
.radio-item input[type=radio] { accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.radio-item .cl { font-size: .88rem; }

/* ── Conditional blocks ── */
.cond-block {
    background: #f7f9ff; border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0; padding: 14px 16px; margin-top: 8px;
    display: none;
}
.cond-block.active { display: block; }
.cond-block .form-grid { gap: 10px 16px; }

/* ── Upload zone ── */
.upload-zone {
    border: 2.5px dashed var(--border); border-radius: 12px;
    padding: 32px 20px; text-align: center;
    cursor: pointer; transition: all .2s; background: #fafbfe;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--primary); background: #f0f4ff; }
.upload-zone input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-zone p { font-size: .88rem; color: var(--muted); }
.upload-zone strong { font-size: .95rem; color: var(--primary); }
.preview-img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 8px;
    pointer-events: none;
}

/* ── Submit ── */
.submit-row { text-align: center; margin-top: 10px; }
.btn-submit {
    background: var(--primary); color: #fff;
    border: none; border-radius: 10px;
    padding: 14px 48px; font-size: 1rem;
    font-family: 'Prompt', sans-serif; font-weight: 600;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 4px 18px rgba(26,58,107,.35);
}
.btn-submit:hover { background: #122d5a; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(26,58,107,.4); }
.btn-submit:active { transform: translateY(0); }

.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.7; }

/* ══════════════════════════════════════════════════════
   SUCCESS PAGE  (Google-form style)
════════════════════════════════════════════════════════ */
.success-page {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 16px;
}
.success-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 52px 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(26,58,107,.10);
}
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.success-card h2 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--primary); margin-bottom: 12px;
}
.success-card p { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.success-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-another {
    display: block; padding: 13px 24px;
    background: var(--primary); color: #fff;
    border-radius: 10px; font-family: 'Prompt', sans-serif;
    font-size: .95rem; font-weight: 600; text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(26,58,107,.3);
}
.btn-another:hover { background: #122d5a; transform: translateY(-1px); }
.btn-home {
    display: block; padding: 13px 24px;
    background: #f0f4ff; color: var(--primary);
    border-radius: 10px; font-family: 'Prompt', sans-serif;
    font-size: .95rem; font-weight: 600; text-decoration: none;
    border: 1.5px solid #c7d2fe; transition: all .2s;
}
.btn-home:hover { background: #e0e7ff; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .workshop-grid { grid-template-columns: 1fr; }
    .site-header h1 { font-size: .95rem; }
    .success-card { padding: 36px 24px; }
}

/* ── readonly prefill (coordinator send-another) ── */
.field input[readonly] {
    background: #f0f4ff;
    color: var(--primary);
    font-weight: 600;
    cursor: not-allowed;
}
/* ══════════════════════════════════════════════════════
   COORDINATOR – remove blue highlight
════════════════════════════════════════════════════════ */
.type-coordinator-item {
    border-color: transparent !important;
    background: transparent !important;
}
.type-coordinator-item input { accent-color: var(--primary) !important; }

/* ══════════════════════════════════════════════════════
   ORG TRIGGER BUTTON
════════════════════════════════════════════════════════ */
.org-trigger-btn {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .88rem;
    font-family: 'Sarabun', sans-serif;
    color: var(--text);
    background: #fafbfe;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color .2s, box-shadow .2s;
}
.org-trigger-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,.1);
    background: #fff;
}
.org-trigger-btn .org-trigger-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-trigger-btn .org-trigger-arrow { color: var(--muted); font-size: .8rem; margin-left: 8px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   ORG MODAL — OVERLAY
════════════════════════════════════════════════════════ */
#orgModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
#orgModal.open { display: flex; }

.org-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 50, 0.55);
    backdrop-filter: blur(4px);
    animation: orgFadeIn .18s ease;
}

@keyframes orgFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes orgSlideUp { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Outer wrapper: tabs row + card box ── */
.org-modal-outer {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(660px, 95vw);
    max-height: 84vh;
    animation: orgSlideUp .22s cubic-bezier(.34,1.2,.64,1);
}

/* ── Top row: tabs left, close button right ── */
.org-modal-toprow {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 2px;
    flex-shrink: 0;
}

/* ── Filter tabs — sit on the box edge ── */
.org-filter-tabs {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.org-filter-tabs::-webkit-scrollbar { display: none; }

.org-filter-tab {
    padding: 7px 16px 9px;
    border-radius: 10px 10px 0 0;
    border: 2px solid transparent;
    border-bottom: none;
    background: rgba(255,255,255,.25);
    font-family: 'Prompt', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    backdrop-filter: blur(4px);
    /* push inactive tabs down slightly */
    margin-bottom: 0;
    transform: translateY(2px);
}
.org-filter-tab:hover {
    background: rgba(255,255,255,.4);
    color: #fff;
    transform: translateY(0);
}
.org-filter-tab.active {
    background: #fff;
    color: var(--tab-color, var(--primary));
    border-color: var(--border);
    border-bottom-color: #fff;
    transform: translateY(0);
    z-index: 2;
    /* bottom border hides behind the box */
    margin-bottom: -2px;
    padding-bottom: 11px;
}

/* Close button sits at the right of the tab row */
.org-modal-close {
    background: rgba(255,255,255,.25);
    border: none;
    border-radius: 8px;
    width: 32px; height: 32px;
    cursor: pointer;
    font-size: .9rem;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
    margin-bottom: 4px;
    backdrop-filter: blur(4px);
}
.org-modal-close:hover { background: rgba(255,255,255,.45); }

/* ── The white card box ── */
.org-modal-dialog {
    background: #fff;
    border-radius: 0 14px 14px 14px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: 74vh;
    box-shadow: 0 20px 60px rgba(10,20,60,.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── Search bar inside the box ── */
.org-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}
.org-search-icon { font-size: 1.1rem; color: var(--muted); }
.org-modal-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: .88rem;
    font-family: 'Sarabun', sans-serif;
    color: var(--text);
    background: transparent;
}

/* ── Scrollable body ── */
.org-modal-body {
    overflow-y: auto;
    padding: 14px 14px 18px;
    flex: 1;
}
.org-loading {
    text-align: center;
    color: var(--muted);
    padding: 32px;
    font-size: .88rem;
}

/* ── Category section header ── */
.org-cat-section { margin-bottom: 14px; }
.org-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    color: var(--cat-color);
    background: var(--cat-color-light);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 8px;
    letter-spacing: .02em;
}
.org-cat-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--cat-color);
    flex-shrink: 0;
}
.org-cat-count {
    margin-left: auto;
    background: rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: .72rem;
}

/* ══ CARD GRID — 2 per row ══ */
.org-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.org-card {
    position: relative;
    display: flex;
    align-items: stretch;
    text-align: left;
    background: #fafbfe;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
    min-height: 52px;
}
.org-card:hover {
    border-color: var(--card-color);
    background: var(--card-light);
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.org-card:active { transform: translateY(0); }

.org-card-tab {
    width: 5px;
    flex-shrink: 0;
    background: var(--card-color);
    display: block;
    align-self: stretch;
    transition: width .15s;
}
.org-card:hover .org-card-tab { width: 7px; }

.org-card-name {
    flex: 1;
    padding: 10px 12px;
    font-size: .83rem;
    font-family: 'Sarabun', sans-serif;
    color: var(--text);
    line-height: 1.4;
    display: flex;
    align-items: center;
}
.org-card:hover .org-card-name { color: var(--card-color); font-weight: 600; }
.org-card-other .org-card-name { color: var(--muted); font-style: italic; }
.org-card-other:hover .org-card-name { color: #6b7280; }

@media (max-width: 500px) {
    .org-card-grid { grid-template-columns: 1fr; }
    .org-modal-outer { width: 100%; max-height: 90vh; align-self: flex-end; }
    .org-modal-dialog { border-radius: 14px 14px 0 0; }
    .org-filter-tab { font-size: .76rem; padding: 6px 12px 9px; }
}

/* ══════════════════════════════════════════════════════
   EMAIL VALIDATION STATUS
════════════════════════════════════════════════════════ */
.email-status {
    margin-top: 5px; font-size: .78rem; font-weight: 600;
    min-height: 18px; line-height: 1.4; transition: all .2s;
}
.email-status.valid   { color: #27ae60; }
.email-status.invalid { color: var(--accent2); }
.email-status.checking { color: var(--muted); }
#emailField.email-ok    { border-color: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.1); }
#emailField.email-error { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }

/* ══════════════════════════════════════════════════════
   STUDENT FREE CLAIM BOX
════════════════════════════════════════════════════════ */
.student-free-claim-box {
    margin-top: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #7dd3fc;
    border-radius: 10px;
    padding: 12px 14px;
}
.student-free-claim-header {
    font-family: 'Prompt', sans-serif;
    font-size: .85rem; font-weight: 700; color: #0369a1;
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.sfree-badge {
    background: #0369a1; color: #fff;
    font-size: .7rem; padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.sfree-progress-wrap { margin-bottom: 8px; }
.sfree-progress-label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .78rem; font-weight: 600; color: #0369a1; margin-bottom: 5px;
}
.sfree-bar-bg { height: 8px; background: #e0f2fe; border-radius: 4px; overflow: hidden; }
.sfree-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
    border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1);
}
.sfree-bar-fill.full { background: linear-gradient(90deg, #f97316, #dc2626); }
.sfree-status { margin-top: 5px; font-size: .76rem; font-weight: 600; }
.sfree-status.available { color: #059669; }
.sfree-status.full      { color: var(--accent2); }
.sfree-claim-label { background: rgba(255,255,255,.6); border-radius: 8px; margin-top: 4px; }

/* ══════════════════════════════════════════════════════
   GUEST FOLLOWER COUNT
════════════════════════════════════════════════════════ */
#guestFollowerBlock input[type=number] {
    width: 100%; padding: 8px 12px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .88rem; font-family: 'Sarabun', sans-serif; background: #fafbfe;
}

/* ══════════════════════════════════════════════════════
   FLIGHT LAYOUT — form + time picker side by side
════════════════════════════════════════════════════════ */
.flight-layout-wrap { display: flex; gap: 16px; align-items: flex-start; }
.flight-form-col { flex: 1; min-width: 0; }

/* ── Time picker button ── */
.time-picker-btn {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .88rem; font-family: 'Sarabun', sans-serif;
    color: var(--text); background: #fafbfe;
    cursor: pointer; text-align: left;
    display: flex; align-items: center; justify-content: space-between;
    transition: border-color .2s, box-shadow .2s;
}
.time-picker-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,107,.1);
    background: #fff;
}
.time-picker-btn:focus { outline: none; border-color: var(--primary); }
.time-picker-arrow { color: var(--muted); font-size: .8rem; flex-shrink: 0; transition: transform .2s; }

/* ── Slide-out dropdown ── */
.time-picker-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    margin-top: 4px;
}
.time-picker-dropdown.open {
    grid-template-rows: 1fr;
}
.time-picker-dropdown.open ~ .hint { display: none; }
.time-picker-dropdown.open + * .time-picker-arrow { transform: rotate(180deg); }
.tpd-inner {
    min-height: 0;
    background: #fff;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(26,58,107,.12);
}
.tpd-msg {
    color: var(--muted); font-size: .82rem;
    text-align: center; padding: 10px 0;
}
.tpd-day {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: border-color .15s;
}
.tpd-day:last-child { margin-bottom: 0; }
.tpd-day-active {
    border-color: #bfdbfe;
    background: #f0f9ff;
}
.tpd-day-label {
    font-family: 'Prompt', sans-serif;
    font-size: .72rem; font-weight: 700;
    color: var(--primary);
    background: #e8edf8;
    border-radius: 5px;
    padding: 3px 8px;
    margin-bottom: 7px;
    display: inline-block;
}
.tpd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpd-chip {
    background: #e0e7ff;
    color: var(--primary);
    border: 1.5px solid #c7d2fe;
    border-radius: 7px;
    padding: 5px 14px;
    font-size: .84rem;
    font-weight: 600;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: all .15s;
}
.tpd-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(26,58,107,.2);
}
.tpd-chip-selected {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 8px rgba(26,58,107,.25);
}
.tpd-none { font-size: .76rem; color: var(--muted); font-style: italic; }

@media (max-width: 700px) {
    .flight-layout-wrap { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════
   FLIGHT SCHEDULE — SLIDE-IN PANEL FROM RIGHT
════════════════════════════════════════════════════════ */

/* "ดูตาราง" trigger button */
.fss-open-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.fss-open-btn:hover { background: #152f58; transform: translateY(-1px); }

/* Overlay backdrop */
.fss-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10,20,50,0);
    pointer-events: none;
    transition: background .3s ease;
}
.fss-overlay.open {
    background: rgba(10,20,50,.45);
    pointer-events: auto;
}

/* Slide panel */
.fss-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(10,20,60,.18);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    z-index: 1101;
    border-left: 2px solid var(--border);
}
.fss-overlay.open .fss-panel {
    transform: translateX(0);
}

/* Header */
.fss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    font-family: 'Prompt', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}
.fss-close {
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 7px;
    color: #fff;
    width: 30px; height: 30px;
    cursor: pointer;
    font-size: .9rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.fss-close:hover { background: rgba(255,255,255,.3); }

/* Airport tabs */
.fss-airport-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    flex-shrink: 0;
}
.fss-tab {
    flex: 1;
    padding: 10px;
    background: #f4f6fb;
    border: none;
    font-family: 'Sarabun', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    border-bottom: 3px solid transparent;
}
.fss-tab.active {
    background: #fff;
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.fss-tab:hover:not(.active) { background: #e8edf8; color: var(--primary); }

/* Scrollable body */
.fss-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
}

/* Day block */
.fss-day {
    margin-bottom: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.fss-day-label {
    background: var(--primary);
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    padding: 6px 12px;
    letter-spacing: .02em;
}

/* Two columns: รับ / ส่ง */
.fss-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.fss-col {
    padding: 10px;
}
.fss-col:first-child {
    border-right: 1px solid var(--border);
}
.fss-col-head {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 7px;
    letter-spacing: .02em;
}

/* Chips */
.fss-chips { display: flex; flex-direction: column; gap: 5px; }
.fss-chip {
    border: 1.5px solid;
    border-radius: 7px;
    padding: 6px 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    width: 100%;
}
.fss-chip-arrive {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: var(--primary);
}
.fss-chip-arrive:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(26,58,107,.2);
}
.fss-chip-depart {
    background: #fef9ec;
    border-color: #fde68a;
    color: #92400e;
}
.fss-chip-depart:hover {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(180,83,9,.2);
}
.fss-chip-sel {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor !important;
    transform: none !important;
}
.fss-chip-arrive.fss-chip-sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.fss-chip-depart.fss-chip-sel { background: #b45309; color: #fff; border-color: #b45309; }

@media (max-width: 480px) {
    .fss-panel { width: 100vw; }
}
/* ══════════════════════════════════════════════════════
   HOTEL PICKER – Section 6
════════════════════════════════════════════════════════ */
/* ══ SECTION 6 – Hotel Picker ══════════════════════════ */
#hotelPickerInline { margin: 0; }
.hotel-picker-wrap {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── LEFT: scrollable hotel list ── */
.hotel-list-panel {
    width: 240px;
    min-width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    height: 480px;
    background: var(--bg-alt, #f7f8fa);
    scroll-behavior: smooth;
}
.hotel-list-panel::-webkit-scrollbar { width: 4px; }
.hotel-list-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* each hotel card in the list */
.hotel-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background .15s, border-left .15s;
    border-left: 3px solid transparent;
    position: relative;
}
.hotel-card:last-child { border-bottom: none; }
.hotel-card:hover {
    background: rgba(var(--primary-rgb, 41,98,255),.07);
    border-left-color: rgba(var(--primary-rgb, 41,98,255),.35);
}
.hotel-card.active {
    background: rgba(var(--primary-rgb, 41,98,255),.12);
    border-left: 3px solid var(--primary);
}

.hotel-card-logo { flex-shrink: 0; }
.hotel-logo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #6b98ff 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(41,98,255,.25);
}
.hotel-card-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.hotel-card-info { flex: 1; min-width: 0; }
.hotel-card-name {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    white-space: normal;
}
.hotel-card-sub  { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.hotel-card-tel  { font-size: .72rem; color: var(--primary); margin-top: 3px; font-weight: 500; }

.hotel-card-arrow {
    font-size: 1.1rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .15s, color .15s;
}
.hotel-card.active  .hotel-card-arrow,
.hotel-card:hover   .hotel-card-arrow { color: var(--primary); transform: translateX(2px); }

/* ── RIGHT: detail panel ── */
.hotel-detail-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 480px;
}

.hotel-detail-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fafbff;
}

.hotel-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.hotel-detail-content::-webkit-scrollbar { width: 4px; }
.hotel-detail-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Highlight info bar (pops out prominently at the TOP of detail) ── */
.hotel-highlight-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #3a6bff 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(41,98,255,.3);
    position: relative;
    z-index: 2;
}
.hotel-highlight-bar::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #3a6bff;
    z-index: 3;
}

.hotel-hl-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hotel-hl-item.hotel-hl-name { width: 100%; }
.hotel-hl-label {
    font-size: .66rem;
    opacity: .8;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.hotel-hl-val {
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
}
.hotel-hl-tel { letter-spacing: .03em; }

/* ── Photo ── */
.hotel-detail-photo {
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 8px;
}
.hotel-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.hotel-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Map embed ── */
.hotel-map-embed {
    padding: 10px 14px 0;
    flex-shrink: 0;
}

/* ── Location row ── */
.hotel-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
    background: var(--bg-alt, #f7f8fa);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 8px;
}
.hotel-location-text {
    flex: 1;
    font-size: .8rem;
    color: var(--text);
    min-width: 0;
    font-weight: 500;
}
.hotel-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #4285F4;
    color: #fff;
    border-radius: 7px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(66,133,244,.35);
    transition: background .15s, box-shadow .15s;
}
.hotel-map-btn:hover {
    background: #2a6fdb;
    box-shadow: 0 3px 10px rgba(66,133,244,.45);
}

/* ── Booking form ── */
.hotel-booking-form {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hotel-picker-wrap  { flex-direction: column; min-height: unset; }
    .hotel-list-panel   { width: 100%; height: auto; max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
    .hotel-detail-panel { height: auto; min-height: 340px; }
}

/* ══ HOTEL MODAL OVERLAY ══ */
#hotelModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#hotelModal.hm-open { display: flex; }

.hm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
}

/* Shell wraps the X button + dialog together so X floats above the box */
.hm-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* X button aligns to the right */
}

/* ✕ button sits ABOVE the dialog, flush to its right edge */
.hm-close-float {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,.30);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: background .15s, transform .15s;
    flex-shrink: 0;
}
.hm-close-float:hover { background: #fee2e2; color: #b91c1c; transform: scale(1.08); }

/* ══ HM CARD — hotel list items ══ */
.hm-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
    border-left: 3px solid transparent;
}
.hm-card:hover    { background: #eef2ff; border-left-color: #a5b4fc; }
.hm-card-active   { background: #e0e7ff; border-left-color: #6366f1; }
.hm-card-special  { background: #fffbeb; }
.hm-card-special.hm-card-active { background: #fef3c7; }

.hm-card-img      { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.hm-card-img img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-img-fallback  {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a3a6b, #3a6bff);
    color: #fff; font-size: 1.3rem; font-weight: 700;
}
.hm-card-text  { flex: 1; min-width: 0; }
.hm-card-name  { font-weight: 600; font-size: .85rem; line-height: 1.3; color: #1e293b; }
.hm-card-sub   { font-size: .74rem; color: #6b7280; margin-top: 2px; }

/* RIGHT empty state */
.hm-right-empty {
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: #9ca3af; font-size: .88rem;
}

/* hm-info section */
.hm-info         { padding: 16px 18px 8px; }
.hm-info-name    { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.hm-info-row     { font-size: .85rem; color: #374151; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-gmaps-btn    {
    display: inline-block; padding: 3px 10px;
    background: #4285F4; color: #fff; border-radius: 6px;
    font-size: .76rem; font-weight: 700; text-decoration: none;
    transition: background .15s;
}
.hm-gmaps-btn:hover { background: #2a6fdb; }

/* map area */
.hm-map {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    flex-shrink: 0;
    background: #e5e7eb;
    overflow: hidden;
}
.hm-map iframe        { display: block; width: 100%; height: 100%; border: 0; }
.hm-map-placeholder   {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #9ca3af; letter-spacing: .05em;
    background: #f1f5f9;
}

/* ══ DIALOG layout — footer outside scroll ══ */
.hm-dialog {
    display: flex;
    width: min(860px, 96vw);
    height: min(580px, 88vh);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    flex-direction: row;  /* left + right-column */
}

/* Right column wraps scrollable content + sticky footer */
.hm-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.hm-right {
    flex: 1;
    overflow-y: auto;
    position: relative;
    min-height: 0;      /* critical — allows flex child to scroll */
}
/*.hm-right::-webkit-scrollbar       { width: 6px; }
.hm-right::-webkit-scrollbar-track { background: #f1f5f9; }
.hm-right::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 99px; }
.hm-right::-webkit-scrollbar-thumb:hover { background: #818cf8; }*/
    
.hm-footer {
    flex-shrink: 0;
    padding: 12px 18px 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.hm-confirm-btn {
    width: 100%;
    padding: 13px;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    letter-spacing: .02em;
}
.hm-confirm-btn:hover  { background: #122d5a; transform: translateY(-1px); }
.hm-confirm-btn:active { background: #0e2347; transform: translateY(0); }

/* Remove old confirm-wrap if still referenced */
.hm-confirm-wrap { display: none !important; }

/* Hide old inline close button if still in DOM */
.hm-close-btn { display: none !important; }

/* ══ ROOM SLOTS ══ */
.hm-room-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-room-slot {
    flex: 1; min-width: 120px;
    padding: 10px 14px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all .18s;
    user-select: none;
}
.hm-room-slot:hover { border-color: #a5b4fc; background: #eef2ff; }
.hm-room-slot-active {
    border-color: #6366f1 !important;
    background: #eef2ff !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.hm-room-slot-label {
    font-size: .92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.hm-room-slot-active .hm-room-slot-label { color: #4f46e5; }

.hm-room-progress-wrap { display: flex; align-items: center; gap: 8px; }
.hm-room-progress-bar  { flex: 1; height: 6px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.hm-room-progress-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }
.hm-room-progress-num  { font-size: .74rem; font-weight: 700; white-space: nowrap; min-width: 38px; text-align: right; }

/* ══ CONFIRM BUTTON — sticky at bottom ══ */
.hm-confirm-wrap {
    padding: 14px 18px 18px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 28%);
    padding-top: 24px;
}
.hm-confirm-btn {
    width: 100%;
    padding: 13px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}
.hm-confirm-btn:hover  { opacity: .9; transform: translateY(-1px); }
.hm-confirm-btn:active { opacity: 1;  transform: translateY(0); }

/* trigger button */
.hotel-picker-trigger {
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: #f0f4ff;
    border: 2px dashed #1a3a6b;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    color: #1a3a6b;
    transition: background .15s;
}
.hotel-picker-trigger:hover { background: #e0e7ff; }

/* ── Special hotel badge ── */
.hm-special-badge {
    display: inline-block;
    font-size: .68rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: 600;
}

/* ── Room type buttons ── */
.hm-room-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-room-btn {
    padding: 7px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    font-size: .88rem;
    cursor: pointer;
    transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hm-room-btn:hover { border-color: var(--primary, #4f46e5); background: #eef2ff; }
.hm-room-btn-active { border-color: var(--primary, #4f46e5); background: #e0e7ff; font-weight: 700; }
.hm-room-max { font-size: .7rem; color: #9ca3af; font-weight: 400; }

/* ── Extra bed checkbox ── */
.hm-extra-label { display: flex; align-items: center; gap: 7px; font-size: .88rem; cursor: pointer; }
.hm-extra-label input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }

/* ── Guest name rows ── */
.hm-guest-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.hm-guest-input { flex: 1; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: .88rem; }
.hm-guest-remove {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border: none; border-radius: 50%;
    background: #fee2e2; color: #b91c1c;
    font-size: .8rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.hm-guest-remove:hover { background: #fecaca; }
.hm-guest-add {
    margin-top: 4px;
    padding: 5px 12px;
    border: 1px dashed #6366f1;
    border-radius: 8px;
    background: transparent;
    color: #6366f1;
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s;
}
.hm-guest-add:hover { background: #eef2ff; }

/* ── Section 6 hotel summary card ── */
.hotel-summary-card {
    margin-top: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}
.hsc-inner { display: flex; gap: 0; align-items: stretch; }
.hsc-img {
    width: 110px; flex-shrink: 0;
    overflow: hidden;
}
.hsc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsc-info { padding: 12px 14px; flex: 1; }
.hsc-name { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.hsc-row  { font-size: .82rem; color: #4b5563; margin-bottom: 4px; }

/* ══ HOTEL MODAL — floating close button outside box ══ */


/* ══ RIGHT PANEL — styled scrollbar ══ */
.hm-right {
    flex: 1;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #c7d2fe #f1f5f9;
}
.hm-right::-webkit-scrollbar       { width: 6px; }
.hm-right::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 99px; }
.hm-right::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 99px; }
.hm-right::-webkit-scrollbar-thumb:hover { background: #818cf8; }

/* ══ LEFT PANEL — styled scrollbar ══ */
.hm-left {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 #f8fafc;
}
.hm-left::-webkit-scrollbar       { width: 5px; }
.hm-left::-webkit-scrollbar-track { background: #f8fafc; }
.hm-left::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 99px; }
.hm-left::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ══ BOOKING SECTION — padding fix ══ */
.hm-booking {
    padding: 16px 20px 18px;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
}
.hm-booking-title {
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 14px;
    color: #1e3a5f;
}
.hm-booking-field {
    margin-bottom: 14px;
}
.hm-booking-field label {
    display: block;
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* ══ ROOM TYPE SLOTS WITH PROGRESS ══ */
.hm-room-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hm-room-slot {
    flex: 1;
    min-width: 110px;
    padding: 10px 14px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all .18s;
    text-align: left;
}
.hm-room-slot:hover { border-color: #a5b4fc; background: #eef2ff; }
.hm-room-slot-active {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.hm-room-slot-label {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}
.hm-room-slot-active .hm-room-slot-label { color: #4f46e5; }

.hm-room-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-room-progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.hm-room-progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}
.hm-room-progress-num {
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 36px;
    text-align: right;
}

/* ══ INFO PHOTO GALLERY (non-special hotels) ══ */
.hm-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 18px 16px;
    /* Reserve exact same height whether hotel has pics or not */
    min-height: 120px;
}
.hm-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 90px;          /* fixed height — not aspect-ratio, which causes reflow */
    background: #f1f5f9;
    flex-shrink: 0;
}
.hm-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .25s;
}
.hm-gallery-item:hover img { transform: scale(1.04); }

.hm-detail {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ══ Info section — fixed line heights so contact/tel lines don't shift layout ══ */
.hm-info {
    padding: 14px 18px 10px;
    flex-shrink: 0;
    min-height: 110px;    /* enough for name + address + contact + tel */
}
.hm-info-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #1e293b; min-height: 1.4em; }
.hm-info-row  {
    font-size: .85rem; color: #374151;
    margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    min-height: 1.3em;
}

/* ══ CONFIRM BUTTON WRAP ══ */
.hm-confirm-wrap {
    padding: 12px 18px 18px;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, #fff 30%);
    padding-top: 20px;
}
.hm-confirm-btn {
    width: 100%;
    padding: 15px;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    letter-spacing: .02em;
    display: block;
}
.hm-confirm-btn:hover  { background: #122d5a; transform: translateY(-1px); }
.hm-confirm-btn:active { background: #0e2347; transform: translateY(0); }

/* ══ REMOVE OLD inline close button if it was .hm-close-btn ══ */
.hm-close-btn { display: none !important; }

/* ── Inline hotel picker shell ── */
.hm-inline-shell {
    display: flex;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: visible;
    height: 420px;       /* fixed height — no wasted whitespace */
    background: #fff;
    padding-bottom: 20px;
}

/* Left: scrollable hotel list */
.hm-inline-left {
    width: 240px;
    min-width: 200px;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #f8fafc;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
}

/* Right: detail panel */
.hm-inline-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.hm-inline-right {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}
.hm-inline-loading {
    padding: 20px 10px;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
}
.hm-inline-footer {
    padding: 10px 14px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.hm-inline-footer .hm-confirm-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary, #1a3a6b);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.hm-inline-footer .hm-confirm-btn:hover { background: #2d5299; }
/* Footnote */
.hm-footnote {
    padding: 0 2px 10px;
    margin: 0;
    background: none;
    border: none;
    font-size: .82rem;
    line-height: 1.7;
}
.hm-footnote a { color: var(--muted); text-decoration: underline; }

/* Sand Dune PS notice */
.hm-sanddune-notice {
    background: #fef9c3;
    border-left: 4px solid #eab308;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 0.85rem;
    color: #713f12;
    margin: 10px 0 6px;
    line-height: 1.5;
}

.hm-skip-notice {
    font-size: .82rem;
    color: #6b7280;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 9px 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.hm-sanddune-notice a { color: #b45309; font-weight: 600; }

/* Mobile */
@media (max-width: 600px) {
    .hm-inline-shell { flex-direction: column; height: auto; }
    .hm-inline-left  { width: 100%; height: 180px; border-right: none; border-bottom: 1px solid #e5e7eb; }
}

.time-picker-btn-depart {
    border-color: #f59e0b !important;
    color: #92400e;
}

.time-picker-btn-depart:hover {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
    background: #fffbeb !important;
}
.time-picker-btn-depart .time-picker-arrow { color: #f59e0b; }

/* ── Remove hm-gallery min-height so no whitespace when hidden ── */
.hm-gallery { min-height: 0 !important; }

.time-picker-dropdown .tpd-inner {
    border-color: transparent;
    box-shadow: none;
    padding: 0;
    transition: padding .28s, border-color .28s;
}

.time-picker-dropdown.open .tpd-inner {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(26,58,107,.12);
    padding: 10px 12px;
}
#departTimeBtn {
    border-color: #f59e0b;
    color: #92400e;
}
#departTimeBtn:hover {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
    background: #fffbeb !important;
}
#departTimeBtn .time-picker-arrow { color: #f59e0b; }
#departTimeDropdown .tpd-inner { border-color: transparent; }
#departTimeDropdown.open .tpd-inner { border-color: #f59e0b; }

/* ── Depart time picker — orange chips ── */
#departTimeDropdown .tpd-chip {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
#departTimeDropdown .tpd-chip:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
    box-shadow: 0 3px 8px rgba(245,158,11,.3);
}
#departTimeDropdown .tpd-chip-selected {
    background: #f59e0b !important;
    color: #fff !important;
    border-color: #d97706 !important;
    box-shadow: 0 3px 8px rgba(245,158,11,.35) !important;
}
#departTimeDropdown .tpd-day-active {
    border-color: #fde68a;
    background: #fffbeb;
}
#departTimeDropdown .tpd-day-label {
    background: #fef3c7;
    color: #92400e;
}

.hm-card {
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

/* ══════════════════════════════════════════════
   COORDINATOR PANEL (inside Section 1)
══════════════════════════════════════════════ */
#coordPanel { margin-top: 18px; }

.coord-panel {
    background: #fff;
    border: 1.5px solid #c7d7f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26,58,107,.08);
}

.coord-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #1a3a6b 0%, #2563a8 100%);
    color: #fff;
}
.coord-panel-icon { font-size: 1.5rem; }
.coord-panel-title { font-size: .95rem; font-weight: 600; }
.coord-panel-sub   { font-size: .78rem; opacity: .8; margin-top: 2px; }
.coord-panel-badge {
    margin-left: auto;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .75rem;
    white-space: nowrap;
}

.coord-panel-body { padding: 14px 18px 10px; }

.coord-scroll-hint {
    font-size: .72rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 8px;
}

.coord-cards-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.coord-cards-track::-webkit-scrollbar { height: 4px; }
.coord-cards-track::-webkit-scrollbar-thumb { background: #c7d7f0; border-radius: 4px; }

/* Add button card */
.coord-add-card {
    flex: 0 0 110px;
    min-height: 110px;
    border: 2px dashed #93b4dc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: background .15s, border-color .15s;
    color: #2563a8;
}
.coord-add-card:hover { background: #eef4ff; border-color: #2563a8; }
.coord-add-icon  { font-size: 1.6rem; line-height: 1; }
.coord-add-label { font-size: .78rem; font-weight: 600; }

/* Person card */
.coord-person-card {
    flex: 0 0 130px;
    min-height: 110px;
    background: #f0f5ff;
    border: 1.5px solid #c7d7f0;
    border-radius: 10px;
    padding: 10px 10px 8px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.coord-card-del {
    position: absolute;
    top: 5px; right: 6px;
    background: none; border: none;
    color: #9ca3af; font-size: .8rem; cursor: pointer;
    line-height: 1; padding: 2px 4px;
}
.coord-card-del:hover { color: #ef4444; }
.coord-card-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #1a3a6b, #2563a8);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    margin-top: 4px;
}
.coord-card-name { font-size: .78rem; font-weight: 600; color: #1a3a6b; text-align: center; }
.coord-card-org  { font-size: .68rem; color: #6b7280; text-align: center; line-height: 1.2; }
.coord-card-type { font-size: .65rem; color: #2563a8; background: #dbeafe; border-radius: 8px; padding: 1px 7px; margin-top: 2px; }

.coord-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 18px 12px;
    border-top: 1px solid #e8edf8;
}
.coord-count-label { font-size: .82rem; font-weight: 600; color: #1a3a6b; }

/* ── Add-Person Mini Modal ── */
#addPersonModal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.apm-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
}
.apm-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(420px, 94vw);
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    overflow: hidden;
}
.apm-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    background: linear-gradient(90deg, #1a3a6b, #2563a8);
    color: #fff;
    font-weight: 600;
}
.apm-close {
    background: none; border: none; color: #fff;
    font-size: 1.1rem; cursor: pointer; padding: 2px 6px;
}
.apm-body   { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.apm-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid #e8edf8; }
.apm-cancel  { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 18px; cursor: pointer; font-size: .9rem; }
.apm-confirm { background: linear-gradient(90deg,#1a3a6b,#2563a8); color: #fff; border: none; border-radius: 8px; padding: 8px 20px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.apm-confirm:hover { opacity: .9; }

/* Active person card highlight */
.coord-person-card-active {
    border: 2px solid var(--primary, #1a3a6b) !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.15);
    transform: translateY(-2px);
}
.coord-person-card {
    transition: transform 0.15s, box-shadow 0.15s, border 0.15s;
}

/* ══ No-slip warning modal ══ */
.noslip-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.noslip-overlay.open { display: flex; }
.noslip-modal {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 22px;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    position: relative;
    animation: modalPop .22s ease;
}
@keyframes modalPop {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.noslip-modal-icon { font-size: 2.2rem; text-align: center; margin-bottom: 10px; }
.noslip-modal h3 { font-size: 1.08rem; font-weight: 700; color: var(--accent2, #c0392b); margin: 0 0 10px; text-align: center; }
.noslip-modal p  { font-size: .87rem; color: var(--muted, #555); line-height: 1.6; margin: 0 0 18px; }
.noslip-modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.noslip-modal-btns button {
    padding: 8px 20px; border-radius: 8px; border: none;
    font-size: .88rem; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.noslip-btn-ok     { background: var(--primary, #1a3a6b); color: #fff; }
.noslip-btn-cancel { background: #e5e7eb; color: #374151; }
.noslip-modal-btns button:hover { opacity: .85; }

.hm-map-link-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    color: #1a3a6b;
    text-decoration: none;
    border-radius: 10px;
    transition: background .2s, transform .2s;
    min-height: 160px;
}
.hm-map-link-placeholder:hover {
    background: linear-gradient(135deg, #d2e3fc, #b6d0f7);
    transform: scale(1.02);
}

/* Section 6 – Hotel radio list */
.hotel-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.hotel-radio-item:hover {
    background: #f0f4ff;
    border-color: #a5b4fc;
}
.hotel-radio-item input[type="radio"] {
    accent-color: var(--primary, #1a3a6b);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.hotel-radio-item span {
    font-size: 0.95rem;
    color: #1f2937;
}
.hotel-radio-loading {
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 8px 0;
}