/* ── BrandBrew Design Tokens ──────────────────────────────────────────────── */
:root {
  --bg:      #18191C;
  --bg2:     #1F2124;
  --bg3:     #242729;
  --bg4:     #111214;
  --grn:     #28B474;
  --grn-d:   #197149;
  --grn-dk:  #0D3D22;
  --wht:     #FFFFFF;
  --gry-l:   #C0C5CC;
  --gry:     #8A8F96;
  --gry-d:   #2C3035;
  --red:     #D94F4F;
  --gap:     clamp(1rem, 2.5vw, 1.75rem);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--wht);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg4);
  border-bottom: 1px solid var(--grn);
  padding: clamp(.75rem,2vw,1.25rem) clamp(1.5rem,5vw,4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.wordmark { font-size: clamp(1rem,2.2vw,1.3rem); font-weight: 800; letter-spacing: .04em; color: var(--wht); }
.wordmark span { color: var(--grn); }
.header-tag { font-size: clamp(.6rem,1.2vw,.75rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gry); }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.progress-wrap { background: var(--bg4); border-bottom: 1px solid var(--gry-d); padding: clamp(.75rem,2vw,1.25rem) clamp(1.5rem,5vw,4rem); }
.progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.progress-label { font-size: clamp(.65rem,1.3vw,.78rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gry); }
.progress-count { font-size: clamp(.65rem,1.3vw,.78rem); font-weight: 600; color: var(--grn); }
.progress-track { width: 100%; height: 3px; background: var(--gry-d); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg,var(--grn-d),var(--grn)); border-radius: 99px; transition: width .5s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 8px rgba(40,180,116,.35); }
.step-dots { display: flex; gap: .5rem; margin-top: .6rem; }
.step-dot { font-size: clamp(.58rem,1.1vw,.7rem); font-weight: 600; color: var(--gry); padding: .25rem .6rem; border-radius: 4px; border: 1px solid var(--gry-d); transition: all .3s; cursor: default; }
.step-dot.active { color: var(--grn); border-color: var(--grn); background: rgba(40,180,116,.08); }
.step-dot.done { color: var(--grn-d); border-color: var(--grn-d); background: rgba(25,113,73,.12); }

/* ── Main layout ─────────────────────────────────────────────────────────── */
.main { flex: 1; padding: clamp(2rem,5vw,4rem) clamp(1.5rem,5vw,4rem); max-width: 820px; margin: 0 auto; width: 100%; }

/* ── Step panes ──────────────────────────────────────────────────────────── */
.step-pane { display: none; animation: fadeUp .45s ease both; }
.step-pane.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.step-intro { margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.step-tag { display: inline-block; font-size: clamp(.58rem,1.1vw,.68rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grn); background: rgba(40,180,116,.1); border: 1px solid rgba(40,180,116,.25); padding: .3rem .7rem; border-radius: 4px; margin-bottom: .85rem; }
.step-title { font-size: clamp(1.4rem,3.5vw,2rem); font-weight: 800; line-height: 1.15; color: var(--wht); margin-bottom: .6rem; }
.step-desc { font-size: clamp(.8rem,1.6vw,.92rem); font-weight: 300; color: var(--gry-l); line-height: 1.6; max-width: 560px; }

/* ── Form elements ───────────────────────────────────────────────────────── */
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.fields-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 580px) { .fields-grid { grid-template-columns: 1fr; } .fields-grid .field-full { grid-column: 1; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: clamp(.68rem,1.3vw,.78rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gry-l); }
.field label .req { color: var(--grn); margin-left: .15em; }
.field label .opt { font-weight: 400; font-size: .9em; letter-spacing: 0; text-transform: none; color: var(--gry); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  background: var(--bg2); border: 1px solid var(--gry-d); border-radius: 6px; color: var(--wht); font-family: 'Montserrat', sans-serif; font-size: clamp(.8rem,1.5vw,.9rem); font-weight: 400; padding: .75rem 1rem; transition: border-color .25s, box-shadow .25s; width: 100%; outline: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--gry); }
input:focus, select:focus, textarea:focus { border-color: var(--grn); box-shadow: 0 0 0 3px rgba(40,180,116,.12); }
input.error, select.error, textarea.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,79,79,.1); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8F96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
select option { background: var(--bg2); }
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.field-hint { font-size: clamp(.65rem,1.2vw,.72rem); color: var(--gry); font-weight: 400; line-height: 1.4; }
.field-error { font-size: clamp(.65rem,1.2vw,.72rem); color: var(--red); font-weight: 600; display: none; }
.field-error.show { display: block; }

