.xcope-gsa {
  --xgsa-bg: #ffffff;
  --xgsa-surface: #fcfcfc;
  --xgsa-surface-strong: #f7f7f7;
  --xgsa-border: rgba(19, 22, 47, 0.12);
  --xgsa-border-strong: rgba(19, 22, 47, 0.20);
  --xgsa-text: #151b1f;
  --xgsa-text-soft: #737373;
  --xgsa-primary: #13162f;
  --xgsa-primary-hover: #101015;
  --xgsa-accent: #f9b11c;
  --xgsa-soft-accent: #fcfaf5;
  --xgsa-radius: 22px;
  color: var(--xgsa-text);
  font-size: 16px;
}

.xcope-gsa,
.xcope-gsa * {
  box-sizing: border-box;
}

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

.xcope-gsa__hero,
.xcope-gsa__form,
.xcope-gsa__result-card,
.xcope-gsa__lead-card {
  background: #ffffff;
  border: 1px solid var(--xgsa-border);
  border-radius: 24px;
  box-shadow: none;
}

.xcope-gsa__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 26px;
}

.xcope-gsa__hero-content {
  min-width: 0;
}

.xcope-gsa__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--xgsa-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.xcope-gsa__title {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  color: var(--xgsa-text);
}

.xcope-gsa__subtitle {
  margin: 10px 0 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--xgsa-primary);
}

.xcope-gsa__intro {
  max-width: 760px;
  margin: 18px 0 24px;
  color: var(--xgsa-text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.xcope-gsa__intro p,
.xcope-gsa__form-head p,
.xcope-gsa__lead-card p,
.xcope-gsa__result-description p,
.xcope-gsa__recommendation p {
  margin-top: 0;
}

.xcope-gsa__intro p:last-child,
.xcope-gsa__form-head p:last-child,
.xcope-gsa__lead-card p:last-child,
.xcope-gsa__result-description p:last-child,
.xcope-gsa__recommendation p:last-child {
  margin-bottom: 0;
}

.xcope-gsa__hero-panel {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(249, 177, 28, 0.26);
  background: var(--xgsa-soft-accent);
  box-shadow: none;
}

.xcope-gsa__metric {
  border: 1px solid rgba(19, 22, 47, 0.10);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: none;
}

.xcope-gsa__metric span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--xgsa-accent);
  letter-spacing: 0.08em;
}

.xcope-gsa__metric strong {
  color: var(--xgsa-primary);
  font-size: 15px;
}

.xcope-gsa-btn {
  appearance: none;
  border: 0;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.xcope-gsa-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.xcope-gsa-btn--primary {
  background: var(--xgsa-primary);
  color: #ffffff;
}

.xcope-gsa-btn--primary:hover,
.xcope-gsa-btn--primary:focus {
  background: var(--xgsa-primary-hover);
  color: #ffffff;
}

.xcope-gsa-btn--ghost {
  background: transparent;
  color: var(--xgsa-text);
  border: 1px solid var(--xgsa-border-strong);
}

.xcope-gsa-btn--ghost:hover,
.xcope-gsa-btn--ghost:focus {
  background: var(--xgsa-surface);
  border-color: var(--xgsa-accent);
  color: var(--xgsa-text);
}

.xcope-gsa__form {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 26px;
}

.xcope-gsa__form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--xgsa-border);
}

.xcope-gsa__form-head h3,
.xcope-gsa__lead-card h3,
.xcope-gsa__result-card h3 {
  margin: 0 0 8px;
  color: var(--xgsa-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.xcope-gsa__form-head div,
.xcope-gsa__lead-card div,
.xcope-gsa__result-description,
.xcope-gsa__recommendation {
  color: var(--xgsa-text-soft);
  line-height: 1.7;
}

.xcope-gsa__progress {
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--xgsa-soft-accent);
  border: 1px solid rgba(249, 177, 28, 0.22);
}

.xcope-gsa__progress span {
  display: block;
  margin-bottom: 8px;
  color: var(--xgsa-primary);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.xcope-gsa__progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(19, 22, 47, 0.10);
}

.xcope-gsa__progress-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--xgsa-accent);
  transition: width 0.2s ease;
}

