/* ============================================================
   Grant Readiness Wizard — /get-started
   Extends the base Elera Rowan design system (style.css)
   ============================================================ */

/* ── Wizard Container ────────────────────────────────────────── */
.gw {
  min-height: calc(100vh - 64px);
  background: var(--bg);
}

/* ── Step Indicator Bar ──────────────────────────────────────── */
.gw-steps-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.gw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 540px;
  margin: 0 auto;
}

.gw-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
  flex-shrink: 0;
}

.gw-step-dot:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.gw-dot-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
  transition: all var(--transition);
}

.gw-dot-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.gw-step-dot.active .gw-dot-num {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}

.gw-step-dot.active .gw-dot-label {
  color: var(--rose);
}

.gw-step-dot.completed .gw-dot-num {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.gw-step-dot.completed .gw-dot-label {
  color: var(--green-text);
}

.gw-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.5rem;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.gw-step-line.filled {
  background: var(--green);
}

/* ── Panels ──────────────────────────────────────────────────── */
.gw-panel {
  animation: gfFadeUp 0.3s ease;
}

.gw-panel-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.gw-panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.gw-panel-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.gw-panel-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.gw-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: var(--rose-50);
  color: var(--rose);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--rose-100);
}

/* ── Step 1: One Question Per Screen ─────────────────────────── */
.gw-quiz-inner {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 180px);
}

/* Progress bar */
.gw-q-progress {
  margin-bottom: 2rem;
}

.gw-q-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.gw-q-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.gw-q-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Question card */
.gw-q-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: gfFadeUp 0.3s ease;
}

.gw-q-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.gw-q-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.gw-q-help {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.gw-q-help:empty { display: none; }

/* Choice options (full-width buttons) */
.gw-q-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gw-q-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.gw-q-option:hover {
  border-color: var(--rose-light);
  background: var(--rose-50);
}

.gw-q-option:active { transform: scale(0.98); }

.gw-q-option.selected {
  border-color: var(--rose);
  background: var(--rose-50);
  color: var(--rose-dark);
}

.gw-q-option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.gw-q-option.selected .gw-q-option-dot {
  border-color: var(--rose);
  background: var(--rose);
}

.gw-q-option-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
}

.gw-q-option.selected .gw-q-option-dot-inner { opacity: 1; }

/* Text / select inputs */
.gw-q-input-group {
  margin-bottom: 1.5rem;
}

.gw-q-input {
  width: 100%;
  font-size: 1.0625rem;
  padding: 0.875rem 1rem;
}

/* Navigation buttons */
.gw-q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.gw-q-next {
  margin-left: auto;
}

.gw-q-select-group select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238E8A96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.gw-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* ── Loading ─────────────────────────────────────────────────── */
.gw-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.gw-loading-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.gw-loading-content .subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

/* ── Step 2: Grant Cards ─────────────────────────────────────── */
.gw-grants-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gw-grant-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
  animation: gfFadeUp 0.3s ease;
}

.gw-grant-card:hover {
  box-shadow: var(--shadow);
}

.gw-grant-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.gw-grant-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.gw-match-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.gw-match-badge.high {
  background: var(--green-bg);
  color: var(--green-text);
}

.gw-match-badge.medium {
  background: var(--gold-bg);
  color: var(--gold);
}

.gw-match-badge.low {
  background: var(--rose-50);
  color: var(--text-muted);
}

.gw-grant-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.gw-grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.gw-grant-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.gw-grant-meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gw-grant-meta-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.gw-grant-meta-value.open {
  color: var(--green-text);
}

.gw-grant-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rose);
  transition: color var(--transition);
}

.gw-grant-apply:hover {
  color: var(--rose-dark);
}

/* Coming soon state for non-Pell grants */
.gw-grant-coming-soon {
  opacity: 0.7;
}

.gw-grant-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
}

.gw-grant-soon svg {
  flex-shrink: 0;
}

.gw-grants-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.gw-grants-empty svg {
  margin-bottom: 1rem;
}

.gw-grants-empty h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── Pell Grant Hero Card ────────────────────────────────────── */
.gw-grant-hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--rose-50) 100%);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: gfFadeUp 0.3s ease;
}

.gw-hero-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--rose);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.gw-grant-hero h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gw-hero-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.gw-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.gw-hero-cta {
  max-width: 400px;
  margin: 0 auto;
}

.gw-hero-partner {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
}

/* ── More Grants Toggle ──────────────────────────────────────── */
.gw-grants-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background: var(--bg-white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1rem;
}

.gw-grants-toggle:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: var(--rose-50);
}

.gw-grants-toggle svg {
  transition: transform var(--transition);
}

.gw-grants-toggle.expanded svg {
  transform: rotate(180deg);
}

.gw-grants-more {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gw-grants-more.hidden {
  display: none;
}

/* ── Step 3: Document Checklist ──────────────────────────────── */
.gw-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gw-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  animation: gfFadeUp 0.3s ease;
}

.gw-check-item:hover {
  border-color: var(--rose-light);
}

.gw-check-item.checked {
  background: var(--green-bg);
  border-color: transparent;
}

.gw-check-item.checked .gw-check-box {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.gw-check-item.checked .gw-check-text h4 {
  text-decoration: line-through;
  color: var(--text-muted);
}

.gw-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
  color: transparent;
}

.gw-check-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
  transition: all var(--transition);
}

.gw-check-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.gw-checklist-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ── Step 4: Timeline ────────────────────────────────────────── */
.gw-timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.gw-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.gw-timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
  animation: gfFadeUp 0.3s ease;
}

.gw-timeline-item:last-child {
  padding-bottom: 0;
}

.gw-timeline-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--rose);
}

.gw-timeline-item.urgent .gw-timeline-dot {
  background: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-light);
}

.gw-timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.gw-timeline-item.urgent .gw-timeline-date {
  color: var(--red);
}

.gw-timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.gw-timeline-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gw-timeline-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ── Reminders Toggle ────────────────────────────────────────── */
.gw-reminders-box {
  background: var(--blush);
  border: 1px solid var(--rose-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.gw-reminders-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gw-reminders-inner h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.gw-reminders-inner p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.gw-toggle {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.gw-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gw-toggle-track {
  display: block;
  width: 48px;
  height: 28px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition);
}

.gw-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.gw-toggle input:checked + .gw-toggle-track {
  background: var(--green);
}

.gw-toggle input:checked + .gw-toggle-track::after {
  transform: translateX(20px);
}

/* ── Navigation Buttons ──────────────────────────────────────── */
.gw-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.gw-nav-buttons .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gw-checklist-gate-msg {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── SMS Consent ────────────────────────────────────────────── */
.gw-sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
}

.gw-sms-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--rose);
}

/* ── Mobile Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .gw-panel-inner {
    padding: 1.5rem 1rem 3rem;
  }

  .gw-q-text {
    font-size: 1.25rem;
  }

  .gw-panel-header h1 {
    font-size: 1.5rem;
  }

  .gw-dot-label {
    display: none;
  }

  .gw-steps {
    gap: 0;
  }

  .gw-step-line {
    margin-bottom: 0;
  }

  .gw-nav-buttons {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .gw-nav-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .gw-reminders-inner {
    flex-direction: column;
    text-align: center;
  }

  .gw-grant-top {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 641px) {
  .gw-panel-inner {
    padding: 3rem 2rem 5rem;
  }

  .gw-panel-header h1 {
    font-size: 2.25rem;
  }
}
