/* ── Triple Twist careers / artist application ───────────────────────
   Brand palette reused from the booking site:
     #3c2415 primary brown, #5a3a1f hover, #8a6648 mid, #f2e7d6 header sand,
     #d8cdb7 borders, #fffdf9 field bg, #c0261f error red.
   ------------------------------------------------------------------- */

/* Self-hosted Jost (variable) — the same sans-serif the rest of the site uses.
   Scoped to the careers pages; replaces the old Adobe Typekit "origins" header
   font that the booking base template still loads for other pages. */
@font-face {
    font-family: "Jost";
    src: url("../fonts/jost-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.tt-careers {
    /* Clear the 72px fixed site header (60px on mobile). */
    padding: 96px 1.1rem 4rem;
    background: #fbf6ec;
    min-height: 60vh;
    font-family: "Jost", system-ui, sans-serif;
}
/* Headings use Jost (overrides the inherited "origins" serif from site.css). */
.tt-careers h1,
.tt-careers h2 {
    font-family: "Jost", system-ui, sans-serif;
}
.tt-careers-head h1,
.tt-careers-thanks h1 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3c2415;
}
@media (max-width: 650px) {
    .tt-careers { padding-top: 80px; }
}

.tt-careers-wrap {
    /* Narrow, centered column matching the marketing Contact form (~505px),
       so the card reads as one cohesive centered form rather than a wide,
       left-weighted panel. The white card (.tt-careers-form) is itself
       capped + centered below, so it can never grow wider than the fields. */
    max-width: 560px;
    margin: 0 auto;
}

.tt-careers-head {
    text-align: center;
    margin: 0 0 2em;
}
.tt-careers-head h1 {
    color: #3c2415;
}
.tt-careers-lead {
    color: #5a3a1f;
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 56ch;
    margin: 0.6em auto 0;
}

/* ── Form shell (the white card) ── */
/* Explicitly capped and centered so the card hugs the fields — no wide card
   with a blank right side, regardless of any ancestor width. */
.tt-careers-form {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid #e7ddc9;
    border-radius: 14px;
    padding: 1.6em 1.5em;
    box-shadow: 0 18px 40px -28px rgba(60, 36, 21, 0.45);
}
@media (max-width: 480px) {
    .tt-careers-form { padding: 1.2em 1em; }
}

.tt-careers-section {
    margin: 0 0 1.6em;
    padding: 0 0 1.4em;
    border-bottom: 1px solid #f0e9da;
}
.tt-careers-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.6em;
    padding-bottom: 0;
}
.tt-careers-section h2 {
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a6648;
    margin: 0 0 1em;
}
.tt-careers-optional {
    font-weight: 500;
    color: #b09980;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* Single-column stack (like the Contact form) so every field fills the card
   width and there is no blank right-hand side. */
.tt-careers-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.1em;
    align-items: start;
    /* Match the rhythm: a field placed after the grid (e.g. "Areas you can
       work") sits the same distance below as fields are spaced from each other. */
    margin-bottom: 1.1em;
}
@media (max-width: 560px) {
    .tt-careers-grid {
        row-gap: 0.9em;
    }
}

.tt-careers-field {
    margin: 0 0 1.1em;
    min-width: 0;
}
/* Inside the two-column grid, row-gap handles vertical rhythm. */
.tt-careers-grid .tt-careers-field {
    margin: 0;
}
.tt-careers-field label {
    display: block;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 0.85rem;
    color: #56483f;
    font-weight: 500;
    margin: 0 0 0.35em;
}

.tt-careers-form input[type="text"],
.tt-careers-form input[type="email"],
.tt-careers-form input[type="tel"],
.tt-careers-form input[type="url"],
.tt-careers-form select,
.tt-careers-form textarea {
    -webkit-appearance: none;
    appearance: none;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 1rem;
    color: #2d231b;
    background-color: #fffdf9;
    border: 1px solid #d8cdb7;
    border-radius: 8px;
    padding: 0.7em 0.8em;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    line-height: 1.35;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
/* Every field wrapper fills the card so inputs align with the full-width
   submit button (no narrow inputs / blank right side). */
.tt-careers-field,
.tt-careers-grid > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.tt-careers-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238a6648' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 0.7em;
    padding-right: 2.2em;
}
.tt-careers-form textarea {
    resize: vertical;
    min-height: 4.5em;
    line-height: 1.5;
}
.tt-careers-form input:focus,
.tt-careers-form select:focus,
.tt-careers-form textarea:focus {
    outline: none;
    border-color: #8a6648;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(138, 102, 72, 0.15);
}