/* ── Radio / Checkbox groups ─────────────────────────────────────────────── */
.radio-group, .check-group { display: flex; flex-direction: column; gap: .5rem; }
.radio-group.inline, .check-group.inline { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.radio-item, .check-item { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; padding: .7rem .9rem; border-radius: 6px; border: 1px solid var(--gry-d); background: var(--bg2); transition: all .2s; position: relative; }
.radio-item:hover, .check-item:hover { border-color: rgba(40,180,116,.35); background: rgba(40,180,116,.05); }
.radio-item.selected, .check-item.selected { border-color: var(--grn); background: rgba(40,180,116,.08); }
.radio-item input[type="radio"], .check-item input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.custom-radio, .custom-check { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; border: 2px solid var(--gry); background: transparent; display: flex; align-items: center; justify-content: center; transition: all .2s; margin-top: 1px; }
.custom-check { border-radius: 4px; }
.radio-item.selected .custom-radio { border-color: var(--grn); background: var(--grn); box-shadow: 0 0 0 3px rgba(40,180,116,.18); }
.radio-item.selected .custom-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wht); display: block; }
.check-item.selected .custom-check { border-color: var(--grn); background: var(--grn); box-shadow: 0 0 0 3px rgba(40,180,116,.18); }
.check-item.selected .custom-check::after { content: '✓'; color: var(--wht); font-size: 11px; font-weight: 700; line-height: 1; }
.option-label { font-size: clamp(.78rem,1.5vw,.87rem); font-weight: 500; color: var(--wht); line-height: 1.4; }
.option-sub { font-size: clamp(.65rem,1.2vw,.73rem); font-weight: 300; color: var(--gry); display: block; margin-top: .15rem; }

/* ── Pills ───────────────────────────────────────────────────────────────── */
.inline-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option-pill { padding: .55rem 1rem; border-radius: 99px; border: 1px solid var(--gry-d); background: var(--bg2); font-size: clamp(.7rem,1.3vw,.8rem); font-weight: 600; color: var(--gry-l); cursor: pointer; transition: all .2s; user-select: none; display: flex; align-items: center; gap: .35rem; }
.option-pill:hover { border-color: rgba(40,180,116,.35); color: var(--wht); }
.option-pill.selected { border-color: var(--grn); background: rgba(40,180,116,.1); color: var(--grn); }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.section-divider { height: 1px; background: var(--gry-d); margin: clamp(1.5rem,3.5vw,2.5rem) 0; }

