/* Shared form-page styles for DreamBig Recruitment */
:root {
  --green: #7ED957;
  --green-deep: #5DBA38;
  --green-ink: #3B8521;
  --navy: #193050;
  --navy-2: #284978;
  --blue-soft: #193050;
  --gold: #F5C518;
  --cream: #FAF8F3;
  --paper: #F2EEE5;
  --ink: #0E1729;
  --muted: #5C6478;
  --line: #E6E1D4;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ───── Top utility strip ───── */
.util {
  background: var(--navy);
  color: #BFC8DD;
  font-size: 13px;
}
.util .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.util-left, .util-right { display: flex; align-items: center; gap: 24px; }
.util a { display: inline-flex; align-items: center; gap: 8px; color: #BFC8DD; transition: color .2s; }
.util a:hover { color: white; }
.util svg { width: 14px; height: 14px; opacity: .8; }
.util .pin { color: var(--green); }

/* ───── Header ───── */
header.nav {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark .one { font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.brand .wordmark .one span.dream { color: var(--green-deep); }
.brand .wordmark .two { font-family: "Manrope", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.35em; color: var(--blue-soft); margin-top: 5px; white-space: nowrap; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  transition: gap .2s;
}
.back-link:hover { color: var(--green-deep); gap: 12px; }
.back-link svg { width: 16px; height: 16px; }

/* ───── Page header ───── */
.page-head {
  padding: 64px 0 40px;
  position: relative;
}
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font-family: "Manrope", sans-serif; font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-deep);
}
.kicker::before {
  content: ""; display: inline-block; width: 36px; height: 2px; background: var(--green-deep);
}
.page-head h1 {
  font-family: "Playfair Display", "Bricolage Grotesque", serif;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 720px;
}
.page-head h1 em { font-style: italic; color: var(--green-deep); }
.page-head .lead {
  font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.65;
}

/* ───── Layout: form + sidebar ───── */
.layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 100px;
  align-items: start;
}
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 20px 50px -32px rgba(21, 41, 77, 0.18);
}
.sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

/* Sidebar cards */
.info-card {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: ""; position: absolute; top: 0; right: 0; width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(91, 194, 70, 0.32) 0%, transparent 65%);
  pointer-events: none;
}
.info-card h3 {
  font-family: "Playfair Display", serif; font-weight: 500;
  color: white; font-size: 22px; line-height: 1.2; margin-bottom: 14px;
}
.info-card p { font-size: 14.5px; color: rgba(255,255,255,0.78); line-height: 1.65; margin: 0 0 14px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .gold { color: var(--gold); }
.info-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.info-card li {
  padding: 9px 0;
  display: flex; gap: 12px; align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; color: rgba(255,255,255,0.84);
}
.info-card li:last-child { border-bottom: none; }
.info-card li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

.help-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px;
}
.help-card h4 { font-family: "Bricolage Grotesque", serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.help-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.help-card a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--green-deep);
  transition: gap .2s;
}
.help-card a:hover { gap: 12px; }
.help-card a svg { width: 14px; height: 14px; }

/* ───── Form ───── */
.form-section { margin-bottom: 36px; }
.form-section:last-of-type { margin-bottom: 28px; }
.form-section-title {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-deep);
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
  display: flex; align-items: center; gap: 12px;
}
.form-section-title .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-deep); color: white;
  font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.field-row.single { grid-template-columns: 1fr; }
.field {
  display: flex; flex-direction: column;
  margin-bottom: 0;
}
.field label {
  font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.field label .req { color: var(--green-deep); font-weight: 700; }
.field label .opt {
  font-family: "JetBrains Mono", monospace; font-weight: 500;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2D4D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  background: white;
  box-shadow: 0 0 0 4px rgba(91, 194, 70, 0.14);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Pill checkboxes */
.pill-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-size: 13.5px; font-weight: 500; color: var(--navy);
  transition: all .15s ease;
  user-select: none;
}
.pill:hover span { border-color: var(--green); }
.pill input:checked + span {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: white;
}
.pill input:checked + span::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain; background-repeat: no-repeat;
}

/* File drop */
.file-drop {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--cream);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--green-deep);
  background: rgba(91, 194, 70, 0.04);
}
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(91, 194, 70, 0.14);
  color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.file-drop .ico svg { width: 24px; height: 24px; }
.file-drop .title { font-weight: 600; color: var(--navy); font-size: 15.5px; }
.file-drop .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.file-drop.has-file { border-style: solid; border-color: var(--green-deep); background: rgba(91, 194, 70, 0.06); }
.file-drop.has-file .ico { background: var(--green-deep); color: white; }

