/* ========================================================================
   Golden Enterprise Solutions — intake form
   Mobile-first. Gold-on-dark hero, white card body, generous tap targets.
   ======================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --ink: #0a0a0a;
  --ink-soft: #4a4a4a;
  --muted: #7a7568;
  --gold: #c9a24a;
  --gold-deep: #a0801f;
  --gold-glow: rgba(201, 162, 74, 0.18);
  --line: #e5e2d8;
  --danger: #c03939;
  --radius: 10px;
  --space: clamp(0.75rem, 2vw, 1.25rem);
  --maxw: 720px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  isolation: isolate;
  background: url('/img/hero-summer-topology.jpg') center / cover no-repeat;
  color: #0a0a0a;
  padding: clamp(2.25rem, 7vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  border-bottom: 3px solid var(--gold);
}
.hero-panel {
  background: rgba(232, 230, 224, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.hero .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.brand-mark {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #faf3df;
  flex: 0 0 auto;
}
.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  font-weight: 700;
}
.brand-name .x {
  color: var(--gold-deep);
  font-weight: 700;
  margin: 0 0.25em;
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #0a0a0a;
  letter-spacing: -0.01em;
}
.hero .lede {
  margin: 0;
  max-width: 60ch;
  color: #0a0a0a;
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

/* ---- CARDS / SECTIONS ---- */
main.container {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin: 0 0 1rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p { margin: 0.4rem 0 1rem; }
.muted { color: var(--muted); }
.muted-inline { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.small { font-size: 0.85rem; }

/* ---- FIELDS ---- */
label {
  display: block;
  margin: 0 0 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
label > input,
label > textarea,
.card textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}
.card textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
input:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 540px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ---- CHECKBOX PICKER ---- */
.picker {
  list-style: none;
  margin: 0.5rem 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.pick {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  transition: border-color .15s, background .15s;
  min-height: 56px;
}
.pick:hover { border-color: var(--gold); }
.pick input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--gold-deep);
  cursor: pointer;
  margin-top: 2px;
}
.pick input[type="checkbox"]:checked + span {
  color: var(--ink);
}
.pick:has(input:checked) {
  border-color: var(--gold);
  background: #fffbef;
}
.pick > span { display: block; }
.pick strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: var(--ink);
}
.pick small {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- "Other" DETAILS ---- */
details.other-detail {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
}
details.other-detail summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gold-deep);
  font-weight: 600;
  padding: 0.4rem 0;
  list-style: none;
  outline: none;
}
details.other-detail summary::-webkit-details-marker { display: none; }
details.other-detail summary::before {
  content: "+ ";
  font-weight: 700;
}
details[open] summary::before { content: "− "; }
details.other-detail textarea { margin-top: 0.5rem; }

/* ---- SUBMIT ---- */
.submit-card {
  text-align: center;
  background: linear-gradient(180deg, #fffbef 0%, #fff 100%);
  border-color: var(--gold);
}
.summary {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.btn-primary {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  background: var(--ink);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 52px;
  transition: background .15s, color .15s, transform .05s;
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: progress; }

/* ---- ERROR ---- */
.error, .error-inline {
  color: var(--danger);
}
.error {
  background: #fff3f3;
  border: 1px solid #f3c2c2;
  border-radius: var(--radius);
  padding: 1rem;
}
.error-inline {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* ---- DONE CARD ---- */
.done-card {
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
}
.done-card h2 {
  font-size: 1.7rem;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
}

/* ---- FOOTER ---- */
.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer a { color: var(--gold-deep); }

/* Small-phone polish */
@media (max-width: 380px) {
  body { font-size: 16px; }
  .pick { padding: 0.65rem 0.75rem; }
  .card { padding: 0.85rem; }
}
