:root {
  --ink: #183126;
  --ink-soft: #53645d;
  --forest: #24493a;
  --forest-deep: #17382d;
  --sage: #dbe6df;
  --sage-light: #f1f5f1;
  --clay: #b66d4f;
  --clay-deep: #9d573d;
  --cream: #f7f3eb;
  --paper: #fffdf9;
  --line: #dce2dc;
  --danger: #a24436;
  --shadow: 0 22px 70px rgba(29, 54, 43, 0.09);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 0%, rgba(220, 231, 222, 0.48), transparent 33%),
    var(--cream);
}

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

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

.application-shell {
  display: grid;
  grid-template-columns: minmax(420px, 42%) 1fr;
  min-height: 100vh;
}

.story-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 42%;
  min-width: 420px;
  overflow: hidden;
  color: white;
}

.story-image,
.story-overlay {
  position: absolute;
  inset: 0;
}

.story-image {
  background-image: url("assets/surrogate-hero-green-dress.jpg");
  background-position: 53% center;
  background-size: cover;
  transform: scale(1.02);
}

.story-overlay {
  background:
    linear-gradient(180deg, rgba(15, 35, 27, 0.28) 0%, rgba(15, 35, 27, 0.1) 30%, rgba(15, 35, 27, 0.78) 78%, rgba(15, 35, 27, 0.9) 100%),
    linear-gradient(90deg, rgba(20, 45, 35, 0.38), transparent 68%);
}

.brand {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 42px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 48px;
  height: auto;
}

