/* Results loader & form pages */

body.results-page {
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.results-page footer {
  margin-top: auto;
}

/* ── Loader ── */
.results-loader {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 100px;
  text-align: center;
}

.results-loader-inner {
  max-width: 520px;
}

.results-loader-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 28px;
}

.results-loader-percent {
  font-family: "Inter", sans-serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 36px;
}

.results-loader-dots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  height: 32px;
}

.results-loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  animation: loader-bounce 1.2s ease-in-out infinite;
}

.results-loader-dot:nth-child(1) {
  animation-delay: 0s;
}

.results-loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.results-loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.results-loader-dot:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes loader-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ── Form page hero ── */
.results-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.results-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.results-hero-divider {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.results-hero p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Summary stats */
.results-summary {
  padding: 8px 0 40px;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.results-summary-item {
  text-align: center;
}

.results-summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.results-summary-icon svg {
  width: 28px;
  height: 28px;
}

.results-summary-icon--green {
  background: var(--green-light);
  color: var(--green);
}

.results-summary-icon--orange {
  background: #fdf3e3;
  color: var(--orange);
}

.results-summary-icon--red {
  background: #fdecea;
  color: var(--red);
}

.results-summary-title {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.results-summary-title--green {
  color: var(--green);
}

.results-summary-title--orange {
  color: var(--orange);
}

.results-summary-title--red {
  color: var(--red);
}

.results-summary-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  max-width: 260px;
  margin: 0 auto;
}

/* Lead form card */
.results-form-section {
  padding-bottom: 32px;
}

.results-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  padding: 36px 40px 32px;
}

.results-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}

.results-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.results-field input {
  width: 100%;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s;
}

.results-field input::placeholder {
  color: var(--gray-400);
}

.results-field input:focus {
  outline: none;
  border-color: var(--navy);
}

.results-field--invalid input {
  border-color: #c0392b;
}

.results-field--invalid input:focus {
  border-color: #c0392b;
}

.results-field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #c0392b;
}

.results-field-error[hidden] {
  display: none;
}

.results-form-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #922b21;
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
}

.results-form-error[hidden] {
  display: none;
}

.btn-results-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-results-submit:hover {
  background: var(--gold-hover);
}

.results-form-privacy {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--gray-600);
  text-align: left;
  line-height: 1.5;
}

.results-form-privacy svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gray-400);
}

body.rg-otp-modal-open {
  overflow: hidden;
}

.rg-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rg-otp-modal[hidden] {
  display: none;
}

.rg-otp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
}

.rg-otp-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.2);
  padding: 32px 28px 24px;
}

.rg-otp-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.rg-otp-modal__title {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--navy);
}

.rg-otp-modal__text {
  margin: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.rg-otp-modal__field {
  margin-bottom: 18px;
}

.rg-otp-modal__field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.rg-otp-modal__field input {
  width: 100%;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--navy);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  box-sizing: border-box;
}

.rg-otp-modal__field input:focus {
  outline: none;
  border-color: var(--navy);
}

.rg-otp-modal__error {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #c0392b;
}

.rg-otp-modal__error[hidden] {
  display: none;
}

.rg-otp-modal__verify {
  margin-bottom: 14px;
}

.rg-otp-modal__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.rg-otp-modal__link {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.rg-otp-modal__link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  text-decoration: none;
}

/* Info banner */
.results-info-banner {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--blue-light);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.results-info-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.results-info-banner p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.results-info-banner strong {
  color: var(--navy);
  font-weight: 600;
}

/* Trust signals */
.results-trust {
  padding-bottom: 64px;
}

.results-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.results-trust-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--gray-100);
}

.results-trust-item:last-child {
  border-right: none;
}

.results-trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.results-trust-icon svg {
  width: 24px;
  height: 24px;
}

.results-trust-title {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.results-trust-text {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .results-summary-grid,
  .results-trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .results-trust-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 28px;
  }

  .results-trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .results-form-grid {
    grid-template-columns: 1fr;
  }

  .results-form-card {
    padding: 28px 24px 24px;
  }

  .results-info-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Confirmation page ── */
.results-confirm {
  flex: 1;
}

.results-confirm-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.results-confirm-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.results-confirm-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}

.results-confirm-btn {
  max-width: 420px;
  margin: 0 auto;
}

.results-confirm-trust {
  padding: 48px 0 64px;
  border-top: 1px solid var(--gray-100);
}

.results-confirm-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.results-confirm-trust-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--gray-100);
}

.results-confirm-trust-item:last-child {
  border-right: none;
}

.results-confirm-trust-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.results-confirm-trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.results-confirm-trust-icon svg {
  width: 24px;
  height: 24px;
}

.results-confirm-trust-title {
  font-size: 1.1rem;
  color: var(--navy);
}

.results-confirm-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ── Full report page ── */
body.results-report-page {
  background: var(--white);
}

.report-main {
  flex: 1;
  padding: 40px 0 56px;
}

.report-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.report-score-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
  padding: 32px 36px 36px;
}

.report-loading {
  text-align: center;
  color: var(--gray-600);
  padding: 48px 24px;
}

.report-score-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 28px;
}

.report-score-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.report-gauge {
  position: relative;
  width: 180px;
}

.report-gauge svg {
  width: 100%;
  display: block;
}

.report-gauge-center {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.report-gauge-num {
  font-family: "Inter", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.report-gauge-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.report-score-headline {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 8px;
}

.report-score-profile {
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}

.report-breakdown-title {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.report-cat-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-cat-row {
  display: grid;
  grid-template-columns: 40px 1fr 120px 36px 100px;
  gap: 12px;
  align-items: center;
}

.report-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-cat-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.report-cat-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.report-cat-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.report-cat-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.report-cat-score {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.report-cat-level {
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
}

.report-insights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-cta-card {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 24px;
}

.report-cta-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.report-cta-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.report-cta-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 18px;
}

.report-cta-btn {
  margin-bottom: 12px;
}

.report-cta-note {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
}

.report-panel {
  border-radius: 12px;
  padding: 20px 22px;
}

.report-panel--green {
  background: #eef8f0;
}

.report-panel--orange {
  background: #fdf3e3;
}

.report-panel--red {
  background: #fdecea;
}

.report-panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.report-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-panel-icon svg {
  width: 18px;
  height: 18px;
}

.report-panel-icon--green {
  background: var(--green);
  color: var(--white);
}

.report-panel-icon--orange {
  background: var(--orange);
  color: var(--white);
}

.report-panel-icon--red {
  background: var(--red);
  color: var(--white);
}

.report-panel-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.report-panel-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.report-insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-insight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.report-insight-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.report-insight-check svg {
  width: 12px;
  height: 12px;
}

.report-insight-check--green {
  background: var(--green);
  color: var(--white);
}

.report-insight-check--orange {
  background: var(--orange);
  color: var(--white);
}

.report-key-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 12px;
}

.report-key-why {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 12px;
}

.report-key-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
}

.report-key-link:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-score-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .results-confirm-trust-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .results-confirm-trust-item {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 28px;
  }

  .results-confirm-trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .report-cat-row {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }

  .report-cat-bar {
    grid-column: 1 / -1;
  }

  .report-cat-score,
  .report-cat-level {
    text-align: left;
  }

  .report-cat-score {
    grid-column: 2;
  }

  .report-cat-level {
    grid-column: 2;
    grid-row: 3;
  }

  .report-score-card {
    padding: 24px 20px 28px;
  }
}
