.xcope-gfn {
  --gfn-bg: #ffffff;
  --gfn-surface: #fcfcfc;
  --gfn-surface-strong: #f7f7f7;
  --gfn-border: rgba(19, 22, 47, 0.10);
  --gfn-border-strong: rgba(19, 22, 47, 0.18);
  --gfn-text: #151b1f;
  --gfn-text-soft: #737373;
  --gfn-primary: #13162f;
  --gfn-primary-hover: #101015;
  --gfn-accent: #fcce73;
  --gfn-accent-strong: #f9b11c;
  --gfn-radius: 22px;
  color: var(--gfn-text);
  box-sizing: border-box;
}

.xcope-gfn *,
.xcope-gfn *::before,
.xcope-gfn *::after {
  box-sizing: border-box;
}

.xcope-gfn__intro {
  max-width: 940px;
  margin: 0 auto 28px;
  text-align: center;
}

.xcope-gfn__eyebrow,
.xcope-gfn__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(249, 177, 28, 0.14);
  border: 1px solid rgba(249, 177, 28, 0.28);
  color: var(--gfn-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.xcope-gfn__intro h2,
.xcope-gfn__section-head h3,
.xcope-gfn__panel h3,
.xcope-gfn__cta h3,
.xcope-gfn__form-wrap h3 {
  color: var(--gfn-text);
  margin: 12px 0 10px;
  line-height: 1.15;
}

.xcope-gfn__intro h2 {
  font-size: clamp(30px, 5vw, 54px);
}

.xcope-gfn__intro p,
.xcope-gfn__section-head p,
.xcope-gfn__cta p,
.xcope-gfn__step-detail > p {
  color: var(--gfn-text-soft);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.xcope-gfn__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.xcope-gfn__panel,
.xcope-gfn__cta {
  background: #ffffff;
  border: 1px solid var(--gfn-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: none;
}

.xcope-gfn__section-head {
  margin-bottom: 18px;
}

.xcope-gfn__section-head--center {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.xcope-gfn__section-head h3,
.xcope-gfn__panel h3,
.xcope-gfn__cta h3,
.xcope-gfn__form-wrap h3 {
  font-size: clamp(22px, 3vw, 32px);
}

.xcope-gfn__scenario-list {
  display: grid;
  gap: 12px;
}

.xcope-gfn__scenario,
.xcope-gfn__step {
  appearance: none;
  width: 100%;
  border: 1px solid var(--gfn-border);
  background: #fff;
  color: var(--gfn-text);
  text-align: left;
  cursor: pointer;
  border-radius: 18px;
  padding: 16px;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.xcope-gfn__scenario span,
.xcope-gfn__step strong {
  display: block;
  color: var(--gfn-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.xcope-gfn__scenario small,
.xcope-gfn__step small {
  display: block;
  color: var(--gfn-text-soft);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 6px;
}

.xcope-gfn__scenario:hover,
.xcope-gfn__step:hover,
.xcope-gfn__scenario.is-active,
.xcope-gfn__step.is-active {
  border-color: rgba(249, 177, 28, 0.62);
  background: #fcfaf5;
}

.xcope-gfn__panel--insight {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.xcope-gfn__insight-block {
  border-top: 1px solid var(--gfn-border);
  padding-top: 16px;
  margin-top: 16px;
}

.xcope-gfn__insight-block strong,
.xcope-gfn__step-detail-grid strong {
  display: block;
  color: var(--gfn-primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.xcope-gfn__insight-block p,
.xcope-gfn__step-detail-grid p {
  color: var(--gfn-text-soft);
  line-height: 1.7;
  margin: 0;
}

.xcope-gfn__before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.xcope-gfn__before-after > div {
  background: #fafafa;
  border: 1px solid var(--gfn-border);
  border-radius: 18px;
  padding: 18px;
}

.xcope-gfn__before-after h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--gfn-text);
}

.xcope-gfn__before-after ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.xcope-gfn__before-after li {
  position: relative;
  padding-left: 18px;
  color: var(--gfn-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.xcope-gfn__before-after li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gfn-accent-strong);
}

.xcope-gfn__process {
  margin-bottom: 22px;
}

.xcope-gfn__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.xcope-gfn__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--gfn-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.xcope-gfn__step.is-active span,
.xcope-gfn__step:hover span {
  background: var(--gfn-accent-strong);
}

.xcope-gfn__step-detail {
  border: 1px solid var(--gfn-border);
  border-radius: 22px;
  background: var(--gfn-surface);
  padding: 22px;
}

.xcope-gfn__step-detail h4 {
  margin: 0 0 8px;
  color: var(--gfn-text);
  font-size: clamp(20px, 3vw, 28px);
}

.xcope-gfn__step-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.xcope-gfn__step-detail-grid > div {
  background: #fff;
  border: 1px solid var(--gfn-border);
  border-radius: 18px;
  padding: 18px;
}

.xcope-gfn__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  background: #fcfaf5;
  border-color: rgba(249, 177, 28, 0.28);
}

.xcope-gfn__cta-text {
  max-width: 760px;
}

.xcope-gfn__button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--gfn-primary);
  color: #fff;
  cursor: pointer;
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.xcope-gfn__button:hover,
.xcope-gfn__button:focus {
  background: var(--gfn-primary-hover);
  color: #fff;
}

.xcope-gfn__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.xcope-gfn__form-wrap[hidden] {
  display: none !important;
}

.xcope-gfn__selected {
  border: 1px solid rgba(249, 177, 28, 0.28);
  background: #fcfaf5;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--gfn-text);
}

.xcope-gfn__selected strong {
  color: var(--gfn-primary);
}

.xcope-gfn__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.xcope-gfn__form label span,
.xcope-gfn__consent span {
  display: block;
  font-size: 13px;
  color: var(--gfn-text);
  font-weight: 700;
  margin-bottom: 8px;
}

.xcope-gfn__form input,
.xcope-gfn__form textarea {
  width: 100%;
  border: 1px solid var(--gfn-border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--gfn-text);
  min-height: 48px;
  padding: 11px 14px;
  font-size: 15px;
  box-shadow: none;
}

.xcope-gfn__form textarea {
  min-height: 118px;
  resize: vertical;
}

.xcope-gfn__form input:focus,
.xcope-gfn__form textarea:focus,
.xcope-gfn__scenario:focus,
.xcope-gfn__step:focus,
.xcope-gfn__button:focus {
  outline: 2px solid rgba(249, 177, 28, 0.55);
  outline-offset: 2px;
}

.xcope-gfn__form input.is-invalid,
.xcope-gfn__form textarea.is-invalid {
  border-color: #b91c1c;
}

.xcope-gfn__form-full {
  grid-column: 1 / -1;
}

.xcope-gfn__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
}

.xcope-gfn__consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.xcope-gfn__consent span {
  margin: 0;
  color: var(--gfn-text-soft);
  line-height: 1.55;
}

.xcope-gfn__form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.xcope-gfn__message {
  color: var(--gfn-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.xcope-gfn__message.is-success {
  color: #047857;
}

.xcope-gfn__message.is-error {
  color: #b91c1c;
}

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


/* Mobile readability fixes - v1.0.1 */
.xcope-gfn__scenario,
.xcope-gfn__step,
.xcope-gfn__scenario span,
.xcope-gfn__scenario small,
.xcope-gfn__step strong,
.xcope-gfn__step small,
.xcope-gfn__step-detail h4,
.xcope-gfn__step-detail p {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.xcope-gfn__step span {
  flex: 0 0 38px;
  min-width: 38px;
  max-width: 38px;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .xcope-gfn__grid,
  .xcope-gfn__before-after,
  .xcope-gfn__step-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .xcope-gfn__panel,
  .xcope-gfn__cta {
    padding: 20px;
    border-radius: 20px;
  }

  .xcope-gfn__steps,
  .xcope-gfn__form-grid {
    grid-template-columns: 1fr;
  }

  .xcope-gfn__scenario {
    display: block !important;
    padding: 17px 16px;
  }

  .xcope-gfn__scenario span,
  .xcope-gfn__scenario small {
    display: block !important;
    width: 100%;
    max-width: none;
  }

  .xcope-gfn__scenario span {
    font-size: 15px;
    line-height: 1.28;
  }

  .xcope-gfn__scenario small {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
  }

  .xcope-gfn__step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 16px;
  }

  .xcope-gfn__step span {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    margin: 0;
    border-radius: 12px;
    font-size: 13px;
  }

  .xcope-gfn__step strong,
  .xcope-gfn__step small {
    min-width: 0;
  }

  .xcope-gfn__step strong {
    line-height: 1.28;
  }

  .xcope-gfn__step small {
    line-height: 1.55;
    margin-top: 2px;
  }

  .xcope-gfn__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .xcope-gfn__button {
    width: 100%;
  }
}
