/* Kumar Builders – Exhibition Enquiry (web)  ·  navy / white / gold */
:root {
    --navy-deep: #071428; --navy: #0B1F3A; --navy-mid: #16335C;
    --gold: #C9A24A; --gold-light: #E6C878; --gold-dark: #A07E2E;
    --ivory: #F7F5F0; --text: #1B2537; --muted: #667085; --border: #DDD7C8;
    --error: #B42318; --error-bg: #FEF3F2; --ok: #2E7D4F; --ok-bg: #EEF6F0;
    --gold-grad: linear-gradient(135deg, #F1D98E 0%, #C9A24A 55%, #A9842F 100%);
    --navy-grad: linear-gradient(135deg, #16335C 0%, #0B1F3A 60%, #071428 100%);
    --radius: 16px;
    --shadow: 0 4px 24px rgba(11, 31, 58, .10);
    --serif: Georgia, Cambria, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text); background: var(--ivory); -webkit-tap-highlight-color: transparent; }
h1, h2 { font-family: var(--serif); color: var(--navy); }
a { color: var(--navy-mid); }
.muted { color: var(--muted); } .small { font-size: 13px; } .gold { color: var(--gold-dark); font-weight: 600; }
.req { color: var(--error); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 28px;
       font-weight: 600; font-size: 16px; line-height: 1; font-family: inherit; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: transform .08s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-gold { background: var(--gold-grad); color: var(--navy-deep); border-color: var(--gold-light); }
.btn-navy { background: var(--navy-grad); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-danger { background: transparent; color: var(--error); border-color: #FECDCA; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 64px; padding: 0 48px; font-size: 20px; }
.btn-wide { min-width: 200px; }
.btn-block { width: 100%; }
.muted-text { color: var(--muted); }

/* ---------- inputs ---------- */
.input { width: 100%; min-height: 52px; padding: 12px 16px; font-size: 18px; font-family: inherit; color: var(--text); background: #fff;
         border: 2px solid var(--border); border-radius: 12px; outline: none; margin-top: 8px; }
.input:focus { border-color: var(--gold); }
textarea.input { min-height: 100px; resize: vertical; }
select.input { font-size: 15px; min-height: 44px; padding: 8px 12px; }
.input.sm { min-height: 44px; font-size: 15px; padding: 8px 12px; margin-top: 4px; }
label { display: block; font-weight: 600; font-size: 15px; }

/* ---------- generic cards / dialogs ---------- */
.card { background: #fff; border: 1px solid #ECE6D8; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 20px; }
.center-card { max-width: 560px; margin: 10vh auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); text-align: center; }
.center-logo { height: 56px; margin-bottom: 12px; }
.overlay { position: fixed; inset: 0; background: rgba(7, 20, 40, .78); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.dialog { background: #fff; border-radius: 24px; padding: 36px 40px; max-width: 640px; width: 100%; }
.dialog.center { text-align: center; }
.dialog p { font-size: 17px; line-height: 1.55; }
.dialog .pre { white-space: pre-line; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.gold-rule { width: 70px; height: 4px; background: var(--gold); margin-bottom: 16px; }
.big-icon { font-size: 44px; }

/* ================= KIOSK: welcome & thank-you ================= */
.kiosk { min-height: 100vh; }
.welcome { position: relative; min-height: 100vh; overflow: hidden; background: var(--navy-deep); color: #fff; }
.skyline { position: absolute; inset: 0; width: 100%; height: 100%; animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 50% 70%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.twinkle { animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .1; } to { opacity: 1; } }
.glow { animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .65; } to { opacity: 1; } }
.lamp { filter: blur(2px); }
.welcome-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,40,.85) 0%, rgba(7,20,40,.35) 35%, rgba(7,20,40,.4) 65%, rgba(7,20,40,.95) 100%); }
.welcome-overlay.strong { background: rgba(7,20,40,.8); }
.welcome-content { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 3vh 4vw; }
.welcome-top { display: flex; justify-content: space-between; align-items: center; }
.logo-plate { background: #fff; border-radius: 16px; padding: 14px 24px; box-shadow: 0 0 30px rgba(0,0,0,.35); cursor: pointer; user-select: none; }
.logo-plate img { height: clamp(44px, 7vh, 84px); display: block; }
.clock { text-align: right; } .clock .time { font-size: clamp(28px, 4vh, 44px); font-weight: 300; } .clock .date { opacity: .8; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3vh 0; }
.ex-badge { border: 1px solid var(--gold); background: rgba(201,162,74,.2); color: var(--gold-light); font-weight: 600; padding: 8px 24px; border-radius: 22px; font-size: clamp(15px, 2vh, 20px); }
.ornament { color: var(--gold); font-size: 24px; display: flex; align-items: center; gap: 16px; margin: 3vh 0 2vh; }
.ornament span { width: 80px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { color: transparent; background: linear-gradient(180deg, #FFF6E2, #E6C878); -webkit-background-clip: text; background-clip: text;
           font-size: clamp(34px, 7vw, 86px); margin: 0; text-shadow: 0 0 24px rgba(0,0,0,.25); letter-spacing: .5px; }
.hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 38px); margin: 2vh 0 0; }
.hero .msg { font-size: clamp(16px, 2vw, 25px); opacity: .9; margin: 2vh 0 0; max-width: 1300px; }
.btn-start { margin-top: 6vh; font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); font-family: inherit; color: var(--navy-deep); background: var(--gold-grad);
             border: 1px solid var(--gold-light); border-radius: 60px; padding: 26px 64px; cursor: pointer; animation: pulse 1.6s ease-in-out infinite alternate; }
.btn-start span { margin-left: 18px; }
@keyframes pulse { from { box-shadow: 0 0 14px rgba(230,200,120,.6); } to { box-shadow: 0 0 48px rgba(230,200,120,.95); } }
.hero .hint { opacity: .7; margin-top: 2.5vh; }
.welcome-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: clamp(13px, 1.6vh, 19px); }
.welcome-foot .muted { color: rgba(255,255,255,.6); }
.fade-in { opacity: 0; transform: translateY(30px); animation: fadein .9s cubic-bezier(.2,.7,.3,1) forwards; }
.d0 { animation-delay: 0s; } .d1 { animation-delay: .15s; } .d2 { animation-delay: .4s; } .d3 { animation-delay: .6s; } .d4 { animation-delay: .85s; }
@keyframes fadein { to { opacity: 1; transform: none; } }
.thanks-card { position: relative; margin: 6vh auto; max-width: 900px; width: calc(100% - 40px); background: rgba(255,255,255,.96); color: var(--text);
               border-radius: 32px; padding: 48px 56px; text-align: center; box-shadow: 0 0 60px rgba(0,0,0,.45); }
.pop-in { animation: pop .6s cubic-bezier(.3,1.4,.5,1) both; } @keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.thanks-logo { height: 64px; }
.check-circle { width: 84px; height: 84px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-deep); font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 22px auto 0; }
.thanks-card h1 { font-size: clamp(26px, 4vw, 46px); margin: 22px 0 0; }
.thanks-card .msg { font-size: clamp(17px, 2vw, 24px); }
.code-box { display: inline-block; background: var(--navy-grad); border-radius: 18px; padding: 18px 40px; margin: 22px 0 12px; }
.code-label { color: var(--gold-light); font-weight: 600; letter-spacing: 1px; }
.code { color: #fff; font-size: clamp(28px, 4vw, 48px); font-weight: 700; }
.thanks-card .btn { margin-top: 22px; }

/* ================= KIOSK: enquiry form ================= */
.form-page { min-height: 100vh; display: flex; flex-direction: column; }
.form-header { background: var(--navy-grad); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; gap: 16px; }
.fh-left { display: flex; align-items: center; gap: 14px; } .fh-left img { width: 50px; height: 50px; }
.fh-company { font-family: var(--serif); font-size: 22px; font-weight: 600; } .fh-ex { color: var(--gold-light); font-size: 14px; }
.fh-mid { text-align: center; font-size: 18px; } .fh-caption { color: var(--gold-light); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.steps { display: flex; justify-content: center; gap: 4px; background: #fff; padding: 12px 10px 6px; overflow-x: auto; }
.step { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 96px; font-family: inherit; color: var(--muted); }
.step:disabled { cursor: default; }
.step .dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.step-name { font-size: 13px; margin-top: 4px; }
.step.done .dot { background: var(--gold-light); border-color: var(--gold); color: var(--navy); }
.step.current .dot { background: var(--navy); border-color: var(--gold); color: #fff; }
.step.current .step-name { color: var(--navy); font-weight: 700; }
.progress { height: 5px; background: #EEE8DA; } .progress div { height: 5px; background: var(--gold); transition: width .3s; }
.form-body { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 24px 40px; }
.form-body h2 { font-size: 28px; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px 32px; }
.inline-check { float: right; font-weight: 500; color: var(--navy); font-size: 14px; }
.inline-check input { width: 20px; height: 20px; vertical-align: middle; }
.form-footer { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #ECE6D8; display: flex; align-items: center; justify-content: space-between;
               gap: 16px; padding: 12px 24px; flex-wrap: wrap; }
.form-footer > div { display: flex; gap: 10px; }
.error-banner { flex: 1; background: var(--error-bg); color: var(--error); border: 1px solid #FECDCA; border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.question { margin-bottom: 26px; } .question:last-child { margin-bottom: 0; }
.q-head { margin-bottom: 10px; } .q-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.q-head .q-title { display: inline; margin-right: 12px; }
.q-hint { color: var(--gold-dark); font-style: italic; font-size: 14px; }
.q-title .num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-light); align-items: center; justify-content: center; font-size: 15px; margin-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { min-height: 54px; padding: 8px 22px; border-radius: 28px; border: 2px solid var(--border); background: #fff; color: var(--text); font-size: 17px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip.on { background: var(--navy-grad); color: #fff; border-color: var(--gold); }
.chip .tick { color: var(--gold-light); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card.consent, .cards .card { margin: 0; }
.cards .card { position: relative; padding: 16px 10px; min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
               cursor: pointer; font-weight: 600; font-size: 15px; font-family: inherit; text-align: center; color: var(--text); box-shadow: none; border: 2px solid var(--border); border-radius: 18px; }
.cards .card.on { background: var(--navy-grad); color: #fff; border-color: var(--gold); }
.card-icon { font-size: 34px; line-height: 1; }
.card-badge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.other-input { max-width: 560px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 30px; }
.sum-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid #F0EBDF; }
.sum-k { width: 210px; color: var(--muted); flex-shrink: 0; } .sum-v { font-weight: 600; }
.card.consent { display: flex; gap: 18px; align-items: flex-start; border: 2px solid var(--gold); font-weight: 500; font-size: 18px; line-height: 1.5; cursor: pointer; }
.card.consent input { width: 36px; height: 36px; flex-shrink: 0; accent-color: var(--navy); }

/* ================= STAFF AREA ================= */
.staff-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--navy-grad); color: #fff; display: flex; flex-direction: column; padding: 22px 0; position: sticky; top: 0; height: 100vh; }
.sidebar-logo { background: #fff; border-radius: 12px; margin: 0 20px; padding: 10px 12px; } .sidebar-logo img { width: 100%; display: block; }
.sidebar-caption { color: var(--gold-light); font-size: 12px; font-weight: 600; letter-spacing: 1px; margin: 12px 22px 18px; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item { color: rgba(255,255,255,.85); text-decoration: none; padding: 13px 22px; margin: 0 12px; border-radius: 12px; font-size: 15.5px; border-left: 4px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: rgba(230,200,120,.16); color: #fff; font-weight: 600; border-left-color: var(--gold); }
.sidebar-user { border-top: 1px solid rgba(255,255,255,.2); margin: 0 20px; padding-top: 14px; }
.user-name { font-weight: 600; } .user-role { color: var(--gold-light); font-size: 13px; margin-bottom: 12px; }
.staff-main { flex: 1; min-width: 0; }
.page-head { background: #fff; border-bottom: 1px solid #ECE6D8; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; }
.page { padding: 22px 32px 40px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { display: flex; flex-direction: column; min-width: 150px; }
.toolbar .field.grow { flex: 1; min-width: 240px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border-bottom: 4px solid var(--border); }
.kpi.hi { border-bottom-color: var(--gold); }
.kpi .v { font-size: 34px; font-weight: 700; color: var(--navy); } .kpi .t { color: var(--muted); font-size: 14px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 20px; }
.chart h3 { margin: 0; font-size: 17px; } .chart .note { color: var(--muted); font-size: 12.5px; margin: 2px 0 12px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 92px; gap: 10px; align-items: center; margin: 5px 0; font-size: 13.5px; }
.bar-row .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 16px; background: #F1EEE6; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 16px; background: var(--navy-mid); border-radius: 0 4px 4px 0; }
.bar-row .val { text-align: right; }
.trend { display: flex; align-items: flex-end; gap: 2px; height: 220px; border-bottom: 1px solid var(--border); }
.trend .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.trend .col div { background: var(--navy-mid); border-radius: 4px 4px 0 0; min-height: 0; }
.trend-labels { display: flex; gap: 2px; font-size: 11px; color: var(--muted); } .trend-labels span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.grid th { background: var(--navy); color: #fff; text-align: left; padding: 11px 10px; font-weight: 600; position: sticky; top: 0; }
table.grid td { padding: 10px; border-bottom: 1px solid #EEE8DA; vertical-align: top; }
table.grid tr:nth-child(even) td { background: #FBFAF6; }
table.grid tr.click { cursor: pointer; } table.grid tr.click:hover td { background: #F6EBCB; }
.table-wrap { background: #fff; border-radius: 14px; border: 1px solid #ECE6D8; overflow: auto; max-height: 68vh; }
.pill { display: inline-block; background: #EEF2F8; color: var(--navy); font-weight: 600; font-size: 12.5px; border-radius: 12px; padding: 4px 10px; white-space: nowrap; }
.overdue { color: var(--error); font-weight: 600; }
.msg-ok { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; }
.msg-err { background: var(--error-bg); color: var(--error); border-radius: 10px; padding: 10px 16px; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.qa { display: grid; grid-template-columns: 220px 1fr; gap: 6px 14px; font-size: 14.5px; }
.qa .q { color: var(--muted); } .qa .a { white-space: pre-line; }
.history-item { border-bottom: 1px solid #F0EBDF; padding: 8px 0; font-size: 14px; }
.history-item .when { color: var(--muted); font-size: 12.5px; } .history-item .what { color: var(--navy); font-weight: 600; }
.stack > * + * { margin-top: 12px; }
.copy-box { font-family: Consolas, monospace; background: var(--ivory); border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; word-break: break-all; }
.login-wrap { min-height: 100vh; background: var(--navy-grad); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: #fff; border-radius: 26px; padding: 44px 48px; width: 100%; max-width: 520px; box-shadow: 0 0 50px rgba(0,0,0,.4); }
.login-card img { height: 56px; }
.login-card h1 { margin: 18px 0 4px; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #FEF6E7; padding: 12px 20px; z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
#blazor-error-ui .reload { font-weight: 600; margin-left: 8px; }

@media (max-width: 900px) {
    .sidebar { width: 200px; } .two-col { grid-template-columns: 1fr; } .charts { grid-template-columns: 1fr; }
    .qa { grid-template-columns: 1fr; } .page { padding: 16px; } .page-head { padding: 14px 16px; }
}
@media (max-width: 680px) {
    .staff-shell { flex-direction: column; } .sidebar { width: 100%; height: auto; position: static; }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; } .fh-mid { display: none; } .steps { justify-content: flex-start; }
}

/* ---------- print (enquiry printout & browser "Save as PDF") ---------- */
.print-page { max-width: 900px; margin: 0 auto; padding: 30px; background: #fff; }
.print-page h1 { margin: 10px 0 0; } .print-page h2 { font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-top: 20px; }
.print-page table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.print-page td { padding: 4px 6px; vertical-align: top; } .print-page tr:nth-child(even) td { background: #F4F1EA; }
.print-page td:first-child { color: var(--muted); width: 32%; }
@media print { .no-print { display: none !important; } body { background: #fff; } .print-page { padding: 0; } }

/* ---------- web (Node) additions ---------- */
[hidden] { display: none !important; }
.form-page > .form-body { min-height: 50vh; }
.cards .card .label { line-height: 1.25; }
td a { color: inherit; text-decoration: none; }
s.muted { text-decoration: line-through; }
.trend-labels span { overflow: visible; }
@media (max-width: 680px) {
    .welcome-top { flex-wrap: wrap; gap: 10px; }
    .logo-plate { padding: 10px 14px; max-width: 100%; }
    .logo-plate img { height: auto; max-height: 52px; max-width: 100%; }
    .clock .time { font-size: 24px; }
    .btn-start { padding: 20px 28px; }
    .thanks-card { padding: 32px 22px; }
    .bar-row { grid-template-columns: 110px 1fr 80px; }
}
/* enquiry form header: full logo on a white plate */
.fh-logo { background: #fff; border-radius: 12px; padding: 7px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.25); line-height: 0; }
.fh-logo img { height: 46px; width: auto; display: block; }
@media (max-width: 680px) { .fh-logo img { height: 34px; } }
/* two-line welcome heading */
.hero h1 { line-height: 1.12; }
.hero h1 .hl { display: inline-block; }
.two-col table.grid td:first-child { min-width: 150px; }
.btn-start { white-space: nowrap; }
@media (max-width: 420px) { .btn-start { font-size: 18px; padding: 18px 22px; } .btn-start span { margin-left: 10px; } }

/* ===== v3.1: sidebar sections (Quick Enquiry / Detailed Survey) ===== */
.sidebar nav { overflow-y: auto; }
.nav-group { color: var(--gold-light); opacity: .75; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin: 14px 24px 4px; }
.nav-group:first-child { margin-top: 0; }
.sidebar .nav-item { padding: 10px 22px; }
.form-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; border-radius: 10px; padding: 3px 10px; vertical-align: middle; }
.form-tag.quick { background: #FFF3E0; color: #9A4D00; }
.form-tag.detailed { background: #EEF2F8; color: var(--navy); }
.linked-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F0EBDF; font-size: 14px; }
.linked-item:last-child { border-bottom: 0; }

/* ===== v3.1: two choices on the welcome screen ===== */
.choice-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 5vh; }
.btn-choice { min-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
    font-family: inherit; color: var(--navy-deep); background: var(--gold-grad); border: 1px solid var(--gold-light);
    border-radius: 60px; padding: 22px 46px; animation: pulse 1.6s ease-in-out infinite alternate; transition: transform .08s; }
.btn-choice:active { transform: scale(.97); }
.btn-choice .bc-label { font-weight: 700; font-size: clamp(19px, 2.2vw, 28px); letter-spacing: .5px; white-space: nowrap; }
.btn-choice .bc-arrow { margin-left: 10px; }
.btn-choice .bc-note { font-size: clamp(13px, 1.3vw, 16px); font-weight: 500; opacity: .8; }
.btn-choice.alt { background: rgba(7,20,40,.55); color: #fff; border: 2px solid var(--gold); animation: none; backdrop-filter: blur(3px); }
.btn-choice.alt .bc-note { color: var(--gold-light); opacity: 1; }
@media (max-width: 680px) { .choice-row { gap: 14px; } .btn-choice { min-width: 0; width: 100%; padding: 18px 22px; } }

/* ===== Welcome screen background photo with gentle motion ===== */
.welcome .skyline { display: none; }
.welcome::before {
    content: ""; position: absolute; inset: -4%;
    background: url('/img/background.jpg') center / cover no-repeat;
    animation: bgDrift 30s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes bgDrift {
    0%   { transform: scale(1.00) translate(0, 0); }
    50%  { transform: scale(1.06) translate(-1.2%, -0.8%); }
    100% { transform: scale(1.10) translate(1.2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) { .welcome::before { animation: none; } }
.welcome-overlay { background: linear-gradient(180deg, rgba(7,20,40,.80) 0%, rgba(7,20,40,.55) 35%, rgba(7,20,40,.55) 65%, rgba(7,20,40,.92) 100%); }
.linked-item a, .linked-item b { white-space: nowrap; }

/* ===== v4.0: Digital Leads module ===== */
.form-tag.digital { background: #EAF6EE; color: #1F6B3A; }
.bell { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 14.5px; padding: 8px 10px; margin: 0 -10px 10px; border-radius: 10px; }
.bell:hover, .bell.active { background: rgba(255,255,255,.1); }
.bell-count { background: #E5484D; color: #fff; border-radius: 10px; font-size: 12px; font-weight: 700; padding: 1px 8px; margin-left: auto; }
.reassign-bar { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #ECE6D8; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.reassign-bar[data-empty] { opacity: .55; }
.history-item.unread { background: #FFF9EC; margin: 0 -12px; padding: 8px 12px; border-radius: 8px; }
.upload-result:empty { display: none; }
.upload-result { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.upload-result.err { background: var(--error-bg); color: var(--error); }
.kpi .v.money { font-size: 26px; }
details > summary { cursor: pointer; color: var(--navy-mid); font-weight: 600; }

/* v4.1 – customer quick-contact buttons */
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.btn-choice[hidden] { display: none !important; }

/* ===== v5.0: Design Your Space ===== */
.btn-choice.space { background: var(--navy-grad); color: var(--gold-light); border: 2px solid var(--gold); animation: none; text-decoration: none; }
.btn-choice.space .bc-note { color: #fff; opacity: .85; }
.choice-row { gap: 20px; }
@media (min-width: 900px) { .choice-row .btn-choice { min-width: 0; flex: 1 1 0; max-width: 400px; padding: 20px 26px; } .choice-row { flex-wrap: nowrap; } }
.sp-kicker { font-size: 12px; letter-spacing: 1.5px; color: var(--gold-light); font-weight: 700; }
.sp .fh-mid { text-align: center; }
.sp-choose { min-height: 100vh; display: flex; flex-direction: column; background: var(--ivory); }
.sp-choose-body { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 24px; display: flex; flex-direction: column; gap: 22px; }
.sp-head h2 { margin: 0; font-size: 28px; } .sp-head p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.sp-head.center { text-align: center; } .sp-head { margin-bottom: 16px; }
.sp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-tier { background: #fff; border: 2px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
    text-align: left; font-family: inherit; color: var(--text); cursor: pointer; transition: transform .08s; }
.sp-tier:active { transform: scale(.98); }
.sp-tier.gold { border-color: var(--gold); }
.sp-tier-sk { background: var(--ivory); border: 1px solid #ECE6D8; border-radius: 12px; display: flex; justify-content: center; padding: 6px 0 2px; }
.sp-tier-sk svg { width: 230px; height: 170px; }
.sp-tier-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--gold-dark); }
.sp-tier-name { font-family: var(--serif); font-size: 26px; color: var(--navy); line-height: 1.1; }
.sp-tier-pt { font-size: 15px; display: flex; gap: 8px; } .sp-tier-pt b { color: var(--gold); }
.sp-tier-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 28px; font-weight: 700; font-size: 16px; background: var(--navy-grad); color: #fff; }
.sp-tier.gold .sp-tier-cta { background: var(--gold-grad); color: var(--navy-deep); }
.sp-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px 24px 30px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.sp-main.no-aside { grid-template-columns: minmax(0, 1fr); }
.sp-aside { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; position: sticky; top: 14px; }
.sp-aside.static { position: static; }
.sk-title { font-family: var(--serif); font-size: 19px; color: var(--navy); text-align: center; }
.sk-svg { width: 100%; height: auto; display: block; background: var(--ivory); border-radius: 12px; margin: 6px 0; }
.sk-note { font-size: 12.5px; color: var(--gold-dark); text-align: center; font-weight: 600; }
.sk-sum { margin-top: 10px; border-top: 1px solid #F0EBDF; }
.sk-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F5F1E6; font-size: 13.5px; }
.sk-sum span { color: var(--muted); } .sk-sum b { text-align: right; }
.sp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; }
.sp .question { margin-bottom: 20px; }
.sp .q-title { font-size: 17px; margin-bottom: 8px; }
.sp .q-title .num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold-light); align-items: center; justify-content: center; font-size: 13px; margin-right: 8px; vertical-align: 1px; }
.sp .q-hint { font-size: 13px; color: var(--gold-dark); font-weight: 500; }
.sp .chips { gap: 9px; }
.sp .chip { min-height: 48px; padding: 6px 18px; font-size: 15.5px; }
.chip .plus { color: var(--muted); }
.q-missing .q-title { color: var(--error); }
.sp-tabs { display: grid; gap: 12px; margin-bottom: 14px; }
.sp-tab { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 8px 14px; border-radius: 16px; cursor: pointer; font-family: inherit; text-align: left;
    border: 2px solid var(--border); background: #fff; color: var(--text); }
.sp-tab span { display: flex; flex-direction: column; gap: 1px; } .sp-tab b { font-size: 16px; line-height: 1.2; } .sp-tab small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sp-tab.on { border-color: var(--gold); background: var(--navy-grad); color: #fff; box-shadow: 0 6px 18px rgba(11,31,58,.25); } .sp-tab.on small, .sp-tab.on svg { color: var(--gold-light); }
.sp-panel { padding: 16px 20px; } .sp-panel-h { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.sp-panel-h .num, .sp-sec-h .num, .sp-project-h .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-light); align-items: center; justify-content: center;
    font-family: "Segoe UI", system-ui, sans-serif; font-size: 14px; font-weight: 600; margin-right: 10px; vertical-align: 3px; }
.sp-sublabel { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 8px; }
.sp-arrows { display: flex; margin-bottom: 10px; }
.sp-arrows.small { margin-bottom: 14px; }
.sp-arrow { flex: 1 1 0; min-width: 0; min-height: 54px; margin-left: -10px; padding: 6px 24px 6px 28px; border: 0; cursor: pointer; font-family: inherit; text-align: left;
    display: flex; flex-direction: column; justify-content: center; background: #EEF2F7; color: var(--navy);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.sp-arrow.first { margin-left: 0; padding-left: 16px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.sp-arrow.big { min-height: 62px; background: #E3E9F1; }
.sp-arrow b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-arrow small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sp-arrow.done { background: var(--gold-light); }
.sp-arrow.on { background: var(--navy-grad); color: #fff; } .sp-arrow.on small { color: var(--gold-light); }
.sp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.sp-grid3.tall { align-items: stretch; }
.sp label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sp label .input { margin: 0; }
.sp .inline-check, .sp .sp-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); font-size: 14px; }
.sp .inline-check input, .sp .sp-consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }
.sp-sec { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.sp-sec .question { margin-bottom: 4px; } .sp-sec .chip { min-height: 44px; padding: 4px 12px; font-size: 14px; }
.sp-sec-h { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.sp-consent { border: 2px solid var(--gold); border-radius: 12px; padding: 8px 10px; margin-top: auto; }
.sp-project { display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--gold); margin-bottom: 14px; }
.sp-project-h { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--navy); }
.sp-project-foot { display: flex; gap: 14px; align-items: stretch; }
.sp-add { flex: 1; min-height: 60px; border: 2px dashed var(--border); border-radius: 16px; background: transparent; color: var(--navy); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.sp-why { flex: 1.4; background: #EEF2F8; border-radius: 16px; padding: 10px 16px; font-size: 14px; line-height: 1.45; color: var(--navy-mid); }
.sp-match-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-match { position: relative; display: flex; flex-direction: column; gap: 6px; border: 2px solid transparent; }
.sp-match.on { border-color: var(--gold); }
.sp-match-img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; background: var(--ivory); }
.sp-match-img.sk { display: flex; align-items: center; justify-content: center; } .sp-match-img.sk svg { height: 160px; width: auto; }
.sp-badge { position: absolute; top: 26px; left: 26px; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; border-radius: 14px; padding: 4px 12px; }
.sp-badge.gold { background: var(--gold); color: var(--navy-deep); }
.sp-match-name { font-family: var(--serif); font-size: 21px; color: var(--navy); }
.sp-match-unit { font-weight: 600; } .sp-match-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sp-why-chips { display: flex; flex-wrap: wrap; gap: 6px; } .sp-why-chips span { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.sp-match .btn { margin-top: auto; }
.sp-qr { display: flex; gap: 16px; align-items: center; text-align: left; background: #fff; border-radius: 14px; padding: 10px 16px; margin: 6px auto 12px; max-width: 460px; color: var(--text); }
.sp-queue { align-self: center; font-size: 13px; color: var(--gold-dark); font-weight: 600; margin-right: 8px; }
.sp-mine .form-body { max-width: 1100px; }
.sp-mine-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sp-mine-grid .card { margin-bottom: 14px; }
.sp-mine-share { display: flex; gap: 18px; align-items: center; }
.sp-one .question { max-width: 900px; }
@media (max-width: 980px) {
  .sp-main, .sp-mine-grid { grid-template-columns: minmax(0, 1fr); } .sp-aside { position: static; order: -1; }
  .sp-tiers, .sp-match-list, .sp-grid3, .sp-cols { grid-template-columns: minmax(0, 1fr); }
  .sp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .sp-arrows { flex-wrap: wrap; row-gap: 6px; } .sp-arrow { flex: 1 1 40%; }
  .sp-project-foot, .sp-mine-share { flex-direction: column; }
}
.form-tag.space { background: var(--navy); color: var(--gold-light); }
/* v5.0 user area: form setup, funnel */
.fs-h { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 10px; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 14px; margin: 12px 0 6px; }
.fs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.fs-grid label, .fs-grid2 label, .fs-opts, .fs-tier label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.fs-grid .input, .fs-grid2 .input, .fs-opts .input, .fs-tier .input { margin: 0; }
.fs-sub { font-weight: 700; color: var(--navy); margin: 16px 0 8px; border-top: 1px solid #F0EBDF; padding-top: 12px; }
.fs-field { border: 1px solid #ECE6D8; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #FDFCF9; }
.fs-field.off { opacity: .6; }
.fs-field-top { display: flex; align-items: center; gap: 8px; }
.fs-tools { margin-left: auto; display: flex; gap: 6px; } .fs-tools .btn { min-height: 34px; padding: 0 12px; }
.fs-checks { display: flex; gap: 18px; margin-top: 6px; } .fs-chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.fs-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.fs-tier { display: flex; flex-direction: column; gap: 6px; border: 1px solid #ECE6D8; border-radius: 12px; padding: 10px; }
.fs-savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #ECE6D8; padding: 10px 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; z-index: 5; }
.fn { display: flex; flex-direction: column; gap: 10px; }
.fn-stage { position: relative; height: 44px; background: #F3EFE4; border-radius: 10px; overflow: hidden; }
.fn-bar { position: absolute; inset: 0 auto 0 0; background: var(--navy-grad); border-radius: 10px; }
.fn-stage.hi .fn-bar { background: var(--gold-grad); }
.fn-txt { position: relative; z-index: 1; line-height: 44px; padding: 0 14px; color: #fff; font-size: 15px; mix-blend-mode: normal; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.fn-stage.hi .fn-txt { color: var(--navy-deep); text-shadow: none; }
.fn-txt .muted { color: inherit; opacity: .8; }
@media (max-width: 900px) { .fs-tiers, .fs-grid2 { grid-template-columns: 1fr; } }
.sp-sec .q-title { font-size: 14.5px; margin-bottom: 6px; }
#sp-thanks .thanks-card { padding-top: 22px; padding-bottom: 18px; max-height: 96vh; overflow-y: auto; }
#sp-thanks .thanks-logo { max-height: 56px; }
#sp-thanks .check-circle { width: 54px; height: 54px; font-size: 24px; margin: 8px auto; }
#sp-thanks h1 { margin: 6px 0; }
#sp-thanks .code-box { padding: 8px 24px; margin: 10px auto; } #sp-thanks .code { font-size: 32px; }
.sp-qr img { width: 130px; height: 130px; }
#sp-thanks .thanks-card { margin: 2vh auto; padding-left: 40px; padding-right: 40px; }
/* v5.0 chatbot */
.chat-fab { position: fixed; right: 22px; bottom: 96px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy-grad);
    box-shadow: 0 8px 24px rgba(7,20,40,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.staff-shell ~ .chat-fab, .staff-shell + .chat-fab { bottom: 22px; }
.chat-fab .chat-ai { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 800; border-radius: 10px; padding: 1px 6px; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 61; width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100vh - 40px)); background: #fff; border-radius: 18px;
    box-shadow: 0 16px 48px rgba(7,20,40,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ECE6D8; }
.chat-head { background: var(--navy-grad); color: #fff; display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.chat-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.chat-sub { font-size: 12px; color: var(--gold-light); }
.chat-x { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; width: 40px; height: 40px; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--ivory); }
.chat-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-line; }
.chat-msg.bot { background: #fff; border: 1px solid #ECE6D8; align-self: flex-start; }
.chat-msg.me { background: var(--navy); color: #fff; align-self: flex-end; }
.chat-msg.wait { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #ECE6D8; }
.chat-input { flex: 1; min-height: 46px; border: 2px solid var(--border); border-radius: 23px; padding: 0 16px; font-size: 16px; font-family: inherit; }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold-grad); color: var(--navy-deep); font-size: 18px; cursor: pointer; }
.chat-note { font-size: 11.5px; color: var(--muted); text-align: center; padding: 0 10px 8px; }
.chat-fab[hidden], .chat-panel[hidden] { display: none !important; }
.sp-tab.done { border-color: var(--gold); background: #FBF4E2; }
/* v5.1 hub tabs, sidebar scroll */
.hub-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #ECE6D8; margin: -4px 0 18px; }
.hub-tab { padding: 10px 18px; border-radius: 12px 12px 0 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.hub-tab:hover { color: var(--navy); }
.hub-tab.on { color: var(--navy); background: #fff; border-color: #ECE6D8; border-bottom: 2px solid #fff; }
.sidebar nav { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.sidebar .nav-item, .sidebar .nav-group { flex-shrink: 0; }
#stage-thanks .thanks-card { margin: 3vh auto; max-height: 94vh; overflow-y: auto; padding-top: 28px; padding-bottom: 22px; }
/* v5.1 theme: uploaded kiosk background (picture or video) */
.welcome.has-media::before { display: none; }
.welcome-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-media.img { inset: -4%; width: auto; height: auto; background: center / cover no-repeat; animation: bgDrift 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .welcome-media.img { animation: none; } }
.theme-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 8px; vertical-align: middle; border: 1px solid #ddd; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media-tile { border: 1px solid #ECE6D8; border-radius: 12px; overflow: hidden; background: #fff; }
.media-tile .prev { height: 120px; background: var(--navy-deep) center / cover no-repeat; display: block; width: 100%; object-fit: cover; }
.media-tile .meta { padding: 8px 10px; font-size: 12.5px; }
.upload-bar { height: 8px; border-radius: 4px; background: #EEE8DA; overflow: hidden; } .upload-bar div { height: 8px; background: var(--gold); width: 0; transition: width .2s; }
#stage-thanks .check-circle { width: 58px; height: 58px; font-size: 28px; margin-top: 10px; }
#stage-thanks .thanks-card h1 { font-size: clamp(22px, 3.2vw, 38px); margin-top: 12px; }
#stage-thanks .code-box { padding: 10px 30px; margin: 14px 0 8px; } #stage-thanks .code { font-size: clamp(28px, 3.6vw, 44px); }
#stage-thanks .thanks-logo { height: 52px; }
#stage-thanks .sp-qr { margin: 8px auto; } #stage-thanks .sp-qr img { width: 110px; height: 110px; }
