:root {
  --gs-navy: #071d3a;
  --gs-navy-2: #0b274a;
  --gs-blue: #143c68;
  --gs-gold: #c89b3c;
  --gs-gold-2: #e2b85a;
  --gs-cream: #f7f1e5;
  --gs-cream-2: #fbf8f1;
  --gs-white: #ffffff;
  --gs-ink: #142033;
  --gs-muted: #617086;
  --gs-line: rgba(10, 32, 65, 0.12);
  --gs-success: #0f7a5a;
  --gs-error: #a32929;
}

.gs-pfg-shell,
.gs-pfg-shell * {
  box-sizing: border-box;
}

.gs-pfg-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gs-ink);
  max-width: 1160px;
  margin: 0 auto 72px;
  padding: 0 18px;
}

.gs-pfg-form {
  position: relative;
  background: linear-gradient(180deg, var(--gs-cream-2) 0%, #ffffff 100%);
  border: 1px solid rgba(200, 155, 60, 0.28);
  border-radius: 32px;
  padding: 26px;
  box-shadow: 0 26px 90px rgba(7, 29, 58, 0.15);
  overflow: hidden;
}

.gs-pfg-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gs-gold), var(--gs-gold-2), var(--gs-blue));
}

.gs-pfg-card--intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(226, 184, 90, 0.32), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #06172f 0%, var(--gs-navy) 48%, var(--gs-blue) 100%);
  overflow: hidden;
}

.gs-pfg-card--intro::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  border: 44px solid rgba(226, 184, 90, 0.08);
}

.gs-pfg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(226, 184, 90, 0.45);
  color: #ffe6a2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gs-pfg-card--intro h2 {
  margin: 18px 0 14px;
  color: #fff;
  max-width: 860px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gs-pfg-card--intro p {
  margin: 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.64;
}

.gs-pfg-intro-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.gs-pfg-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--gs-navy) !important;
  background: linear-gradient(135deg, #f1ca6d, var(--gs-gold));
  text-decoration: none !important;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(200, 155, 60, 0.22);
}

.gs-pfg-mini-trust {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(226, 184, 90, 0.32);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.gs-pfg-mini-trust strong {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.gs-pfg-mini-trust span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.gs-pfg-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
}

.gs-pfg-progress__bar {
  flex: 1;
  height: 10px;
  background: rgba(7, 29, 58, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.gs-pfg-progress__bar span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gs-gold), var(--gs-blue));
  transition: width .25s ease;
}

.gs-pfg-progress__text {
  min-width: 120px;
  color: var(--gs-muted);
  font-size: 14px;
  text-align: right;
}

.gs-pfg-progress__text strong {
  color: var(--gs-navy);
}

.gs-pfg-step {
  display: none;
  background: #fff;
  border: 1px solid var(--gs-line);
  border-radius: 26px;
  padding: 28px;
}

.gs-pfg-step.is-active {
  display: block;
}

.gs-pfg-section-head {
  margin-bottom: 22px;
}

.gs-pfg-section-head > span,
.gs-pfg-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gs-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gs-pfg-section-head h3 {
  margin: 0 0 8px;
  color: var(--gs-navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.gs-pfg-section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--gs-muted);
  font-size: 16px;
  line-height: 1.58;
}

.gs-pfg-grid {
  display: grid;
  gap: 16px;
}

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

.gs-pfg-wide {
  grid-column: 1 / -1;
}

.gs-pfg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-pfg-field > span {
  color: var(--gs-navy);
  font-size: 13px;
  font-weight: 800;
}

.gs-pfg-field input,
.gs-pfg-field select,
.gs-pfg-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--gs-ink);
  background: var(--gs-cream-2);
  border: 1px solid rgba(7, 29, 58, 0.14);
  border-radius: 16px;
  outline: none;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.gs-pfg-field textarea {
  min-height: 118px;
  resize: vertical;
}

.gs-pfg-field input:focus,
.gs-pfg-field select:focus,
.gs-pfg-field textarea:focus {
  border-color: rgba(200, 155, 60, 0.9);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.14);
}

.gs-pfg-field .is-invalid,
.gs-pfg-field input.is-invalid,
.gs-pfg-field select.is-invalid,
.gs-pfg-field textarea.is-invalid {
  border-color: var(--gs-error) !important;
  box-shadow: 0 0 0 4px rgba(163, 41, 41, 0.12) !important;
}

