/* TakeHome Tickets — /setup. Builds on site.css: same tokens, same fragments. */

.s-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--margin); }
.s-back { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

.s-intro { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.s-intro h1 { grid-column: 1 / span 6; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.s-intro p { grid-column: 8 / span 5; }

/* the form: sections on the left, the live preview pinned on the right */
.s-form { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; padding-bottom: clamp(4rem, 8vw, 7rem); }
.s-sec { grid-column: 1 / span 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gutter); padding: 2.25rem 0; }
.s-head .small { margin-top: 0.5rem; max-width: 30ch; }
.s-preview { grid-column: 9 / span 4; grid-row: 1 / span 9; align-self: stretch; }
.s-sticky { position: sticky; top: 24px; padding-top: 2.25rem; }
.s-sticky .call-lines { padding-bottom: 14px; }
.s-price { margin-top: 14px; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; align-content: start; }
.fields .full { grid-column: 1 / -1; }

/* one field */
.f { display: grid; gap: 7px; align-content: start; font-family: var(--font-display); font-size: 14px; font-weight: 600; min-width: 0; }
.f em { font-style: normal; font-weight: 400; color: var(--muted); }
.f small { font-weight: 400; color: var(--muted); font-size: 13px; }
.f input:not([type="radio"]):not([type="checkbox"]), .f select, .f textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9b9b1; border-radius: 6px; background: #f4f4f1; font-family: var(--font-display); font-size: 16px; font-weight: 400; transition: border-color var(--t-hover) ease; }
.f textarea { resize: vertical; line-height: 1.45; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid #8a800f; outline-offset: 1px; }
.f input::placeholder, .f textarea::placeholder { color: #8f8e86; }
.f [aria-invalid="true"] { border-color: #a3341f; }

/* choice lists */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.choices { display: grid; gap: 4px; }
.choices.cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.choices.cols legend { grid-column: 1 / -1; }
.choices label, .check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-family: var(--font-display); font-size: 15px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.choices input, .check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #8a800f; }
.choices.invalid legend, .check.invalid { color: #a3341f; }

/* voice picker */
.voices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.voices label { position: relative; display: grid; gap: 2px; padding: 16px 16px 16px 44px; border-radius: 8px; background: var(--surface); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.voices input { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; margin: 0; accent-color: #bfb21a; }
.voices b { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.voices span { font-family: var(--font-display); font-size: 14px; font-weight: 400; color: #4b4a44; }
.voices label:has(input:checked) { background: var(--ink); color: var(--bg); }
.voices label:has(input:checked) span { color: var(--field-1-muted); }
@media (hover: hover) and (pointer: fine) { .voices label:not(:has(input:checked)):hover { background: var(--tone-2); } }

.fee-more { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 12px 16px; align-items: end; }
.fee-more[hidden] { display: none; }
.fee-more .small { grid-column: 1 / -1; }
.money { position: relative; display: block; }
.money i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 400; color: var(--muted); }
.fee-more .money input:not([type="radio"]) { padding-left: 26px; }

/* preview facts */
.s-facts { margin: 0; padding: 4px 16px 14px; display: grid; gap: 6px; }
.s-facts div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; }
.s-facts dt { color: #6b6a63; }
.s-facts dd { margin: 0; overflow-wrap: anywhere; }

.s-send .check { font-size: 15px; }
.s-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { min-height: 1.4em; }
.s-send .form-msg:not(:empty) { color: #a3341f; }

/* sent */
.s-done { padding-block: clamp(2rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); max-width: 44rem; }
.s-done:focus { outline: none; }
.s-done .lead { margin-top: 1rem; }
.s-next { margin: 2rem 0; padding-left: 1.3em; display: grid; gap: 14px; font-size: var(--step-body); }
.s-next b { font-family: var(--font-display); font-weight: 600; }
.s-next li::marker { font-family: var(--font-display); font-weight: 700; }

@media (max-width: 1100px) {
  .s-sec { grid-column: 1 / span 7; grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .s-head .small { max-width: 52ch; }
  .s-preview { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  .s-intro { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .s-intro h1, .s-intro p { grid-column: 1 / -1; }
  .s-form { grid-template-columns: minmax(0, 1fr); }
  .s-sec, .s-preview { grid-column: 1 / -1; grid-row: auto; }
  .s-sticky { position: static; max-width: 30rem; }
}
@media (max-width: 600px) {
  .fields, .choices.cols, .voices, .fee-more { grid-template-columns: minmax(0, 1fr); }
  .s-sec { padding: 1.75rem 0; }
  .s-top { padding: 20px; }
}
