:root {
  --ivory: #fbf7f0;
  --linen: #f5eee2;
  --champagne: #ede1cc;
  --stone: #d8c9ae;
  --olive: #4a5233;
  --olive-dark: #363d25;
  --gold: #a9812f;
  --charcoal: #2b271f;
  --charcoal-soft: #625a4c;
  --white: #fff;
  --error: #9e3f32;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.consultation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.form-panel {
  min-width: 0;
  background:
    radial-gradient(circle at 0 0, rgba(188, 154, 85, 0.1), transparent 26rem),
    var(--ivory);
}

.form-shell {
  width: min(100%, 780px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px clamp(28px, 6vw, 80px) 38px;
  display: flex;
  flex-direction: column;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Fraunces", serif;
  font-size: 17px;
  letter-spacing: 0.15em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.brand strong {
  color: var(--gold);
  font-weight: 400;
}

.back-home {
  color: var(--charcoal-soft);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: color 180ms ease;
}

.back-home:hover,
.back-home:focus-visible {
  color: var(--olive);
}

.progress-wrap {
  margin-top: clamp(42px, 7vh, 76px);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--charcoal-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(43, 39, 31, 0.13);
}

.progress-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--gold);
  transition: width 380ms cubic-bezier(.22, .61, .36, 1);
}

form {
  margin-top: clamp(38px, 6vh, 58px);
}

.form-step {
  animation: step-in 420ms cubic-bezier(.22, .61, .36, 1);
}

.form-step[hidden],
.success-state[hidden] {
  display: none;
}

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

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.intro h1,
.intro h2,
.success-state h2 {
  margin-top: 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(37px, 4.2vw, 55px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.intro h2 {
  font-size: clamp(34px, 3.7vw, 49px);
}

.intro em,
.success-state em {
  color: var(--olive);
  font-weight: 300;
}

.intro > p:last-child,
.success-state > p:not(.eyebrow) {
  max-width: 570px;
  margin-top: 15px;
  color: var(--charcoal-soft);
  font-size: 15px;
  line-height: 1.7;
}

.field-grid {
  display: grid;
  gap: 23px;
  margin-top: 34px;
}

.field-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.field label {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.field label span,
.consent-row strong {
  color: var(--gold);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(43, 39, 31, 0.22);
  border-radius: 2px;
  outline: none;
  background: rgba(255, 255, 255, 0.45);
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input,
.field select {
  min-height: 49px;
  padding: 0 14px;
}

.field textarea {
  min-height: 98px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #998f7f;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(43, 39, 31, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 82, 51, 0.1);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--charcoal-soft);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--olive);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.actions-end {
  justify-content: flex-end;
}

.button {
  min-height: 50px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: 0 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(169, 129, 47, 0.35);
  outline-offset: 3px;
}

.button-primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--olive);
  background: var(--olive);
}

.button-secondary {
  border-color: rgba(43, 39, 31, 0.22);
  background: transparent;
  color: var(--charcoal);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--charcoal);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-error {
  margin-top: 22px;
  border-left: 2px solid var(--error);
  padding: 10px 14px;
  background: rgba(158, 63, 50, 0.07);
  color: #7c3027;
  font-size: 14px;
  line-height: 1.55;
}

.success-state {
  margin: auto 0;
  padding: 72px 0;
  animation: step-in 500ms cubic-bezier(.22, .61, .36, 1);
}

.success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 27px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--olive);
  font-family: "Fraunces", serif;
  font-size: 24px;
}

.success-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.text-link {
  border-bottom: 1px solid var(--olive);
  color: var(--olive);
  font-size: 14px;
}

.form-footnote {
  margin-top: auto;
  padding-top: 36px;
  color: #837a6d;
  font-size: 12px;
}

.image-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--olive-dark);
}

.image-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 22, 14, 0.04), rgba(21, 22, 14, 0.62)),
    linear-gradient(90deg, rgba(28, 27, 20, 0.08), transparent 60%);
}

.image-copy {
  position: absolute;
  right: clamp(30px, 5vw, 74px);
  bottom: clamp(38px, 7vh, 76px);
  left: clamp(30px, 5vw, 74px);
  max-width: 500px;
  color: var(--white);
}

.image-copy .eyebrow {
  color: #f1dfb9;
}

.image-copy blockquote {
  margin-top: 17px;
  font-family: "Fraunces", serif;
  font-size: clamp(27px, 3vw, 43px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.22;
}

.image-copy span {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .consultation-layout {
    display: block;
  }

  .image-panel {
    position: relative;
    height: 52vh;
    min-height: 420px;
  }

  .form-shell {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .form-shell {
    padding: 24px 20px 30px;
  }

  .back-home {
    font-size: 0;
  }

  .back-home span {
    font-size: 22px;
  }

  .progress-wrap {
    margin-top: 38px;
  }

  form {
    margin-top: 34px;
  }

  .field-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    min-width: 0;
    flex: 1;
    padding: 0 19px;
  }

  .actions-end .button {
    flex: 0 1 auto;
  }

  .success-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-panel {
    height: 430px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