.tt-careers-hint {
    margin: 0.6em 0 0;
    font-size: 0.85rem;
    color: #8a6648;
}
.tt-careers-guidance {
    margin: 0.5em 0 1em;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9a8978;
}

/* ── Checkboxes ── */
.tt-careers-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em 1.4em;
    margin-top: 1em;
}
.tt-careers-check {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 0.92rem;
    color: #4a3a2c;
    cursor: pointer;
}
.tt-careers-check input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    accent-color: #73482e;
    cursor: pointer;
}

/* ── Services checklist (CheckboxSelectMultiple) ── */
.tt-careers-skills ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;   /* single column — matches the rest of the form, no empty right cell */
    row-gap: 0.55em;
}
.tt-careers-skills li {
    margin: 0;
}
.tt-careers-skills label {
    display: flex;
    align-items: center;
    gap: 0.55em;
    font-size: 0.92rem;
    color: #4a3a2c;
    cursor: pointer;
    line-height: 1.3;
}
.tt-careers-skills input[type="checkbox"] {
    width: 1.05em;
    height: 1.05em;
    accent-color: #73482e;
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Errors (clear but soft — muted brick on warm cream, no loud ring) ── */
.tt-careers-errors {
    background: #fbf2ef;
    border: 1px solid #ecd6cf;
    border-left: 3px solid #c08576;
    color: #8a4a3d;
    padding: 0.7em 0.9em;
    border-radius: 6px;
    margin: 0 0 1.2em;
    font-size: 0.9rem;
    font-weight: 600;
}
.tt-careers-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.35em 0 0;
    color: #a85a4c;
    font-size: 0.83rem;
    font-weight: 500;
}
.tt-careers-field:has(.errorlist) input,
.tt-careers-field:has(.errorlist) select,
.tt-careers-field:has(.errorlist) textarea {
    border-color: #c79586;
    background-color: #fdf7f5;
}
.tt-careers-field:has(.errorlist) input:focus,
.tt-careers-field:has(.errorlist) select:focus,
.tt-careers-field:has(.errorlist) textarea:focus {
    border-color: #b07a6a;
    box-shadow: 0 0 0 3px rgba(176, 122, 106, 0.18);
}
.tt-careers-field:has(.errorlist) label {
    color: #a85a4c;
}

/* ── Turnstile widget ── */
.tt-careers-turnstile-row {
    width: 100%;
    margin: 1.5rem 0 1rem;
    padding: 0;
    min-height: 80px;   /* reserve space so the widget area is always visible */
}
.tt-careers-turnstile-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #56483f;
}

/* ── Field width hardening: every wrapper fills the card so inputs line up
      with the full-width submit button (no narrow inputs / blank right). ── */
.tt-careers .tt-careers-field,
.tt-careers .tt-careers-field > *,
.tt-careers .tt-careers-grid,
.tt-careers .tt-careers-grid > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
/* The card itself stays capped/centered at the form width. */
.tt-careers .tt-careers-form {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.tt-careers .tt-careers-form input[type="text"],
.tt-careers .tt-careers-form input[type="email"],
.tt-careers .tt-careers-form input[type="tel"],
.tt-careers .tt-careers-form input[type="url"],
.tt-careers .tt-careers-form select,
.tt-careers .tt-careers-form textarea {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* ── Submit ── */
.tt-careers-submit {
    display: block;
    width: 100%;
    /* border-box so the button's padding/border don't push it WIDER than the
       border-box inputs — otherwise the button overflows to the card edge while
       the fields sit inset, which reads as blank space to the right of fields. */
    box-sizing: border-box;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbf6ec;
    background: #3c2415;
    border: 1px solid #3c2415;
    border-radius: 9px;
    padding: 1em 1.4em;
    margin-top: 1.4em;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}
.tt-careers-submit:hover { background: #5a3a1f; border-color: #5a3a1f; }
.tt-careers-submit:active { transform: translateY(1px); }
.tt-careers-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 102, 72, 0.35);
}
.tt-careers-note {
    text-align: center;
    color: #9a8978;
    font-size: 0.85rem;
    margin: 0.9em 0 0;
}

/* ── Honeypot: keep it in the DOM but away from humans and AT ── */
.tt-careers-hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Thank-you ── */
.tt-careers-thanks {
    text-align: center;
    max-width: 600px;
}
.tt-careers-thanks h1 { color: #3c2415; }
.tt-careers-back {
    display: inline-block;
    margin-top: 1.6em;
    color: #8a6648;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tt-careers-back:hover { color: #5a3a1f; }
