/* ═══════════════════════════════════════════════════════════
   RH GRAVITY - OSB QUESTIONNAIRE STYLES
   "Should I use an offshore bond?" - G1 tool
   Scoped to .rh-tool-osb-q to avoid any conflicts in WP.
   ═══════════════════════════════════════════════════════════ */

/* ── Tool wrapper ───────────────────────────────────────── */

.rh-tool-osb-q {
  font-family: var(--rh-font-body);
  color: var(--rh-body);
  max-width: 680px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────── */

.rh-tool-osb-q__header {
  margin-bottom: 36px;
}

.rh-tool-osb-q__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rh-body-soft);
  border: 1px solid var(--rh-border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.rh-tool-osb-q__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rh-primary);
  margin: 0 0 12px;
  line-height: 1.2;
}

.rh-tool-osb-q__subtitle {
  font-size: 1.05rem;
  color: var(--rh-body-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

/* ── Progress ───────────────────────────────────────────── */

.rh-tool-osb-q__progress {
  margin-bottom: 32px;
}

.rh-tool-osb-q__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rh-tool-osb-q__progress-label {
  font-size: 0.82rem;
  color: var(--rh-body-soft);
  font-weight: 400;
}

.rh-tool-osb-q__progress-count {
  font-size: 0.82rem;
  color: var(--rh-primary);
  font-weight: 600;
}

.rh-tool-osb-q__progress-track {
  height: 4px;
  background: var(--rh-border);
  border-radius: 4px;
  overflow: hidden;
}

.rh-tool-osb-q__progress-fill {
  height: 100%;
  background: var(--rh-primary);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ── Question panel ─────────────────────────────────────── */

.rh-tool-osb-q__panel {
  display: none;
  animation: osb-fadein 0.3s ease;
}

.rh-tool-osb-q__panel.is-active {
  display: block;
}

@keyframes osb-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rh-tool-osb-q__question-card {
  background: var(--rh-white);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--rh-shadow);
}

.rh-tool-osb-q__question-num {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rh-body-soft);
  margin: 0 0 10px;
}

.rh-tool-osb-q__question-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rh-primary);
  margin: 0 0 8px;
  line-height: 1.35;
}

.rh-tool-osb-q__question-hint {
  font-size: 0.88rem;
  color: var(--rh-body-soft);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Answer options ─────────────────────────────────────── */

.rh-tool-osb-q__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rh-tool-osb-q__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--rh-border);
  border-radius: var(--rh-radius);
  cursor: pointer;
  background: var(--rh-surface);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.rh-tool-osb-q__option:hover {
  border-color: var(--rh-primary-light);
  background: var(--rh-white);
  box-shadow: 0 2px 10px rgba(64, 7, 24, 0.07);
}

.rh-tool-osb-q__option.is-selected {
  border-color: var(--rh-primary);
  background: var(--rh-white);
  box-shadow: 0 0 0 3px rgba(64, 7, 24, 0.08);
}

.rh-tool-osb-q__option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--rh-border);
  flex-shrink: 0;
  background: var(--rh-white);
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-tool-osb-q__option.is-selected .rh-tool-osb-q__option-radio {
  border-color: var(--rh-primary);
  background: var(--rh-primary);
}

.rh-tool-osb-q__option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-white);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.rh-tool-osb-q__option.is-selected .rh-tool-osb-q__option-radio::after {
  opacity: 1;
}

.rh-tool-osb-q__option-text {
  font-size: 0.97rem;
  color: var(--rh-body);
  line-height: 1.4;
  font-weight: 400;
}

.rh-tool-osb-q__option.is-selected .rh-tool-osb-q__option-text {
  color: var(--rh-primary);
  font-weight: 600;
}

/* ── Navigation buttons ─────────────────────────────────── */

.rh-tool-osb-q__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.rh-tool-osb-q__btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--rh-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rh-body-soft);
  background: transparent;
  border: 1.5px solid var(--rh-border);
  border-radius: var(--rh-radius);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rh-tool-osb-q__btn-back:hover {
  color: var(--rh-primary);
  border-color: var(--rh-primary);
}

.rh-tool-osb-q__btn-back svg {
  width: 16px;
  height: 16px;
}


/* ── Result panel ───────────────────────────────────────── */

