/* Contact as the sign-in screen (captain 2026-11-07, after tora-ui-council round 13 variant B, "Tora identity":
   "I like the way the contact us looks now ... giving it the Tora identity there much better"). The Nova Glow is the
   same top light as Careers and About (only the phone layout was ever the question), the title centred in its foot;
   the form sits on one raised sheet, subject first as chips. The form sends exactly what it always has: the chips set the
   select underneath (contact.html). Loaded last on contact.html. The application form (?apply=, html.is-apply)
   keeps its own layout. */

/* the light takes the place of the contour field: no lines, no grid, no cursor light */
.c-hero .co-hero-copy{position:relative;z-index:2}

/* ---- inputs: capsules (the design system: text inputs are pills); the message box, which grows, is the note,
   16 corners (design system specs, Inputs); one step darker than the sheet, no outline until focused ---- */
#contactForm .field input:not([type=file]):not([type=checkbox]):not([type=radio]),#contactForm .field textarea{
  width:100%;background:#141414!important;border:0!important;outline:0;
  /* the ring is always there, clear, so it eases in rather than snapping on (captain 2026-11-10: "a nice eased-in
     animation"): an inset ring never interpolates from none, which made it appear in one frame */
  box-shadow:inset 0 0 0 1.5px rgb(238 243 246 / 0)!important;
  color:#eef3f6!important;font:400 16px/21px 'DM Sans',sans-serif!important;transition:box-shadow .28s cubic-bezier(.2,.9,.25,1)}
#contactForm .field input:not([type=file]):not([type=checkbox]):not([type=radio]){height:48px;padding:0 20px!important;border-radius:999px!important}
#contactForm .field textarea{min-height:140px;padding:14px 20px!important;border-radius:16px!important;resize:vertical}
#contactForm .field input::placeholder,#contactForm .field textarea::placeholder{color:#6f757e!important}
/* focus: the design system's 1.5 ring in the text colour on every field (captain 2026-11-10: "the contact thing does
   not have the active selectors that like the design system has for the text inputs ... The only one it does for is
   the your message"). The capsule rule above outranked a plain :focus, so only the message box showed it; the
   selectors here carry the same weight plus the focus. */
#contactForm .field :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),textarea):focus{box-shadow:inset 0 0 0 1.5px #eef3f6!important}
#contactForm .field :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),textarea)[aria-invalid="true"]{box-shadow:inset 0 0 0 1.5px #ff6b6b!important}
/* Sport is a Tora dropdown (select-menu.js) in the inputs' own capsule, not a text box (captain: "sports should be a
   drop-down, you know, not an input"); the native select stays the source of truth and still sends "sport" */
#contactForm .field.sm-on .sm-btn{display:flex;width:100%;height:48px;padding:0 20px;justify-content:space-between;background:#141414;
  font:400 16px/21px 'DM Sans',sans-serif;color:#eef3f6;box-shadow:inset 0 0 0 1.5px rgb(238 243 246 / 0);transition:box-shadow .28s cubic-bezier(.2,.9,.25,1),scale .12s cubic-bezier(.2,0,.4,1)}
#contactForm .field.sm-on .sm-btn:hover,#contactForm .field.sm-open .sm-btn{background:#141414}
#contactForm .field.sm-on .sm-btn:focus-visible,#contactForm .field.sm-open .sm-btn{outline:0;box-shadow:inset 0 0 0 1.5px #eef3f6}
#contactForm .field.sm-on:has(option[value=""]:checked) .sm-val{color:#6f757e}
#contactForm .field.sm-on .sm-menu{left:0;right:0;top:calc(100% + .375rem);min-width:0}
/* the Sport menu opens over the Send button and the terms line, so it is solid: the form's own text never shows through the glass */
#contactForm .field.sm-on .sm-menu{background:#1e2024}
/* and it drops from under the capsule, a touch further and slower than the small filters on Careers, so the opening
   reads as one smooth ease (captain 2026-11-10: "a little eased-in animation for that pop-up"); rows follow as before */