.xcope-gsa__step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.xcope-gsa__step-head span {
  color: var(--xgsa-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.xcope-gsa__step-head h4 {
  margin: 0;
  color: var(--xgsa-primary);
  font-size: clamp(20px, 3vw, 26px);
}

.xcope-gsa__questions {
  display: grid;
  gap: 16px;
}

.xcope-gsa-question {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--xgsa-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.xcope-gsa-question legend {
  width: 100%;
  float: left;
  margin: 0 0 7px;
  padding: 0;
  color: var(--xgsa-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.xcope-gsa-question legend + p {
  clear: both;
}

.xcope-gsa-question p {
  margin: 0 0 14px;
  color: var(--xgsa-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.xcope-gsa-question__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  clear: both;
}

.xcope-gsa-option {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--xgsa-border);
  border-radius: 14px;
  background: #fafafa;
  color: var(--xgsa-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.xcope-gsa-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--xgsa-accent);
}

.xcope-gsa-option:has(input:checked),
.xcope-gsa-option.is-selected {
  border-color: rgba(249, 177, 28, 0.70);
  background: var(--xgsa-soft-accent);
}

.xcope-gsa__notice {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(249, 177, 28, 0.35);
  border-radius: 14px;
  background: var(--xgsa-soft-accent);
  color: var(--xgsa-text);
  font-size: 14px;
  font-weight: 700;
}

.xcope-gsa__notice.is-error {
  border-color: rgba(190, 18, 60, 0.22);
  background: #fff5f7;
  color: #9f1239;
}

.xcope-gsa__notice.is-success {
  border-color: rgba(22, 101, 52, 0.22);
  background: #f0fdf4;
  color: #166534;
}

.xcope-gsa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.xcope-gsa__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.xcope-gsa__result-card,
.xcope-gsa__lead-card {
  padding: clamp(20px, 3vw, 28px);
}

.xcope-gsa__result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.xcope-gsa__score {
  min-width: 130px;
  text-align: right;
  color: var(--xgsa-primary);
}

.xcope-gsa__score strong {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.9;
}

.xcope-gsa__score span {
  font-size: 20px;
  font-weight: 800;
}

.xcope-gsa__score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.xcope-gsa__score-grid > div {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--xgsa-border);
  background: #fafafa;
  box-shadow: none;
}

.xcope-gsa__score-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--xgsa-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.xcope-gsa__score-grid strong {
  color: var(--xgsa-primary);
  font-size: 25px;
}

.xcope-gsa__score-grid i {
  font-style: normal;
}

.xcope-gsa__recommendation {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(249, 177, 28, 0.25);
  border-radius: 18px;
  background: var(--xgsa-soft-accent);
  color: var(--xgsa-text);
  box-shadow: none;
}

.xcope-gsa__recommendation h4 {
  margin: 0 0 8px;
  color: var(--xgsa-primary);
  font-size: 18px;
}

.xcope-gsa__lead-form {
  margin-top: 18px;
}

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

.xcope-gsa__lead-grid label,
.xcope-gsa__consent {
  display: block;
}

.xcope-gsa__lead-grid span,
.xcope-gsa__consent span {
  display: block;
  margin-bottom: 7px;
  color: var(--xgsa-text);
  font-size: 13px;
  font-weight: 800;
}

.xcope-gsa__lead-grid input,
.xcope-gsa__lead-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--xgsa-border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--xgsa-text);
  font-size: 15px;
  padding: 0 14px;
  box-shadow: none;
}

.xcope-gsa__lead-grid textarea {
  padding-top: 12px;
  min-height: 110px;
  resize: vertical;
}

.xcope-gsa__lead-message {
  grid-column: 1 / -1;
}

.xcope-gsa__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.xcope-gsa__consent input {
  margin-top: 3px;
  accent-color: var(--xgsa-accent);
}

.xcope-gsa__consent span {
  margin: 0;
  color: var(--xgsa-text-soft);
  line-height: 1.55;
  font-weight: 600;
}

.xcope-gsa__privacy {
  margin: 10px 0 0;
  color: var(--xgsa-text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.xcope-gsa__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 1024px) {
  .xcope-gsa__hero,
  .xcope-gsa__result {
    grid-template-columns: 1fr;
  }

  .xcope-gsa__hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .xcope-gsa__hero,
  .xcope-gsa__form,
  .xcope-gsa__result-card,
  .xcope-gsa__lead-card {
    border-radius: 20px;
  }

  .xcope-gsa__hero {
    padding: 22px;
  }

  .xcope-gsa__hero-panel,
  .xcope-gsa-question__options,
  .xcope-gsa__score-grid,
  .xcope-gsa__lead-grid {
    grid-template-columns: 1fr;
  }

  .xcope-gsa__form-head,
  .xcope-gsa__result-top {
    flex-direction: column;
  }

  .xcope-gsa__progress,
  .xcope-gsa__score {
    width: 100%;
    text-align: left;
  }

  .xcope-gsa__actions {
    flex-direction: column;
  }

  .xcope-gsa-btn {
    width: 100%;
  }
}
