/* =========================================================
   WEB INTAKE — CLIENT-FACING CLEAN VERSION
========================================================= */

:root {
  --cream: #fff8ea;
  --cream-soft: #f4efe3;
  --panel: rgba(255, 248, 234, 0.92);
  --line: rgba(15, 118, 110, 0.20);
  --text: #052f2d;
  --muted: #657873;
  --brand: #0f766e;
  --brand-dark: #063f3b;
  --brand-deep: #032b29;
  --accent: #18d7c8;
  --accent2: #28f0b6;
  --soft: rgba(15, 118, 110, 0.08);
  --shadow: 0 18px 42px rgba(3, 43, 41, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 215, 200, 0.16), transparent 32%),
    linear-gradient(180deg, #ecfaf6, var(--cream));
  line-height: 1.5;
}

.wrap {
  width: min(var(--max), 94vw);
  margin: 0 auto;
  padding: 28px 0 52px;
}

.hero {
  margin-bottom: 18px;
  padding: 30px;
  border-radius: 28px;
  color: var(--cream);
  background:
    radial-gradient(circle at 80% 12%, rgba(24, 215, 200, 0.28), transparent 30%),
    linear-gradient(135deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: rgba(255, 248, 234, 0.92);
  font-weight: 900;
  text-decoration: none;
}

.eyebrow,
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  color: #e9fffb;
  background: rgba(255, 255, 255, 0.13);
}

.pill {
  color: var(--brand);
  background: rgba(15, 118, 110, 0.09);
  margin-bottom: 10px;
}

.hero h1 {
  max-width: 780px;
  margin: 14px 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero p {
  margin: 0;
  max-width: 74ch;
  color: rgba(255, 248, 234, 0.86);
  font-size: 1.04rem;
  font-weight: 650;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

h2,
h3 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

h2 { font-size: 1.05rem; }
h3 { font-size: 0.98rem; }

.section { margin-top: 22px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

label {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid rgba(15, 118, 110, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-weight: 800;
}

.check input {
  width: auto;
  margin-top: 3px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #022b28;
}

.btn-email {
  background: rgba(24, 215, 200, 0.12);
  color: var(--brand-dark);
  border: 1px solid rgba(24, 215, 200, 0.32);
}

.btn-soft {
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-dark);
}

.output {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #092f2c;
}

.note,
.success {
  padding: 13px 15px;
  border-radius: 14px;
  margin-top: 14px;
}

.note {
  background: rgba(255, 248, 234, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--muted);
}

.success {
  display: none;
  background: #ecfbf3;
  border: 1px solid #bfe6cf;
  color: #1e6a42;
}

@media (max-width: 920px) {
  .grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}
