/* ===== Shared Funnel Question Step ===== */
/* Used by the pre-manager-assignment onboarding steps
   (/are-you-the-missionary, /mission-status). Visually matches
   the manager-assignment option cards. */

.fq-page {
  min-height: 100vh;
  background: #fafafa;
  padding: 32px 24px 64px;
}

/* 2-column layout: main + sidebar */
.fq-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.fq-main {
  max-width: 520px;
}

/* Header */
.fq-header {
  margin-bottom: 40px;
}

.fq-heading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.fq-subtext {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Option cards */
.fq-options {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.fq-options--2 {
  grid-template-columns: 1fr 1fr;
}

.fq-options--3 {
  grid-template-columns: repeat(3, 1fr);
}

.fq-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border: 2px solid #E5E5E5;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.fq-option-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(17, 51, 98, 0.1);
  transform: translateY(-2px);
}

.fq-option-card:focus-visible {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(17, 51, 98, 0.25);
}

.fq-option-card:active {
  transform: translateY(0);
}

.fq-option-card.selected {
  border-color: var(--color-navy);
  background: #fff;
}

/* Selected checkmark badge.
   Shared by the fq- cards (steps 1–2) and the ma- cards (step 3); step 3 also
   loads this stylesheet, so the badge is defined once here. */
.fq-option-card,
.ma-option-card {
  position: relative;
}

.fq-option-card.selected::after,
.ma-option-card.selected::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.fq-option-card[disabled] {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.fq-option-card[disabled]:not(.selected) {
  opacity: 0.5;
}

/* Option icon */
.fq-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-pale-blue);
  color: var(--color-navy);
  margin-bottom: 16px;
}

.fq-option-card:hover:not([disabled]) .fq-option-icon {
  background: var(--color-light-blue);
  color: #fff;
}

/* Option text */
.fq-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.fq-option-desc {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
}

/* Inline reassurance callout */
.fq-reassurance {
  background: var(--color-pale-blue);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

/* Actions row — back link left, continue button right */
.fq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 28px;
}

/* Continue button — revealed once an option is selected */
.fq-continue {
  display: inline-block;
  margin-left: auto;
  padding: 14px 40px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.fq-continue[hidden] {
  display: none;
}

.fq-continue:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}

.fq-continue:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

.fq-continue[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Back link */
.fq-back {
  display: inline-block;
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
}

.fq-back:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 834px) {
  .fq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fq-main {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .fq-page {
    padding: 32px 16px;
  }

  .fq-heading {
    font-size: 1.4rem;
  }

  .fq-options--2,
  .fq-options--3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fq-option-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fq-option-card {
    transition: none;
  }

  .fq-option-card:hover {
    transform: none;
  }
}