.gs-pfg-matrix {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.gs-pfg-matrix__row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gs-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--gs-cream-2) 100%);
}

.gs-pfg-matrix__question {
  color: var(--gs-navy);
  font-weight: 800;
  line-height: 1.35;
}

.gs-pfg-matrix__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gs-pfg-matrix__options label {
  cursor: pointer;
}

.gs-pfg-matrix__options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gs-pfg-matrix__options span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid rgba(7, 29, 58, 0.13);
  border-radius: 999px;
  color: var(--gs-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  transition: all .18s ease;
}

.gs-pfg-matrix__options input:checked + span {
  color: #fff;
  background: var(--gs-navy);
  border-color: var(--gs-navy);
  box-shadow: 0 10px 22px rgba(7, 29, 58, 0.16);
}

.gs-pfg-details,
.gs-pfg-module {
  margin: 18px 0;
  border: 1px solid var(--gs-line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}

.gs-pfg-details > summary,
.gs-pfg-module > summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--gs-navy);
  background: linear-gradient(90deg, rgba(200, 155, 60, 0.13), rgba(7, 29, 58, 0.04));
  font-weight: 900;
}

.gs-pfg-details > .gs-pfg-grid,
.gs-pfg-module > .gs-pfg-grid {
  padding: 20px;
}

.gs-pfg-repeat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gs-pfg-repeat-card {
  padding: 16px;
  border: 1px solid var(--gs-line);
  border-radius: 22px;
  background: var(--gs-cream-2);
}

.gs-pfg-repeat-card h4 {
  margin: 0 0 14px;
  color: var(--gs-navy);
  font-size: 17px;
}

.gs-pfg-repeat-card .gs-pfg-field {
  margin-bottom: 12px;
}


.gs-pfg-field-note {
  display: block;
  margin-top: 8px;
  color: var(--gs-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gs-pfg-note {
  margin: 22px 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.24);
  color: var(--gs-ink);
  line-height: 1.55;
}

.gs-pfg-consent {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid var(--gs-line);
  border-radius: 18px;
  background: var(--gs-cream-2);
}

.gs-pfg-consent label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  line-height: 1.55;
}

.gs-pfg-consent a {
  color: var(--gs-blue);
  font-weight: 800;
}

.gs-pfg-submit,
.gs-pfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: var(--gs-navy);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.gs-pfg-submit {
  margin-top: 16px;
  min-width: 210px;
  color: var(--gs-navy);
  background: linear-gradient(135deg, #f1ca6d, var(--gs-gold));
  box-shadow: 0 18px 34px rgba(200, 155, 60, 0.22);
}

.gs-pfg-btn:hover,
.gs-pfg-submit:hover {
  transform: translateY(-1px);
}

.gs-pfg-btn[disabled],
.gs-pfg-submit[disabled] {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.gs-pfg-btn--ghost {
  color: var(--gs-navy);
  background: transparent;
  border: 1px solid rgba(7, 29, 58, 0.16);
}

.gs-pfg-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.gs-pfg-alert {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 800;
}

.gs-pfg-alert--success {
  color: var(--gs-success);
  background: rgba(15, 122, 90, 0.10);
  border: 1px solid rgba(15, 122, 90, 0.22);
}

.gs-pfg-alert--error {
  color: var(--gs-error);
  background: rgba(163, 41, 41, 0.10);
  border: 1px solid rgba(163, 41, 41, 0.22);
}

.gs-pfg-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 980px) {
  .gs-pfg-card--intro,
  .gs-pfg-matrix__row {
    grid-template-columns: 1fr;
  }

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

  .gs-pfg-matrix__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gs-pfg-shell {
    padding: 0 10px;
  }

  .gs-pfg-form {
    padding: 16px;
    border-radius: 24px;
  }

  .gs-pfg-card--intro {
    padding: 26px;
    border-radius: 22px;
  }

  .gs-pfg-grid.two,
  .gs-pfg-repeat-grid {
    grid-template-columns: 1fr;
  }

  .gs-pfg-progress {
    align-items: stretch;
    flex-direction: column;
  }

  .gs-pfg-progress__text {
    text-align: left;
  }

  .gs-pfg-step {
    padding: 20px;
    border-radius: 20px;
  }

  .gs-pfg-matrix__options {
    grid-template-columns: 1fr;
  }

  .gs-pfg-nav {
    flex-direction: column-reverse;
  }

  .gs-pfg-btn,
  .gs-pfg-submit {
    width: 100%;
  }
}