#contactForm .field.sm-on .sm-menu{transform-origin:50% 0;transform:translateY(-.625rem) scale(.97)}
#contactForm .field.sm-on .sm-menu.is-open{transform:none;transition:opacity .22s cubic-bezier(.2,.9,.25,1),transform .42s cubic-bezier(.16,1,.3,1)}
@media(prefers-reduced-motion:reduce){#contactForm .field :is(input,textarea),#contactForm .field.sm-on .sm-btn{transition:none!important}}

/* labels: quiet, no asterisks; an optional field says so on the right */
#contactForm .field>label,#contactForm .cb-label{display:flex;justify-content:space-between;margin:0 0 8px!important;
  font:400 13px/18px 'DM Sans',sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#a5abb4!important}
#contactForm .cb-opt{color:#6f757e}
#contactForm .field{margin:0 0 16px}
#contactForm .field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#contactForm .c-err{min-height:0;margin:6px 0 0;font:400 13px/18px 'DM Sans',sans-serif}
#contactForm .c-err:empty{display:none}

/* subject: six chips instead of a dropdown; picked is white with its check on the right */
.cb-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.cb-chips{display:flex;flex-wrap:wrap;gap:8px}
.cb-chip{position:relative;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:999px;
  background:#2f3236;color:#eef3f6;font:500 14px/18px 'DM Sans',sans-serif;cursor:pointer;transition:background .2s ease,color .2s ease}
.cb-chip::before{content:"";position:absolute;inset:-4px 0}
.cb-chip:hover{background:#383b40}
.cb-chip[aria-checked="true"]{background:#eef3f6;color:#111316;padding-right:12px}
.cb-chip[aria-checked="true"]::after{content:"";width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat}
.cb-chip:focus-visible{outline:0;box-shadow:0 0 0 2px #1b1d20,0 0 0 3.5px #eef3f6}
.cb-subject:has([aria-invalid="true"]) .cb-chip:not([aria-checked="true"]){box-shadow:inset 0 0 0 1px rgb(255 107 107 / .6)}

/* Send message: one flat white capsule */
#contactForm .submit-btn{display:flex;align-items:center;justify-content:center;width:100%;height:52px;margin:8px 0 0;border:0;border-radius:999px!important;
  background:#eef3f6!important;color:#111316!important;font:600 17px/22px 'DM Sans',sans-serif!important;box-shadow:none!important;transform:none}
#contactForm .submit-btn:hover{background:#fff!important}
#contactForm .submit-btn:active{transform:scale(.97)}
#contactForm .consent{margin:12px 0 0;text-align:left;font:400 13px/18px 'DM Sans',sans-serif;color:#a5abb4}

/* ---- the page: the light and one sheet ---- */
/* the words centred in the light, as the sign-in centres its wordmark (captain 2026-11-07, after trying them from the
   left: "I want it to be center aligned again"); the title says Contact already, so no eyebrow over it */
html:not(.is-apply) .c-hero{display:flex;align-items:flex-end;justify-content:center;text-align:center}
html:not(.is-apply) .c-hero .co-hero-copy{margin-inline:auto;max-width:34rem;text-align:center}
html:not(.is-apply) .c-hero .sec-tag{display:none!important}
html:not(.is-apply) .c-hero h1{max-width:none!important;white-space:nowrap!important;font-size:clamp(2.75rem,5vw,4.5rem)!important;color:#fff!important}
html:not(.is-apply) .c-hero .lede{margin:16px auto 0!important;max-width:30ch!important;color:#eef3f6!important;font-size:1.0625rem!important;line-height:1.45!important}
html:not(.is-apply) .cb-sheet{background:#1b1d20;border-radius:24px;padding:24px!important}
html:not(.is-apply) .cb-sheet .c-form-wrap{max-width:none;padding:0;margin:0}
html:not(.is-apply) .cb-sheet .c-card{background:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important;max-width:none}

@media(min-width:821px){
  /* the light on the left, the whole form on a sheet at the right, inside the first screen */
  html:not(.is-apply) .cb-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);column-gap:24px;align-items:start}
  /* the title in the light's foot (captain 2026-11-08, the round 13 mock B he liked); signin-field.js gives the light this column */
  html:not(.is-apply) .cb-split>.c-hero{min-height:calc(100svh - var(--header-h,78px) - 2rem);padding:0 0 24svh!important}
  html:not(.is-apply) .cb-split>.cb-sheet{margin:16px 0 24px}
}
@media(max-width:820px){
  /* the light on top, the words in its foot, the sheet rising a little into it, as on the sign-in screen */
  html:not(.is-apply) .cb-split>.c-hero{padding:max(10rem,calc(34svh - 6.5rem)) 1.25rem 3rem!important}
  html:not(.is-apply) .c-hero h1{font-size:2.75rem!important}
  html:not(.is-apply) .cb-split>.cb-sheet{position:relative;z-index:2;margin:-24px 0 0;padding:24px 20px 20px!important}
}
#contactForm .c-note:empty{display:none}
@media(max-width:820px){html:not(.is-apply) .c-hero .lede{max-width:21rem!important;font-size:1rem!important}}
