/* =========================================================
   EDC Discover Form
   Full 4-section discovery form with a JS-flexible manpower
   requirement repeater. Full-container width so 2-column
   grids can breathe on desktop; hero heading stays narrow
   for a comfortable reading measure.
========================================================= */
.edc-df {
  background: var(--edc-warm-white);
}

/* ═════════ Top banner strip ═════════
   Sits above the header. Capped at --edc-container and centered so
   its left+right edges align with the header content and form
   sections below. Wrapped in a padded outer so viewport gutters
   match the header/form band exactly. */
.edc-df__banner-wrap {
  padding: 0 var(--edc-space-gutter);
}
@media (min-width: 1024px) { .edc-df__banner-wrap { padding: 0 var(--edc-section-h); } }

.edc-df__banner {
  display: block;
  max-width: var(--edc-container);
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;                              /* eats the inline-block gap under <img> */
  border-radius: 14px;                          /* boxed banner reads as a card */
  border: 1px solid rgba(242, 184, 27, 0.30);
  box-shadow: 0 12px 28px -12px rgba(41, 41, 40, 0.12);
  text-decoration: none;
  transition: transform var(--edc-dur-quick) var(--edc-ease),
              box-shadow var(--edc-dur-medium) var(--edc-ease),
              filter var(--edc-dur-quick) var(--edc-ease);
}
a.edc-df__banner:hover {
  filter: brightness(1.03) saturate(1.05);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(41, 41, 40, 0.18);
}
.edc-df__banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
/* Cap on ultra-wide screens so the banner keeps its intended
   proportions instead of ballooning tall. */
@media (min-width: 1600px) {
  .edc-df__banner img { max-height: 140px; }
}

/* ═════════ Header band (clean — no photo) ═════════
   Cream-to-white gradient with a subtle Solar Gold radial glow and
   hairline grid mask. Two-column inner: copy (chip + heading +
   intro + trust chips) on the left, step-roadmap card on the right. */
.edc-df__header {
  position: relative;
  overflow: hidden;
  padding: 72px var(--edc-space-gutter) 80px;
  background: linear-gradient(180deg, #f7f3eb 0%, #fdfbf6 100%);
  border-bottom: 1px solid rgba(224, 221, 216, 0.6);
  isolation: isolate;
}
@media (min-width: 1024px) { .edc-df__header { padding: 96px var(--edc-section-h) 96px; } }

.edc-df__header-glow {
  position: absolute;
  top: -20%; left: 10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(242, 184, 27, 0.18) 0%, transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.edc-df__header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(121, 89, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 89, 0, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.edc-df__header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .edc-df__header-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px; }
  .edc-df__header-copy  { grid-column: span 7; }
  .edc-df__steps        { grid-column: 9 / span 4; }
}

/* Copy column */
.edc-df__header-copy { display: flex; flex-direction: column; gap: 28px; }
.edc-df__heading {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--edc-obsidian);
  margin: 0;
}
.edc-df__heading-accent { color: var(--edc-solar-gold); }
.edc-df__intro {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.7;
  color: var(--edc-slate);
  margin: 0;
  max-width: 560px;
}

/* Trust marker chip row */
.edc-df__trust {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.edc-df__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(224, 221, 216, 0.75);
  border-radius: 999px;
  font-family: var(--edc-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--edc-obsidian);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.edc-df__trust .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--edc-solar-gold);
}

/* Step roadmap card */
.edc-df__steps {
  padding: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(224, 221, 216, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -20px rgba(41, 41, 40, 0.20);
  display: flex; flex-direction: column;
  gap: 16px;
}
.edc-df__steps-label {
  font-family: var(--edc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--edc-stone);
}
.edc-df__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.edc-df__steps-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background-color var(--edc-dur-quick);
}
.edc-df__steps-list li:hover { background: rgba(242, 184, 27, 0.06); }
.edc-df__step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--edc-gold-tint);
  color: #7a5900;
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.edc-df__step-body { display: flex; flex-direction: column; gap: 2px; }
.edc-df__step-body strong {
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--edc-obsidian);
}
.edc-df__step-body em {
  font-family: var(--edc-font-body);
  font-style: normal;
  font-size: 12px;
  color: var(--edc-slate);
}

/* (Removed decorative header layers — the header is now a simple centered
   hero. Old rules for orb/ring/watermark/grid/glow/step-roadmap have
   been dropped along with their markup.) */

.edc-df__header-inner {
  position: relative;
  z-index: 3;                                 /* above bg + wash + glow + grid */
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .edc-df__header-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px; }
  .edc-df__header-copy  { grid-column: span 7; }
  .edc-df__steps        { grid-column: 9 / span 4; }
}

/* Copy side — sits directly on the solid cream half of the diagonal
   split. No glass tricks needed; the cream provides high contrast
   for text. On mobile (where wash covers the whole header) the copy
   remains readable against the near-opaque wash. */
.edc-df__header-copy {
  display: flex; flex-direction: column;
  gap: 24px;
}

