/* ============================================================
   JIM BEAM — Family of Flavor × Snipp
   Shared form & gate styles for interior pages.
   Uses the interior template's inline :root tokens
   (--cream, --ink, --ink-soft, --ink-faint, --accent, --sans,
    --display, --ease). Input surface hard-coded to paper #FBF8F1.
   ============================================================ */

/* ---- centered content section under the ticker ---- */
.btn { white-space: nowrap; }
.form-sec { padding: 64px 0 88px; }
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-head { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.form-head .int-eyebrow { margin-bottom: 14px; }
.form-head .int-headline { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.form-head .int-rule { margin: 0 auto 22px; }
.form-lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }
.form-alt { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.form-alt a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-alt a:hover { color: #a60e26; }

/* ---- fields ---- */
.field { margin-bottom: 20px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .req { color: var(--accent); margin-left: 2px; }
.field .opt { color: var(--ink-faint); font-weight: 400; }
.input,
.select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #FBF8F1; border: 1.5px solid rgba(27,25,22,.18); border-radius: 12px;
  padding: 14px 16px; line-height: 1.2;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.input.invalid, .select.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.14); }

/* ---- locked / prefilled (read-only demo) fields ---- */
.input.locked, .input[readonly] {
  background: #ECE5D7; color: var(--ink-soft); cursor: not-allowed;
  border-style: dashed; border-color: rgba(27,25,22,.2);
}
.input.locked:focus, .input[readonly]:focus { outline: none; box-shadow: none; border-color: rgba(27,25,22,.2); }
.locked-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); background: rgba(27,25,22,.07);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

/* ---- select chevron ---- */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.select { padding-right: 40px; }

/* ---- date row (Month / Day / Year) ---- */
.field-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }

/* ---- checkboxes ---- */
.check-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.check-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 22px; height: 22px; border: 1.5px solid rgba(27,25,22,.3); border-radius: 6px;
  background: #FBF8F1; cursor: pointer; position: relative; transition: background .15s, border-color .15s;
}
.check-row input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.check-row input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-row label { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.check-row a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---- required-field note ---- */
.req-note { text-align: right; font-size: 12px; font-style: italic; color: var(--ink-faint); margin: -4px 0 18px; }

/* ---- captcha placeholder ---- */
.captcha-ph {
  background: var(--cream); border: 1px dashed rgba(27,25,22,.22); border-radius: 12px;
  padding: 26px; text-align: center; margin: 6px 0 26px;
}
.captcha-ph b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.captcha-ph span { font-size: 12.5px; color: var(--ink-faint); }

/* ---- actions ---- */
.form-actions { display: flex; justify-content: center; margin-top: 28px; }
.form-actions .btn { min-width: 220px; justify-content: center; }
.form-error { color: var(--accent); font-size: 14px; font-weight: 600; text-align: center; margin-top: 16px; min-height: 1px; }

/* ---- gate fine print (responsibility + legal links) ---- */
.gate-fine {
  max-width: 720px; margin: 36px auto 0; text-align: center;
  font-size: 13px; line-height: 1.65; color: var(--ink-soft);
}
.gate-fine a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- verification code boxes ---- */
.code-row { display: flex; justify-content: center; gap: 14px; margin: 6px 0 4px; }
.code-box {
  width: 64px; height: 72px; text-align: center; font-family: var(--display); font-weight: 700;
  font-size: 34px; color: var(--ink); background: #FBF8F1; caret-color: var(--accent);
  border: 1.5px solid rgba(27,25,22,.2); border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.code-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.code-box.filled { border-color: var(--accent); }
.resend { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); }
.resend b { color: var(--ink-soft); font-weight: 700; }
.resend a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.resend a[aria-disabled="true"] { color: var(--ink-faint); pointer-events: none; text-decoration: none; }

/* ---- simple action row (ineligible / generic) ---- */
.simple-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---- responsive ---- */
@media (max-width: 600px){
  .form-sec { padding: 48px 0 64px; }
  .form-head .int-headline { font-size: 34px; }
  .form-actions .btn { width: 100%; }
  .simple-actions .btn { width: 100%; justify-content: center; }
  .code-row { gap: 10px; }
  .code-box { width: 58px; height: 66px; font-size: 30px; }
  .field-row { gap: 10px; grid-template-columns: 1.2fr 1fr 1fr; }
}
