.investment-survey-page {
  margin: 0;
  background: #f3f6fb;
  color: var(--ra-body-text, #1a2231);
  font-family: var(--ra-body-font, "Manrope"), sans-serif;
}

.survey-main {
  min-height: 70vh;
}

.survey-shell {
  width: min(100% - 2rem, 940px);
  margin-inline: auto;
}

.survey-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--ra-brand-secondary, #9f7b44) 30%, transparent), transparent 28rem),
    linear-gradient(135deg, #0c1119, #161d27 68%, #20252c);
  color: #fff;
  text-align: center;
}

.survey-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ra-brand-accent, #c29a5b), transparent);
  content: "";
  opacity: 0.8;
}

.survey-kicker {
  margin: 0 0 0.85rem;
  color: color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 82%, #fff);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.survey-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
  line-height: 1.04;
}

.survey-subtitle {
  margin: 0.6rem 0 0;
  color: color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 72%, #fff);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.survey-intro {
  max-width: 720px;
  margin: 1.5rem auto 0;
  color: #d6dce5;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.75;
}

.survey-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: #e5e9ef;
  font-size: 0.88rem;
  font-weight: 650;
}

.survey-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(-2.5rem, -4vw, -3.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.survey-form,
.survey-success {
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid #dce4ee;
  border-radius: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 24px 65px rgb(20 32 52 / 12%);
}

.survey-progress {
  display: none;
  margin-bottom: 2rem;
}

.survey-form.is-enhanced .survey-progress {
  display: block;
}

.survey-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.survey-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf4;
}

.survey-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ra-brand-primary, #161d27), var(--ra-brand-accent, #c29a5b));
  transition: width 220ms ease;
}

.survey-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-form.is-enhanced .survey-step[hidden] {
  display: none;
}

.survey-step > legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 0 1.6rem;
  color: var(--ra-heading-text, #111827);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
}

.survey-step > legend span {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ra-brand-primary, #111827);
  color: #fff;
  font-family: var(--ra-body-font, "Manrope"), sans-serif;
  font-size: 0.77rem;
  letter-spacing: 0.05em;
}

.survey-question {
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid #e8edf4;
}

.survey-question:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.survey-question h2,
.survey-contact-intro h2 {
  margin: 0 0 0.85rem;
  color: #172033;
  font-size: clamp(1rem, 2.5vw, 1.13rem);
  font-weight: 800;
  line-height: 1.45;
}

.survey-question-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.survey-choice-count {
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
}

.survey-help {
  margin: -0.45rem 0 0.9rem;
  color: #64748b;
  font-size: 0.88rem;
}

.survey-options > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.survey-options > div > div {
  min-width: 0;
}

.survey-options label {
  display: flex;
  min-height: 100%;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fbfcfe;
  color: #334155;
  cursor: pointer;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.45;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.survey-options label:hover {
  border-color: color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 65%, #dbe3ed);
  background: color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 6%, #fff);
  transform: translateY(-1px);
}

.survey-options label:has(input:checked) {
  border-color: var(--ra-brand-accent, #c29a5b);
  background: color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 10%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 14%, transparent);
}

.survey-options input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--ra-brand-primary, #172033);
}

.survey-text-label,
.survey-text-field label {
  display: block;
  margin: 1rem 0 0.45rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.survey-question > input[type="text"],
.survey-text-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd8e5;
  border-radius: 11px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.survey-question > input[type="text"]:focus,
.survey-text-field input:focus {
  border-color: var(--ra-brand-accent, #c29a5b);
  outline: 3px solid color-mix(in srgb, var(--ra-brand-accent, #c29a5b) 15%, transparent);
}

.survey-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8edf4;
}

.survey-turnstile {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
  min-height: 65px;
}

.survey-step-actions [data-survey-next],
.survey-step-actions [data-survey-prev] {
  display: none;
}

.survey-form.is-enhanced .survey-step-actions [data-survey-next],
.survey-form.is-enhanced .survey-step-actions [data-survey-prev] {
  display: inline-flex;
}

.survey-primary-btn,
.survey-secondary-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.survey-primary-btn {
  background: #111820;
  color: #fff;
  box-shadow: 0 10px 24px rgb(17 24 32 / 18%);
}

.survey-primary-btn:hover {
  background: #26313d;
}

.survey-secondary-btn {
  border-color: #d6dee9;
  background: #fff;
  color: #334155;
}

.survey-contact-intro {
  margin-bottom: 1.3rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #f6f8fb;
}

.survey-contact-intro h2 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
}

.survey-contact-intro p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.survey-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.survey-text-field--wide {
  grid-column: 1 / -1;
}

.survey-text-field label {
  margin-top: 0;
}

.survey-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  background: #f9fafc;
}

.survey-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  accent-color: var(--ra-brand-primary, #172033);
}

.survey-consent label {
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.55;
}

.survey-field-error {
  grid-column: 1 / -1;
  margin: 0.55rem 0 0;
  color: #b42318;
  font-size: 0.83rem;
  font-weight: 700;
}

.has-error .survey-options label,
.has-error input {
  border-color: #f1aaa4;
}

.survey-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.survey-alert.is-error {
  border: 1px solid #f3b8b3;
  background: #fff2f0;
  color: #9f261d;
}

.survey-success {
  max-width: 700px;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
}

.survey-success-icon {
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ef;
  color: #18864b;
  font-size: 1.7rem;
}

.survey-success h2 {
  margin: 0 0 1rem;
  color: #172033;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.survey-success > p:not(.survey-kicker) {
  max-width: 590px;
  margin: 0.7rem auto;
  color: #64748b;
  line-height: 1.7;
}

.survey-success .survey-primary-btn {
  margin-top: 1.2rem;
}

body.investment-survey-page .site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

@media (max-width: 680px) {
  .survey-shell {
    width: min(100% - 1rem, 940px);
  }

  .survey-hero {
    padding-inline: 0.5rem;
  }

  .survey-form,
  .survey-success {
    border-radius: 18px;
  }

  .survey-options > div,
  .survey-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .survey-text-field--wide {
    grid-column: auto;
  }

  .survey-question-heading {
    display: block;
  }

  .survey-choice-count {
    display: inline-block;
    margin-bottom: 0.75rem;
  }

  .survey-step-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-step-actions > :only-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-progress-track span,
  .survey-options label {
    transition: none;
  }
}
