/* ============================================================
   11-APPLY — Apply Page Styles
   ============================================================
   Purpose:  Styles for the Apply for Housing page
   Depends:  01-Tokens (--clr-*, --radius-*, --max-content-width)
   Updated:  2026-03-18
   Fixed:    Dark mode selectors aligned to html.gprs-dark
             (was body.gprs-dark / body.mode-dark)
   ============================================================ */

/* ─── PAGE WRAPPER ─── */
.apply-page {
  max-width: var(--max-content-width, 1400px);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ─── SECTION SPACING ─── */
.apply-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
}

.apply-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

html.gprs-dark .apply-section {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ─── SECTION TITLES ─── */
.apply-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-text-heading, #000);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* ─── INTRO ─── */
.apply-intro {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 102, 204, 0.08);
}

html.gprs-dark .apply-intro {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.apply-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 0 1.25rem 0;
  color: var(--clr-text-body, #111827);
}

.apply-note {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm, 8px);
  border-left: 4px solid var(--clr-accent, #0066CC);
  background: rgba(0, 102, 204, 0.04);
}

html.gprs-dark .apply-note {
  background: rgba(0, 102, 204, 0.10);
}

.apply-note a {
  font-weight: 600;
  color: var(--clr-accent, #0066CC);
}

/* ─── STEP HEADER (number badge + title) ─── */
.apply-section-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.apply-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clr-accent, #0066CC);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

.apply-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-text-heading, #000);
  margin: 0;
  line-height: 1.3;
}

/* ─── ELIGIBILITY CARDS ─── */
.apply-elig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.apply-elig-card {
  padding: 1.5rem;
  border-radius: var(--radius-md, 14px);
  background: rgba(0, 102, 204, 0.03);
  border: 1px solid rgba(0, 102, 204, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.gprs-dark .apply-elig-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.apply-elig-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.apply-elig-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.apply-elig-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--clr-accent, #0066CC);
}

.apply-elig-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  color: var(--clr-text-body, #111827);
}

.apply-elig-card a {
  color: var(--clr-accent, #0066CC);
  font-weight: 500;
}

/* ─── FORM DOWNLOAD CARD ─── */
.apply-form-card {
  padding: 2rem;
  border-radius: var(--radius-md, 14px);
  border: 2px solid var(--clr-accent, #0066CC);
  background: rgba(0, 102, 204, 0.03);
  max-width: 640px;
  margin: 1.5rem 0;
}

html.gprs-dark .apply-form-card {
  background: rgba(0, 102, 204, 0.08);
  border-color: rgba(0, 102, 204, 0.4);
}

.apply-form-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--clr-text-heading, #000);
}

.apply-form-card__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 1rem 0;
  color: var(--clr-text-body, #111827);
}

.apply-form-card__btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm, 8px);
  background: var(--clr-accent, #0066CC);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.apply-form-card__btn:hover {
  background: var(--clr-accent-hover, #0051a3);
  transform: translateY(-1px);
  color: #fff;
}

.apply-form-card__btn:focus-visible {
  outline: 3px solid var(--clr-accent, #0066CC);
  outline-offset: 3px;
}

/* ─── SUBMIT METHODS ─── */
.apply-submit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.apply-submit-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(0, 102, 204, 0.03);
  border: 1px solid rgba(0, 102, 204, 0.08);
}

html.gprs-dark .apply-submit-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.apply-submit-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--clr-text-heading, #000);
}

.apply-submit-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  color: var(--clr-text-body, #111827);
}

.apply-submit-card a {
  color: var(--clr-accent, #0066CC);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.apply-submit-card a:hover {
  text-decoration: underline;
}

/* ─── TIMELINE (What Happens Next) ─── */
.apply-timeline {
  margin: 1.5rem 0;
  padding-left: 0.5rem;
}

.apply-timeline__step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Connecting line between steps */
.apply-timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: -12px;
  width: 2px;
  background: rgba(0, 102, 204, 0.15);
}

html.gprs-dark .apply-timeline__step:not(:last-child)::before {
  background: rgba(255, 255, 255, 0.10);
}

.apply-timeline__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-accent, #0066CC);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.apply-timeline__content {
  flex: 1;
  padding-top: 0.15rem;
}

.apply-timeline__content h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: var(--clr-text-heading, #000);
}

.apply-timeline__content p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--clr-text-body, #111827);
}

