.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; padding: 32px 0 96px; }
@media (max-width: 960px) { .q-layout { grid-template-columns: 1fr; } }

.stop { border: 0; margin: 0 0 48px; padding: 0; }
.stop-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.stop-head .marker { margin: 0; width: 46px; height: 62px; font-size: 1.4rem; }
.stop-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; text-transform: uppercase; }

.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.hint { color: var(--muted); font-size: 0.98rem; margin-bottom: 8px; max-width: 65ch; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: 10px; padding: 13px 14px 11px;
  transition: border-color 160ms ease-out;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fb5ab; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 6rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%230b5d3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input[type="date"] { min-height: 52px; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; width: 20px; height: 20px; opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5' fill='none' stroke='%230b5d3f' stroke-width='2.2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4' stroke='%230b5d3f' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #5b6f66; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-weight: 700; font-size: 0.98rem; margin-top: 6px; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span { display: inline-block; border: 2px solid var(--line); border-radius: 10px; padding: 9px 14px 7px; font-weight: 600; cursor: pointer; transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.radio span:hover { border-color: var(--green); }
.radio input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); font-weight: 800; }
.radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.drop { position: relative; display: inline-block; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-label { display: inline-flex; align-items: center; gap: 10px; border: 2px dashed var(--green); color: var(--green-deep); border-radius: 12px; padding: 14px 20px 12px; font-weight: 800; background: var(--green-tint); }
.drop-label svg { width: 22px; height: 22px; }
.drop:hover .drop-label { background: #d9e9e1; }
.drop input:focus-visible + .drop-label { outline: 3px solid var(--blue); outline-offset: 2px; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs li { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .fname { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 0.75rem; text-align: center; word-break: break-all; color: var(--muted); }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.thumbs button svg { width: 14px; height: 14px; }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.q-submit { width: 100%; margin-top: 8px; padding: 18px 22px 15px; font-size: 1.2rem; }
.q-submit[aria-busy="true"]::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.q-errors { border: 2px solid var(--error); background: #fbeeed; border-radius: 12px; padding: 16px 18px 14px; margin-bottom: 28px; }
.q-errors b { display: block; color: var(--error); margin-bottom: 6px; }
.q-errors ul { margin: 0; padding-left: 20px; }
.q-errors a { color: var(--error); }

.q-summary { position: sticky; top: 24px; padding: 34px 32px 30px; }
.q-summary h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.q-summary dl { margin: 0; }
.q-summary dl > div { display: grid; grid-template-columns: 5.2rem 1fr; gap: 10px; padding: 10px 0 8px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.q-summary dt { font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; padding-top: 2px; color: #cfe4da; }
.q-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sum-note { margin-top: 16px; font-size: 0.95rem; color: #d5e8df; }
@media (max-width: 960px) { .q-summary { position: static; order: -1; } }

.q-done { padding: 24px 0 96px; outline: none; }
.q-done .sign { max-width: 760px; }
.q-done h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
.done-ref { margin-top: 10px; font-size: 1.2rem; }
.done-ref strong { letter-spacing: 0.06em; }
.stations { list-style: none; margin: 28px 0 0; padding: 0; }
.stations li { position: relative; padding: 12px 0 12px 44px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.stations li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.stations li.done::before { background: var(--white); box-shadow: none; }
.stations li.next::before { box-shadow: inset 0 0 0 3px var(--white); }
.stations b { display: block; font-size: 1.15rem; }
.stations span { color: #d5e8df; }
.stations li:not(.done):not(.next) { opacity: 0.75; }
.done-help { margin-top: 22px; }
.done-help a { color: var(--white); }
