:root {
  --bg: #f8f1e6;
  --panel: rgba(255, 251, 245, 0.94);
  --panel-border: rgba(71, 53, 34, 0.12);
  --text: #2d2318;
  --muted: #6a5742;
  --accent: #0f5d4f;
  --accent-soft: #d9efe8;
  --accent-gold: #bd8a2e;
  --accent-gold-soft: rgba(189, 138, 46, 0.14);
  --shadow: 0 24px 70px rgba(46, 31, 16, 0.13);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 190, 119, 0.35), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15, 93, 79, 0.16), transparent 22%),
    linear-gradient(180deg, #fcf7f0 0%, #f3e8d7 100%);
  overflow-x: hidden;
}

.intake-shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 30px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
}

.intake-sidebar,
.intake-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.intake-sidebar {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(244, 233, 214, 0.9)),
    linear-gradient(135deg, rgba(15, 93, 79, 0.04), transparent);
}

.sidebar-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.5;
  font-style: italic;
}

.intake-sidebar h1,
.intake-panel h2,
.form-step h3,
.sidebar-panel-title {
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--muted);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-lockup.compact {
  margin-bottom: 14px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(44, 28, 12, 0.12));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--muted);
}

.sidebar-copy,
.step-copy,
.intake-message {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sidebar-panel {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(71, 53, 34, 0.08);
}

.sidebar-panel-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.sidebar-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-panel-copy {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.sidebar-quote {
  margin: 6px 0 0;
  padding: 18px 20px;
  border-left: 3px solid rgba(189, 138, 46, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  color: #5e4934;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.step-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(106, 87, 66, 0.08);
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.step-item.active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.85));
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(15, 93, 79, 0.12);
  transform: translateX(4px);
}

.step-item.completed {
  background: linear-gradient(135deg, rgba(15, 93, 79, 0.12), rgba(255, 255, 255, 0.85));
  color: var(--accent);
  font-weight: 700;
  border-color: rgba(15, 93, 79, 0.12);
}

.intake-panel {
  padding: 26px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 10px;
}

.panel-intro {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.intake-panel .premium-badges {
  margin-top: 14px;
}

.premium-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 93, 79, 0.09);
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.premium-badge.warm {
  background: var(--accent-gold-soft);
  color: #805a12;
}

.intake-panel .workflow-note {
  margin: 14px 0 18px;
}

.workflow-note,
.privacy-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 93, 79, 0.07);
  border: 1px solid rgba(15, 93, 79, 0.1);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.workflow-note p,
.privacy-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.workflow-note.soft {
  background: rgba(189, 138, 46, 0.08);
}

.progress-strip {
  margin: 18px 0 8px;
  display: grid;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(106, 87, 66, 0.12);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), #15715f);
  box-shadow: 0 8px 18px rgba(15, 93, 79, 0.18);
  transition: width 220ms ease;
}

.progress-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.draft-banner {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 93, 79, 0.07);
  border: 1px solid rgba(15, 93, 79, 0.10);
  color: #4d5f56;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.draft-banner.saved {
  background: rgba(15, 93, 79, 0.12);
  border-color: rgba(15, 93, 79, 0.18);
  color: var(--accent);
}

.admin-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.intake-form {
  display: grid;
  gap: 14px;
}

.form-step {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0 10px;
  animation: fade-in 180ms ease;
}

.form-step.active {
  display: grid;
}

.form-step > h3,
.form-step > .step-copy,
.form-step > .workflow-note {
  grid-column: 1 / -1;
}

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

.conditional-followup {
  grid-column: 1 / -1;
  margin-top: -6px;
}

.social-group-title {
  margin-bottom: 10px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

label small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.field-heading {
  display: inline;
}

.required-marker,
.optional-marker {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.08em;
}

.required-marker {
  color: #7d2c21;
}

.optional-marker {
  color: var(--muted);
}

.checkbox-field {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(71, 53, 34, 0.15);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fffdf9;
  color: var(--text);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 93, 79, 0.10);
}

input.field-error,
select.field-error,
textarea.field-error {
  border-color: #932f1f;
  box-shadow: 0 0 0 4px rgba(147, 47, 31, 0.10);
}

.step-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(71, 53, 34, 0.08);
}

.step-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #15715f);
  color: white;
}

.secondary-button {
  background: var(--accent-gold-soft);
  color: #805a12;
}

.hidden {
  display: none;
}

.intake-message {
  min-height: 1.5rem;
  margin-top: 12px;
}

.intake-message.success {
  color: var(--accent);
}

.intake-message.pending {
  color: #805a12;
}

.intake-message.error {
  color: #932f1f;
}

.success-panel {
  margin-top: 18px;
  padding: 30px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 93, 79, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(243, 234, 220, 0.95));
  border: 1px solid rgba(71, 53, 34, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.success-hero {
  max-width: 64ch;
}

.success-panel h3 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.success-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.success-note {
  margin-top: 14px;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.success-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(71, 53, 34, 0.08);
}

.success-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.success-card p {
  margin: 0;
}

.success-card-featured {
  background:
    radial-gradient(circle at top right, rgba(15, 93, 79, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(245, 236, 223, 0.92));
}

.success-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.success-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 93, 79, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.success-link:hover,
.success-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(15, 93, 79, 0.14);
  box-shadow: 0 10px 20px rgba(15, 93, 79, 0.10);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .intake-sidebar,
  .intake-panel {
    padding: 22px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .form-step {
    grid-template-columns: 1fr;
  }

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

  .step-footer,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .step-footer-right {
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .intake-shell {
    width: min(100vw - 16px, 1240px);
    padding-top: 10px;
  }

  .intake-sidebar,
  .intake-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .brand-lockup,
  .brand-lockup.compact {
    align-items: flex-start;
  }

  .brand-copy,
  .panel-header,
  .step-footer-right {
    min-width: 0;
  }

  .intake-sidebar h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .intake-panel h2,
  .success-panel h3 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-subtitle,
  .eyebrow,
  .progress-caption,
  #step-counter {
    font-size: 0.78rem;
  }

  .step-footer-right,
  .step-footer-right button,
  .step-footer button {
    width: 100%;
  }

  .progress-strip {
    margin-top: 14px;
  }

  .step-item.active {
    transform: none;
  }

  .success-panel {
    padding: 22px;
  }

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