/* ─── INFO CALLOUT (MEM rebuild note) ─── */
.apply-info-callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm, 8px);
  border-left: 4px solid #e67e22;
  background: rgba(230, 126, 34, 0.04);
}

html.gprs-dark .apply-info-callout {
  background: rgba(230, 126, 34, 0.10);
}

.apply-info-callout h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: #e67e22;
}

.apply-info-callout p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--clr-text-body, #111827);
}

.apply-info-callout a {
  color: var(--clr-accent, #0066CC);
  font-weight: 500;
}

/* ─── FAQ ACCORDION ─── */
.apply-faq {
  margin: 0.6rem 0;
  border: 1px solid rgba(0, 102, 204, 0.10);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
}

html.gprs-dark .apply-faq {
  border-color: rgba(255, 255, 255, 0.10);
}

.apply-faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.15s ease;
  color: var(--clr-text-body, #111827);
}

.apply-faq summary::-webkit-details-marker {
  display: none;
}

.apply-faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-accent, #0066CC);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.apply-faq[open] summary::before {
  content: "\2212";
}

.apply-faq summary:hover {
  background: rgba(0, 102, 204, 0.03);
}

html.gprs-dark .apply-faq summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.apply-faq__body {
  padding: 0 1.25rem 1.25rem 3.1rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.apply-faq__body p {
  margin: 0;
  color: var(--clr-text-body, #111827);
}

.apply-faq__body a {
  color: var(--clr-accent, #0066CC);
}

/* ─── CONTACT CTA ─── */
.apply-contact-cta {
  text-align: center;
}

.apply-contact-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.apply-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.92rem;
}

.apply-contact-item strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clr-accent, #0066CC);
  margin-bottom: 0.15rem;
}

.apply-contact-item a {
  color: var(--clr-text-body, #111827);
  text-decoration: none;
  font-weight: 500;
}

.apply-contact-item a:hover {
  color: var(--clr-accent, #0066CC);
  text-decoration: underline;
}

.apply-contact-item span {
  font-size: 0.82rem;
  color: var(--clr-text-body, #111827);
  opacity: 0.7;
}

.apply-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ─── BUTTONS ─── */
.apply-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm, 8px);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
  cursor: pointer;
}

.apply-btn--primary {
  background: var(--clr-accent, #0066CC);
  color: #fff;
  border: 2px solid var(--clr-accent, #0066CC);
}

.apply-btn--primary:hover {
  background: var(--clr-accent-hover, #0051a3);
  border-color: var(--clr-accent-hover, #0051a3);
  transform: translateY(-1px);
  color: #fff;
}

.apply-btn--outline {
  background: transparent;
  color: var(--clr-accent, #0066CC);
  border: 2px solid var(--clr-accent, #0066CC);
}

.apply-btn--outline:hover {
  background: var(--clr-accent, #0066CC);
  color: #fff;
  transform: translateY(-1px);
}

.apply-btn:focus-visible {
  outline: 3px solid var(--clr-accent, #0066CC);
  outline-offset: 3px;
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .apply-page {
    padding: 1.5rem 1rem 3rem;
  }

  .apply-elig-grid,
  .apply-submit-grid {
    grid-template-columns: 1fr;
  }

  .apply-form-card {
    max-width: 100%;
  }

  .apply-contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .apply-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-section-title {
    font-size: 1.35rem;
  }

  .apply-step-title {
    font-size: 1.15rem;
  }
}