.brand-type {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand-type strong {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.brand-type small {
  margin-top: 3px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand--light .brand-type {
  color: white;
}

.story-content {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 42px;
  left: 42px;
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--clay-deep);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow--light {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow--light::before {
  width: 25px;
  height: 1px;
  background: currentColor;
  content: "";
}

blockquote {
  max-width: 570px;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.35rem, 3.25vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.99;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.77rem;
  font-weight: 600;
}

.trust-list span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg,
.privacy-line svg,
.save-state svg,
.button svg,
.success-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trust-list svg {
  width: 17px;
  height: 17px;
}

.support-note {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 27px;
  left: 42px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.support-note a {
  color: white;
  font-weight: 600;
  text-underline-offset: 3px;
}

.form-panel {
  grid-column: 2;
  min-height: 100vh;
  padding: 36px clamp(36px, 6vw, 96px) 42px;
}

.application-language-switcher {
  position: absolute;
  top: 28px;
  right: 34px;
  z-index: 5;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(36, 73, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 8px 26px rgba(24, 49, 38, 0.09);
  backdrop-filter: blur(12px);
}

.application-language-switcher a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
}

.application-language-switcher a:hover { background: var(--sage); }
.application-language-switcher a.active { background: var(--forest); color: white; }
.application-language-switcher a:focus-visible { outline: 3px solid rgba(182, 109, 79, 0.35); outline-offset: 2px; }

.form-wrap {
  width: min(680px, 100%);
  margin: 0 auto;
  padding-top: clamp(58px, 10vh, 96px);
}

.mobile-brand-row {
  display: block;
  height: 0;
}

.mobile-brand-row .brand--mobile { display: none; }

.save-state {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: #687c71;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.save-state.is-error {
  color: var(--danger);
}

.form-intro {
  margin-bottom: 30px;
}

.form-intro h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.75rem, 3.8vw, 3.95rem);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.form-intro p:last-child {
  max-width: 590px;
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.62;
}

.form-intro p:last-child strong {
  color: var(--forest-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 17px;
}

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

.field label,
.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.optional {
  color: #829087;
  font-size: 0.69rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d4dbd5;
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.91rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
  height: 50px;
  padding: 0 15px;
}

.field textarea {
  min-height: 92px;
  padding: 13px 15px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa59e;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9c5bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  background: white;
  box-shadow: 0 0 0 3px rgba(36, 73, 58, 0.1);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #c87d6b;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #d4dbd5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 160ms ease;
}

.radio-card input:checked + label {
  border-color: var(--forest);
  background: var(--sage-light);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.radio-card input:focus-visible + label {
  outline: 3px solid rgba(36, 73, 58, 0.17);
  outline-offset: 2px;
}

.conditional-field {
  animation: reveal 240ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -5px 0 2px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(219, 230, 223, 0.55);
  color: #556a5f;
  font-size: 0.73rem;
  line-height: 1.45;
}

.phase-complete-note {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid #cbd9cf;
  border-radius: 10px;
  background: #eef4ef;
  color: #556a5f;
  font-size: 0.74rem;
  line-height: 1.5;
}

.phase-complete-note span {
  display: inline-block;
  margin-right: 7px;
  color: var(--clay-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.phase-complete-note strong {
  color: var(--forest);
}

.field-reassurance {
  margin: 13px 0 0;
  color: #74837a;
  font-size: 0.7rem;
  line-height: 1.48;
}

.section-note svg {
  flex: 0 0 auto;
  width: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.photo-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 21px;
  border: 1.5px dashed #aebbb2;
  border-radius: 13px;
  background: rgba(239, 244, 240, 0.55);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.photo-drop:hover,
.photo-drop:focus-within {
  border-color: var(--forest);
  background: var(--sage-light);
}

.photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--forest);
  box-shadow: 0 5px 18px rgba(25, 55, 43, 0.09);
}

.photo-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.photo-copy strong,
.photo-copy span {
  display: block;
}

.photo-copy strong {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: 0.89rem;
}

.photo-copy span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-preview img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.consent label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.52;
}

.consent a {
  color: var(--forest);
  font-weight: 600;
}

.form-error {
  margin-top: 17px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f8eae5;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 27px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(36, 73, 58, 0.18);
  outline-offset: 3px;
}

.button--primary {
  min-width: 185px;
  padding: 0 22px;
  background: var(--forest);
  color: white;
  box-shadow: 0 8px 22px rgba(28, 63, 49, 0.18);
}

.button--primary:hover {
  background: var(--forest-deep);
  box-shadow: 0 10px 26px rgba(28, 63, 49, 0.24);
}

.button--primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button--back {
  padding: 0 16px;
  background: transparent;
  color: var(--forest);
}

.button svg {
  width: 17px;
  height: 17px;
}

.privacy-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 15px 0 0;
  color: #7d8c83;
  font-size: 0.68rem;
  text-align: right;
}

.privacy-line svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.privacy-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-screen {
  padding-top: min(10vh, 80px);
  text-align: center;
}

.success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
}

.success-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
}

.success-screen h1 {
  max-width: 570px;
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.success-screen > p:not(.eyebrow) {
  max-width: 540px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.success-summary {
  display: flex;
  max-width: 480px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  text-align: left;
}

.success-summary span {
  color: var(--ink-soft);
  font-size: 0.71rem;
  text-transform: uppercase;
}

.success-summary strong {
  max-width: 245px;
  font-size: 0.82rem;
  text-align: right;
}

@media (max-width: 1050px) {
  .application-shell {
    grid-template-columns: 360px 1fr;
  }

  .story-panel {
    width: 360px;
    min-width: 360px;
  }

  .form-panel {
    padding-right: 38px;
    padding-left: 38px;
  }

  .story-content,
  .brand,
  .support-note {
    right: 29px;
    left: 29px;
  }

  blockquote {
    font-size: 3rem;
  }
}

@media (max-width: 760px) {
  .application-shell {
    display: block;
  }

  .story-panel {
    display: none;
  }

  .form-panel {
    min-height: auto;
    padding: 0 20px 32px;
  }

  .mobile-brand-row {
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-brand-row img {
    width: 38px;
  }

  .brand--mobile {
    display: inline-flex !important;
    position: static;
    text-decoration: none;
  }

  .brand--mobile .brand-type {
    margin-left: 8px;
  }

  .brand--mobile .brand-type strong {
    font-size: 1.45rem;
  }

  .brand--mobile .brand-type small {
    font-size: 0.45rem;
  }

  .form-wrap {
    padding-top: 10px;
  }

  .application-language-switcher {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .form-intro h1 {
    font-size: 2.58rem;
  }


  .form-grid--prescreen {
    grid-template-columns: minmax(0, 1.7fr) minmax(90px, 0.8fr);
  }

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

  .form-actions {
    justify-content: space-between;
  }

  .button--primary {
    flex: 1;
    min-width: 0;
  }

  .privacy-line {
    justify-content: flex-start;
    text-align: left;
  }

}

@media (max-height: 760px) and (min-width: 761px) {
  .story-content {
    bottom: 66px;
  }

  .form-panel {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .form-intro {
    margin-bottom: 23px;
  }

  .form-intro h1 {
    font-size: 3.05rem;
  }

  .form-wrap {
    padding-top: 34px;
  }

  .field input,
  .field select {
    height: 46px;
  }

  .form-grid {
    gap: 15px;
  }
}

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