.rh-tool-osb-q__result {
  display: none;
  animation: osb-fadein 0.4s ease;
}

.rh-tool-osb-q__result.is-active {
  display: block;
}

.rh-tool-osb-q__result-card {
  background: var(--rh-white);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  padding: 36px;
  margin-bottom: 20px;
  box-shadow: var(--rh-shadow-lg);
}

.rh-tool-osb-q__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px 5px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.rh-tool-osb-q__result-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Result type: strong fit */
.rh-tool-osb-q__result-card--strong .rh-tool-osb-q__result-badge {
  background: rgba(64, 7, 24, 0.08);
  color: var(--rh-primary);
}

/* Result type: possible fit */
.rh-tool-osb-q__result-card--possible .rh-tool-osb-q__result-badge {
  background: rgba(180, 120, 50, 0.1);
  color: #8a5e20;
}

/* Result type: unlikely fit */
.rh-tool-osb-q__result-card--unlikely .rh-tool-osb-q__result-badge {
  background: rgba(100, 100, 100, 0.08);
  color: #4a4a4a;
}

.rh-tool-osb-q__result-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rh-primary);
  margin: 0 0 12px;
  line-height: 1.25;
}

.rh-tool-osb-q__result-summary {
  font-size: 1rem;
  color: var(--rh-body);
  line-height: 1.65;
  margin: 0 0 24px;
}

/* ── Result: signal list ─────────────────────────────────── */

.rh-tool-osb-q__signals {
  margin-bottom: 28px;
}

.rh-tool-osb-q__signals-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rh-body-soft);
  margin: 0 0 12px;
}

.rh-tool-osb-q__signal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rh-tool-osb-q__signal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--rh-body);
}

.rh-tool-osb-q__signal-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.rh-tool-osb-q__signal-icon--positive {
  color: #1a6b3c;
}

.rh-tool-osb-q__signal-icon--caution {
  color: #8a5e20;
}

.rh-tool-osb-q__signal-icon--neutral {
  color: var(--rh-body-soft);
}

/* ── Result: CTA ─────────────────────────────────────────── */

.rh-tool-osb-q__result-cta {
  border-top: 1px solid var(--rh-border-light);
  padding-top: 28px;
  margin-top: 4px;
}

.rh-tool-osb-q__result-cta-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rh-primary);
  margin: 0 0 8px;
}

.rh-tool-osb-q__result-cta-text {
  font-size: 0.93rem;
  color: var(--rh-body-soft);
  line-height: 1.55;
  margin: 0 0 20px;
}

.rh-tool-osb-q__result-cta-btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--rh-primary);
    color: var(--rh-white);
    font-family: var(--rh-font-body);
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--rh-radius);
    transition: background var(--rh-transition);
    text-decoration-line: none !important;
    margin-bottom: 10px;
}

.rh-tool-osb-q__result-cta-btn:hover {
  background: var(--rh-primary-hover);
  color: var(--rh-white);
  text-decoration: none;
}

.rh-tool-osb-q__result-cta-trust {
  font-size: 0.78rem;
  color: var(--rh-body-soft);
  margin-top: 12px;
}

.rh-tool-osb-q__result-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rh-border-light);
}


.rh-tool-osb-q__btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--rh-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rh-body-soft);
  background: transparent;
  border: 1.5px solid var(--rh-border);
  border-radius: var(--rh-radius);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rh-tool-osb-q__btn-restart:hover {
  color: var(--rh-primary);
  border-color: var(--rh-primary);
}

.rh-tool-osb-q__btn-restart svg {
  width: 14px;
  height: 14px;
}

/* ── Disclaimer ─────────────────────────────────────────── */

.rh-tool-osb-q__disclaimer {
  font-size: 0.78rem;
  color: var(--rh-body-soft);
  line-height: 1.55;
  padding: 14px 18px;
  background: var(--rh-bg);
  border: 1px solid var(--rh-border-light);
  border-radius: var(--rh-radius);
  margin-top: 4px;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .rh-tool-osb-q__title {
    font-size: 1.6rem;
  }

  .rh-tool-osb-q__question-card,
  .rh-tool-osb-q__result-card {
    padding: 22px 18px;
  }

  .rh-tool-osb-q__question-text {
    font-size: 1.08rem;
  }

  .rh-tool-osb-q__btn-back {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}
