/* Detailed trip questionnaire. Light reading surface, live brand tokens. */
.q-wrap { background: var(--md-ivory); color: var(--md-charcoal); min-height: 70vh; }
.q-head { background: var(--so-ink); color: var(--md-cream); border-bottom: 1px solid var(--so-line-dark); }
.q-head .container { padding-block: 26px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.q-brand { display: flex; align-items: center; gap: 14px; }
.q-brand svg { width: 46px; height: 13px; color: var(--so-copper); }
.q-brand-text { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--so-text-dim); }
.q-head h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: #F7F1EA; }
.q-head p { font-size: 15px; color: var(--so-text-dim); max-width: 60ch; margin-top: 6px; }

.q-body { padding-block: 34px 70px; }
.q-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .q-layout { grid-template-columns: 1fr; gap: 20px; } }

/* Progress */
.q-progress { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); }
.q-meter { height: 4px; background: var(--so-line-light); margin-bottom: 14px; }
.q-meter span { display: block; height: 100%; background: #946F48; width: 0; transition: width .3s ease; }
.q-count { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--so-text-muted); margin-bottom: 10px; }
.q-steps { display: grid; gap: 2px; }
.q-steps button { width: 100%; text-align: left; font: 500 14px/1.3 var(--font-sans); color: var(--so-text-muted); background: transparent; border: 0; border-left: 2px solid transparent; padding: 8px 12px; cursor: pointer; }
.q-steps button:hover { color: var(--md-charcoal); }
.q-steps button[aria-current="step"] { color: var(--md-charcoal); border-left-color: #946F48; background: var(--md-cream); font-weight: 600; }
.q-steps button.is-done::after { content: " \2713"; color: #946F48; }
.q-steps .q-mod { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #946F48; margin-left: 6px; }
@media (max-width: 900px) {
  .q-progress { position: static; }
  .q-steps { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .q-steps button { flex: none; width: auto; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .q-steps button[aria-current="step"] { border-bottom-color: #946F48; }
}

/* Section */
.q-section h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; text-wrap: balance; }
.q-section .q-intro { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--so-text-muted); max-width: 62ch; }
.q-fields { display: grid; gap: 26px; margin-top: 28px; }
.q-note { font-size: 14px; line-height: 1.55; color: #2A2724; background: var(--md-cream); border-left: 2px solid #946F48; padding: 12px 14px; max-width: 70ch; }

.q-field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.q-field > legend, .q-label { padding: 0; font-size: 15.5px; font-weight: 600; color: var(--md-charcoal); line-height: 1.4; }
.q-opt { font-weight: 400; font-size: 13px; color: var(--so-text-muted); margin-left: 6px; }
.q-req { color: #946F48; margin-left: 4px; }
.q-hint { font-size: 13.5px; line-height: 1.5; color: var(--so-text-muted); max-width: 66ch; }
.q-field input[type="text"], .q-field input[type="email"], .q-field input[type="number"], .q-field select, .q-field textarea {
  width: 100%; max-width: 560px; font: 400 15px/1.4 var(--font-sans); color: var(--md-charcoal); background: #fff; border: 1px solid #CDBFAF; padding: 11px 12px; border-radius: 0; }
.q-field textarea { min-height: 84px; resize: vertical; }
.q-field input[type="number"] { max-width: 140px; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { outline: 2px solid #946F48; outline-offset: 1px; border-color: #946F48; }
.q-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.q-row > label { display: grid; gap: 6px; font-size: 13.5px; color: var(--so-text-muted); }
.q-row select { max-width: 120px; }

/* Choice chips */
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip { position: relative; display: inline-flex; }
.q-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-chip span { display: inline-block; font-size: 14px; line-height: 1.3; padding: 9px 13px; border: 1px solid #CDBFAF; background: #fff; color: #2A2724; cursor: pointer; }
.q-chip input:checked + span { background: var(--md-charcoal); border-color: var(--md-charcoal); color: var(--md-cream); }
.q-chip input:focus-visible + span { outline: 2px solid #946F48; outline-offset: 2px; }
.q-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.q-chip span:hover { border-color: #946F48; }
.q-radio-list .q-chip span { min-width: 0; }

/* Acknowledgment checkbox */
.q-ack { display: flex; gap: 12px; align-items: flex-start; max-width: 640px; padding: 14px 16px; border: 1px solid #CDBFAF; background: #fff; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: #2A2724; }
.q-ack:hover { border-color: #946F48; }
.q-ack input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--md-charcoal); cursor: pointer; }
.q-ack input:focus-visible { outline: 2px solid #946F48; outline-offset: 2px; }
.q-field.is-invalid .q-ack { border-color: #8A3B1E; }

/* Segmented rows (save / midrange / splurge) */
.q-seg { display: grid; gap: 10px; max-width: 640px; }
.q-seg fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.q-seg legend { float: left; font-size: 14px; color: #2A2724; padding: 0; }
.q-seg .q-chips { gap: 4px; }
.q-seg .q-chip span { padding: 7px 10px; font-size: 13px; }
@media (max-width: 560px) { .q-seg fieldset { grid-template-columns: 1fr; } }

.q-error { font-size: 13.5px; color: #8A3B1E; font-weight: 600; }
.q-field.is-invalid input, .q-field.is-invalid select, .q-field.is-invalid textarea, .q-field.is-invalid .q-chip span { border-color: #8A3B1E; }

/* Nav */
.q-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--so-line-light); }
.q-nav .btn { cursor: pointer; }
.q-btn-back { background: transparent; color: var(--md-charcoal); border: 1px solid var(--md-charcoal); }
.q-btn-back:hover { background: var(--md-charcoal); color: var(--md-cream); }

/* Review */
.q-review { display: grid; gap: 22px; margin-top: 26px; }
.q-review section { border-top: 1px solid var(--so-line-light); padding-top: 14px; }
.q-review h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 500; }
.q-review dl { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 6px 18px; margin: 10px 0 0; font-size: 14.5px; }
.q-review dt { color: var(--so-text-muted); }
.q-review dd { margin: 0; color: #2A2724; overflow-wrap: anywhere; }
.q-review .q-empty { color: var(--so-text-muted); font-style: italic; }
@media (max-width: 600px) { .q-review dl { grid-template-columns: 1fr; } .q-review dd { margin-bottom: 8px; } }
.q-done { text-align: left; max-width: 640px; }
.q-done h2 { font-family: var(--font-serif); font-size: 40px; font-weight: 500; }
.q-done p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #2A2724; }
[hidden] { display: none !important; }
.q-layout > * { min-width: 0; }
.q-steps { list-style: none; margin: 0; padding: 0; }

.q-status { margin-top: 14px; font-size: 15px; line-height: 1.5; min-height: 1px; }
.q-status.is-error { color: #9B2C1F; }
.q-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