.edc-df__heading {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--edc-obsidian);
  margin: 0;
}
.edc-df__heading-accent { color: var(--edc-solar-gold); }
.edc-df__intro {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.7;
  color: var(--edc-slate);
  margin: 0;
  max-width: 560px;
}

/* Trust marker row */
.edc-df__trust {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.edc-df__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(224, 221, 216, 0.75);
  border-radius: 999px;
  font-family: var(--edc-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--edc-obsidian);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.edc-df__trust .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--edc-solar-gold);
}

/* Step roadmap card */
.edc-df__steps {
  padding: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(224, 221, 216, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -20px rgba(41, 41, 40, 0.20);
  display: flex; flex-direction: column;
  gap: 16px;
}
.edc-df__steps-label {
  font-family: var(--edc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--edc-stone);
}
.edc-df__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.edc-df__steps-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background-color var(--edc-dur-quick);
}
.edc-df__steps-list li:hover { background: rgba(242, 184, 27, 0.06); }
.edc-df__step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--edc-gold-tint);
  color: #7a5900;
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.edc-df__step-body { display: flex; flex-direction: column; gap: 2px; }
.edc-df__step-body strong {
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--edc-obsidian);
}
.edc-df__step-body em {
  font-family: var(--edc-font-body);
  font-style: normal;
  font-size: 12px;
  color: var(--edc-slate);
}

/* Form wrap — mirrors the header band pattern.
   Outer element carries the vertical + horizontal viewport padding.
   The nested .edc-df__form is capped at --edc-container and centered,
   so its LEFT/RIGHT edges align pixel-perfect with .edc-df__header-inner
   above. Previously the wrap had both max-width AND padding, which
   shrank the form content ~160px narrower than the header. */
.edc-df__wrap {
  padding: 48px var(--edc-space-gutter) 96px;
}
@media (min-width: 1024px) { .edc-df__wrap { padding: 64px var(--edc-section-h) 128px; } }
.edc-df__heading {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--edc-obsidian);
  margin: 0 0 16px 0;
}
.edc-df__intro {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.7;
  color: var(--edc-slate);
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

/* Form shell — capped at the site container so it aligns with the
   header content above (same left + right edges). */
.edc-df__form {
  display: flex; flex-direction: column;
  gap: 32px;
  max-width: var(--edc-container);
  margin: 0 auto;
}

.edc-df__section {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--edc-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px -16px rgba(41, 41, 40, 0.10);
  display: flex; flex-direction: column;
  gap: 24px;
  min-inline-size: 0;
}
@media (min-width: 1024px) { .edc-df__section { padding: 48px 56px; } }
.edc-df__section--consent { background: var(--edc-cream); }

/* Editorial section header — oversized gold display numeral paired
   with a stacked body (eyebrow step counter · bold title · descriptor
   subtitle). Hairline rule beneath carries a gradient Solar Gold
   accent that fades into the divider, giving each section a chapter
   marker feel. */
.edc-df__legend {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  padding: 0 0 22px;
  margin: 0 0 6px;
  position: relative;
  border-bottom: 1px solid rgba(41, 41, 40, 0.08);
}
.edc-df__legend::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--edc-solar-gold) 0%,
    rgba(242, 184, 27, 0.55) 55%,
    rgba(242, 184, 27, 0) 100%);
  border-radius: 2px;
}
.edc-df__legend-num {
  flex: 0 0 auto;
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, var(--edc-solar-gold) 0%, #b8830a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-right: 22px;
  padding-top: 2px;
}
.edc-df__legend-num::after {
  content: '';
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(41, 41, 40, 0) 0%,
    rgba(41, 41, 40, 0.16) 30%,
    rgba(41, 41, 40, 0.16) 70%,
    rgba(41, 41, 40, 0) 100%);
}
.edc-df__legend-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  min-inline-size: 0;
}
.edc-df__legend-text {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: var(--edc-obsidian);
  letter-spacing: -0.02em;
}
.edc-df__legend-sub {
  font-family: var(--edc-font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--edc-slate);
  margin-top: 2px;
  max-width: 62ch;
}
@media (min-width: 1024px) {
  .edc-df__legend      { gap: 26px; }
  .edc-df__legend-num  { font-size: 72px; padding-right: 26px; }
  .edc-df__legend-text { font-size: 30px; }
  .edc-df__legend-sub  { font-size: 15px; }
}
.edc-df__section-sub {
  font-family: var(--edc-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--edc-slate);
  margin: 0;
}
.edc-df__section-sub strong { color: var(--edc-obsidian); }

/* Field primitives */
.edc-df__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-inline-size: 0;
}
.edc-df__label {
  font-family: var(--edc-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--edc-obsidian);
}
.edc-df__label em { font-style: normal; font-weight: 500; color: var(--edc-slate); font-size: 11px; }