/* ── Qualifier card ──────────────────────────────────────────────────────── */
.qualifier-card { background: var(--grn-dk); border: 1px solid rgba(40,180,116,.2); border-radius: 8px; padding: clamp(1rem,3vw,1.5rem); margin-bottom: var(--gap); }
.qualifier-card-title { font-size: clamp(.75rem,1.5vw,.85rem); font-weight: 700; color: var(--grn); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.qualifier-card-body { font-size: clamp(.78rem,1.5vw,.87rem); font-weight: 300; color: var(--gry-l); line-height: 1.6; }

/* ── Nav buttons ─────────────────────────────────────────────────────────── */
.form-nav { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(2rem,5vw,3rem); gap: 1rem; flex-wrap: wrap; }
.btn { font-family: 'Montserrat', sans-serif; font-size: clamp(.8rem,1.5vw,.9rem); font-weight: 700; letter-spacing: .05em; border-radius: 6px; padding: .85rem 2rem; border: none; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; }
.btn-primary { background: linear-gradient(135deg,var(--grn-d),var(--grn)); color: var(--wht); box-shadow: 0 4px 16px rgba(40,180,116,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(40,180,116,.35); }
.btn-secondary { background: transparent; color: var(--gry-l); border: 1px solid var(--gry-d); }
.btn-secondary:hover { border-color: var(--gry); color: var(--wht); }
.btn-submit { background: linear-gradient(135deg,var(--grn-d),var(--grn)); color: var(--wht); font-size: clamp(.85rem,1.7vw,1rem); padding: 1rem 2.5rem; box-shadow: 0 4px 20px rgba(40,180,116,.28); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(40,180,116,.4); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── reCAPTCHA wrapper ───────────────────────────────────────────────────── */
.recaptcha-wrap { margin-bottom: 1rem; }

/* ── Success / thank you page ────────────────────────────────────────────── */
.thanks-wrap { text-align: center; padding: clamp(2rem,6vw,5rem) 0; }
.thanks-icon { width: 72px; height: 72px; background: rgba(40,180,116,.1); border: 2px solid var(--grn); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem; font-size: 2rem; }
.thanks-title { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 900; color: var(--wht); margin-bottom: .75rem; line-height: 1.15; }
.thanks-title span { color: var(--grn); }
.thanks-body { font-size: clamp(.85rem,1.7vw,1rem); font-weight: 300; color: var(--gry-l); line-height: 1.7; max-width: 500px; margin: 0 auto 2.5rem; }
.thanks-strip { background: var(--grn-dk); border: 1px solid rgba(40,180,116,.2); border-radius: 8px; padding: 1.25rem 1.75rem; display: inline-block; text-align: left; max-width: 420px; width: 100%; }
.thanks-strip-title { font-size: clamp(.65rem,1.2vw,.75rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grn); margin-bottom: .6rem; }
.thanks-step { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; font-size: clamp(.75rem,1.4vw,.85rem); color: var(--gry-l); font-weight: 400; line-height: 1.5; }
.thanks-step-num { min-width: 22px; height: 22px; background: var(--grn-d); color: var(--wht); border-radius: 50%; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ── Error banner ────────────────────────────────────────────────────────── */
.error-banner { background: rgba(217,79,79,.08); border: 1px solid rgba(217,79,79,.25); border-radius: 6px; padding: .85rem 1.1rem; font-size: clamp(.72rem,1.3vw,.8rem); color: var(--red); font-weight: 600; margin-bottom: 1.25rem; }
.validation-summary { background: rgba(217,79,79,.08); border: 1px solid rgba(217,79,79,.25); border-radius: 6px; padding: .85rem 1.1rem; font-size: clamp(.72rem,1.3vw,.8rem); color: var(--red); font-weight: 600; margin-bottom: 1.25rem; display: none; }
.validation-summary.show { display: block; }

/* ── Conditional fields ──────────────────────────────────────────────────── */
.conditional-field { display: none; }
.conditional-field.visible { display: flex; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg4); border-top: 1px solid var(--gry-d); padding: 1rem clamp(1.5rem,5vw,4rem); text-align: center; font-size: clamp(.58rem,1.1vw,.68rem); font-weight: 400; color: var(--gry); letter-spacing: .03em; }
.site-footer span { color: var(--grn-d); }

/* ── Admin styles ────────────────────────────────────────────────────────── */
.admin-main { flex: 1; padding: clamp(1.5rem,4vw,3rem) clamp(1.5rem,5vw,4rem); max-width: 1100px; margin: 0 auto; width: 100%; }
.admin-heading { font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 800; margin-bottom: 1.5rem; }
.admin-heading span { color: var(--grn); }

.submissions-table { width: 100%; border-collapse: collapse; font-size: clamp(.72rem,1.3vw,.82rem); }
.submissions-table thead th { background: var(--bg4); color: var(--gry); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--gry-d); }
.submissions-table tbody tr { border-bottom: 1px solid var(--gry-d); transition: background .15s; }
.submissions-table tbody tr:hover { background: rgba(40,180,116,.04); }
.submissions-table td { padding: .9rem 1rem; color: var(--gry-l); vertical-align: middle; }
.submissions-table .td-company { font-weight: 700; color: var(--wht); }
.submissions-table .td-link a { color: var(--grn); text-decoration: none; font-weight: 600; }
.submissions-table .td-link a:hover { text-decoration: underline; }

.badge { display: inline-block; padding: .2rem .55rem; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.badge-green { background: rgba(40,180,116,.12); color: var(--grn); border: 1px solid rgba(40,180,116,.25); }
.badge-grey  { background: rgba(138,143,150,.12); color: var(--gry); border: 1px solid var(--gry-d); }

.submission-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 2rem; }
@media (max-width: 640px) { .submission-detail { grid-template-columns: 1fr; } }
.detail-section { background: var(--bg2); border: 1px solid var(--gry-d); border-radius: 8px; padding: 1.25rem 1.5rem; }
.detail-section.full { grid-column: 1 / -1; }
.detail-section-title { font-size: clamp(.65rem,1.2vw,.73rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grn); margin-bottom: 1rem; border-bottom: 1px solid var(--gry-d); padding-bottom: .6rem; }
.detail-row { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .85rem; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label { font-size: clamp(.62rem,1.1vw,.7rem); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gry); }
.detail-value { font-size: clamp(.8rem,1.4vw,.87rem); color: var(--gry-l); line-height: 1.55; }
.detail-value.em { color: var(--wht); font-weight: 600; }

.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-tag { background: rgba(40,180,116,.08); border: 1px solid rgba(40,180,116,.2); color: var(--grn); border-radius: 99px; padding: .2rem .7rem; font-size: .72rem; font-weight: 600; }

.trigger-section { background: var(--grn-dk); border: 1px solid rgba(40,180,116,.2); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.trigger-info h2 { font-size: clamp(.85rem,1.6vw,.95rem); font-weight: 700; color: var(--wht); margin-bottom: .3rem; }
.trigger-info p { font-size: clamp(.72rem,1.3vw,.8rem); color: var(--gry-l); font-weight: 300; }
.btn-trigger { background: linear-gradient(135deg,var(--grn-d),var(--grn)); color: var(--wht); font-family: 'Montserrat', sans-serif; font-size: clamp(.78rem,1.4vw,.87rem); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: none; border-radius: 6px; padding: .75rem 1.75rem; cursor: pointer; transition: all .25s; box-shadow: 0 4px 16px rgba(40,180,116,.22); }
.btn-trigger:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(40,180,116,.35); }
.btn-trigger:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gry); font-size: clamp(.72rem,1.3vw,.8rem); font-weight: 600; text-decoration: none; margin-bottom: 1.5rem; transition: color .2s; }
.back-link:hover { color: var(--grn); }

.alert { padding: .85rem 1.1rem; border-radius: 6px; font-size: clamp(.72rem,1.3vw,.8rem); font-weight: 600; margin-bottom: 1.25rem; }
.alert-success { background: rgba(40,180,116,.08); border: 1px solid rgba(40,180,116,.25); color: var(--grn); }
.alert-error   { background: rgba(217,79,79,.08); border: 1px solid rgba(217,79,79,.25); color: var(--red); }

.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gry); }
.empty-state h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; color: var(--gry-l); }