/* Consent / checkbox */
.consent-block {
  margin-top: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.consent-block .legal { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.consent-block .legal a { color: var(--green-deep); text-decoration: underline; }
.consent-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.consent-row:first-child { border-top: none; padding-top: 0; }
.consent-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 2px;
  transition: all .15s;
  position: relative;
}
.consent-row input[type="checkbox"]:checked {
  background: var(--green-deep);
  border-color: var(--green-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.consent-row label { font-size: 13.5px; color: var(--ink); line-height: 1.5; cursor: pointer; }
.consent-row label strong { color: var(--navy); }

/* Actions */
.actions-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 8px;
}
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-deep); color: white; font-weight: 600;
  font-size: 14px; letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--green-deep);
  transition: all .2s ease;
  cursor: pointer;
  font-family: inherit;
}
.cta:hover { background: var(--green-ink); border-color: var(--green-ink); transform: translateY(-1px); }
.cta:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.actions-row .note { font-size: 12.5px; color: var(--muted); }

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.success-state.show { display: block; }
.success-state .ico {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(91, 194, 70, 0.14);
  color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.success-state .ico svg { width: 36px; height: 36px; }
.success-state h2 {
  font-family: "Playfair Display", serif; font-weight: 500;
  color: var(--navy); font-size: 32px; letter-spacing: -0.02em; margin-bottom: 12px;
}
.success-state p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 460px; margin: 0 auto 24px; }

/* ───── Footer ───── */
footer.simple {
  background: #0B1428;
  color: #BFC8DD;
  padding: 48px 0 28px;
  margin-top: 0;
}
footer.simple .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
footer.simple .foot-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: "Bricolage Grotesque", serif;
  font-weight: 700; font-size: 22px;
  color: white; letter-spacing: -0.02em;
}
footer.simple .foot-brand img { height: 38px; width: auto; }
footer.simple .foot-brand .dream { color: var(--green); }
footer.simple .foot-col h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px; font-weight: 500;
}
footer.simple .row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #BFC8DD;
}
footer.simple .row svg { width: 14px; height: 14px; color: var(--green); margin-top: 3px; flex-shrink: 0; }
footer.simple .row a { color: #BFC8DD; transition: color .2s; }
footer.simple .row a:hover { color: white; }
footer.simple .links-row {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  margin-top: 6px;
}
footer.simple .links-row a { font-size: 13px; color: #BFC8DD; transition: color .2s; }
footer.simple .links-row a:hover { color: white; }
footer.simple .copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: #6B7592;
}

footer.simple .sg-credit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6B7592;
  transition: color .2s;
}
footer.simple .sg-credit img { width: 18px; height: 18px; opacity: 0.65; transition: opacity .2s; }
footer.simple .sg-credit strong { font-weight: 600; letter-spacing: 0.04em; color: #BFC8DD; transition: color .2s; }
footer.simple .sg-credit:hover { color: #BFC8DD; }
footer.simple .sg-credit:hover img { opacity: 1; }
footer.simple .sg-credit:hover strong { color: white; }

@media (max-width: 720px) {
  footer.simple .container { grid-template-columns: 1fr; gap: 28px; }
  footer.simple .copy { flex-direction: column; gap: 10px; text-align: center; padding-top: 18px; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .form-card { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .page-head { padding: 40px 0 28px; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .util .container { font-size: 12px; height: auto; padding: 10px 20px; flex-wrap: wrap; gap: 8px; }
  .util-left, .util-right { gap: 14px; }
  .nav-inner { height: 72px; gap: 12px; }
  .brand img { height: 38px; }
  .brand .wordmark .one { font-size: 18px; }
  .brand .wordmark .two { font-size: 9px; letter-spacing: 0.3em; }
  .back-link { font-size: 13px; gap: 6px; white-space: nowrap; flex-shrink: 0; }
  .back-link svg { width: 14px; height: 14px; }
  .back-link .back-text { display: none; }
  .back-link::after { content: "Home"; }
  .form-card { padding: 26px 20px; }
  .form-section-title { font-size: 10.5px; gap: 10px; }
  .page-head h1 { font-size: clamp(32px, 9vw, 48px); }
  .pill span { padding: 8px 12px; font-size: 13px; }
  .actions-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .actions-row .cta { justify-content: center; }
}
@media (max-width: 420px) {
  .brand .wordmark .one { font-size: 17px; }
  .brand .wordmark .two { font-size: 7.5px; letter-spacing: 0.28em; margin-top: 4px; }
}

/* ───── Turnstile + form-status additions ───── */
.turnstile-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.cf-turnstile-mount {
  min-height: 65px;
  display: flex;
  align-items: center;
}
.form-error {
  background: #FDE7E2;
  border: 1px solid #E89A8A;
  color: #842C18;
  padding: 14px 18px;
  border-radius: 12px;
  margin: 8px 0 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.upload-progress {
  margin: 8px 0 16px;
}
.upload-progress-bar {
  height: 8px;
  background: #E9E4D5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.upload-progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7ED957, #5DBA38);
  border-radius: 999px;
  transition: width .25s ease;
}
.upload-progress-label {
  font-size: 13px;
  color: #5C6478;
  font-weight: 500;
}
.cta:disabled {
  opacity: 0.55;
  cursor: progress;
}