.edc-df__field input[type="text"],
.edc-df__field input[type="email"],
.edc-df__field input[type="tel"],
.edc-df__field input[type="url"],
.edc-df__field input[type="number"],
.edc-df__field input[type="date"],
.edc-df__field select,
.edc-df__field textarea,
.edc-df__other-input {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(90, 89, 86, 0.20);
  border-radius: 10px;
  color: var(--edc-obsidian);
  font-family: var(--edc-font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--edc-dur-quick), box-shadow var(--edc-dur-quick);
}
.edc-df__field textarea { resize: vertical; min-height: 90px; }
.edc-df__field select   { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--edc-slate) 50%), linear-gradient(135deg, var(--edc-slate) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.edc-df__field input:focus,
.edc-df__field select:focus,
.edc-df__field textarea:focus,
.edc-df__other-input:focus {
  border-color: var(--edc-solar-gold);
  box-shadow: 0 0 0 3px var(--edc-gold-tint);
}
.edc-df__field input::placeholder,
.edc-df__field textarea::placeholder { color: rgba(90, 89, 86, 0.42); }

.edc-df__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .edc-df__grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .edc-df__grid--3 { grid-template-columns: 1fr 1fr 1fr; } }
/* Reasons checklist becomes a 2-col grid at wider breakpoints so it doesn't
   run down the whole page. */
@media (min-width: 900px) { .edc-df__checks--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; } }

/* Radios + checkboxes */
.edc-df__radios,
.edc-df__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 0 0;
}
.edc-df__radios { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.edc-df__radios label,
.edc-df__checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--edc-font-body);
  font-size: 14px;
  color: var(--edc-slate);
  cursor: pointer;
  line-height: 1.5;
}
.edc-df__radios input[type="radio"],
.edc-df__checks input[type="checkbox"] {
  accent-color: var(--edc-solar-gold);
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ── Manpower Requirement — repeater rows ── */
.edc-df__roles { display: flex; flex-direction: column; gap: 20px; }
.edc-df__role {
  padding: 24px;
  background: #f7f5f0;
  border: 1px solid rgba(224, 221, 216, 0.75);
  border-radius: 14px;
  display: flex; flex-direction: column;
  gap: 20px;
  position: relative;
}
@media (min-width: 1024px) { .edc-df__role { padding: 32px; } }

/* Manpower row bottom half — Job Description spans 2 cols; Experience
   + Headcount stack in the third. Falls back to single-column on
   mobile so long fields don't get crushed. */
.edc-df__role-body {
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .edc-df__role-body { grid-template-columns: 2fr 1fr; }
  .edc-df__role-body .edc-df__field--wide { grid-row: span 2; }
}
.edc-df__role[hidden] { display: none !important; }
.edc-df__role-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.edc-df__role-title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--edc-obsidian);
  margin: 0;
  letter-spacing: 0.02em;
}
.edc-df__role-remove {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--edc-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--edc-slate);
  cursor: pointer;
  transition: background-color var(--edc-dur-quick), color var(--edc-dur-quick), border-color var(--edc-dur-quick);
}
.edc-df__role-remove:hover { background: #ffe5e5; color: #b52a2a; border-color: #f0b0b0; }
.edc-df__role-remove .material-symbols-outlined { font-size: 18px !important; }

.edc-df__add-role {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  align-self: flex-start;
  padding: 12px 20px;
  background: transparent;
  border: 2px dashed rgba(242, 184, 27, 0.55);
  border-radius: 999px;
  color: #7a5900;
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--edc-dur-quick), border-color var(--edc-dur-quick);
}
.edc-df__add-role:hover { background: var(--edc-gold-tint); border-color: var(--edc-solar-gold); }
.edc-df__add-role[hidden] { display: none; }
.edc-df__add-role .material-symbols-outlined { font-size: 20px !important; color: var(--edc-solar-gold); }

/* ── Consent ── */
.edc-df__terms {
  font-family: var(--edc-font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--edc-slate);
  padding: 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  border: 1px solid rgba(224,221,216,0.6);
}
.edc-df__terms p { margin: 0 0 8px 0; }
.edc-df__terms p:last-child { margin-bottom: 0; }
.edc-df__terms strong { color: var(--edc-obsidian); }

.edc-df__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--edc-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--edc-slate);
  cursor: pointer;
}
.edc-df__consent input[type="checkbox"] {
  accent-color: var(--edc-solar-gold);
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Submit ── */
.edc-df__submit {
  align-self: center;
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 18px 48px;
  border: 0;
  border-radius: var(--edc-radius-full);
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(242, 184, 27, 0.55), 0 2px 8px rgba(41,41,40,0.08);
  transition: transform var(--edc-dur-quick), filter var(--edc-dur-quick), box-shadow var(--edc-dur-medium);
}
.edc-df__submit:hover  { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 36px -8px rgba(242, 184, 27, 0.7); }
.edc-df__submit:active { transform: scale(0.98); }
.edc-df__submit .material-symbols-outlined { font-size: 20px !important; transition: transform var(--edc-dur-quick); }
.edc-df__submit:hover .material-symbols-outlined { transform: translateX(4px); }

/* Newly-cloned role rows fade+slide in for polish */
@media (prefers-reduced-motion: no-preference) {
  .edc-df__role.is-new {
    animation: edc-df-role-in 400ms var(--edc-ease-out);
  }
  @keyframes edc-df-role-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
