/* ==========================================================================
   Contact Page — Merged Contact + Project Inquiry
   ========================================================================== */

/* ── Contact Card Icons ───────────────────────────────────────────────── */

.contact-card__icon {
  margin: 0 auto var(--space-4);
}

.contact-card__link {
  color: var(--gold-500);
  font-weight: 600;
}

.contact-card__link:hover {
  color: var(--gold-600);
}

.contact-card__link--lg {
  font-size: var(--text-lg);
}

/* ── Hero Process Flow Cascade ─────────────────────────────────────────── */

.page-header .hero-process-flow > * {
  opacity: 0;
}

.page-header .hero-process-flow > *:nth-child(1) {
  animation: badge-enter 0.5s var(--ease-expo-out) 0.5s both;
}

.page-header .hero-process-flow > *:nth-child(2) {
  animation: badge-enter 0.4s var(--ease-expo-out) 0.65s both;
}

.page-header .hero-process-flow > *:nth-child(3) {
  animation: badge-enter 0.5s var(--ease-expo-out) 0.8s both;
}

.page-header .hero-process-flow > *:nth-child(4) {
  animation: badge-enter 0.4s var(--ease-expo-out) 0.95s both;
}

.page-header .hero-process-flow > *:nth-child(5) {
  animation: badge-enter 0.5s var(--ease-expo-out) 1.1s both;
}

/* ── Context Banner (CMHC / Product selection) ────────────────────────── */

.apply-context {
  max-width: 880px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gold-50, #fdf8ed);
  border: 1px solid var(--gold-300, #e5c57a);
  border-radius: var(--radius-lg);
}

.apply-context__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold-500);
  border-radius: var(--radius-full);
  color: var(--white);
}

.apply-context__text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--charcoal-800);
  margin: 0;
}

.apply-context__text strong {
  color: var(--charcoal-900);
}

.apply-context__change {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-600);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.apply-context__change:hover {
  background: var(--gold-100, #fef3d6);
}

@media (max-width: 639px) {
  .apply-context {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .apply-context__change {
    margin-left: auto;
  }
}

/* ── Calculator Context Card ───────────────────────────────────────────── */

.apply-calc-context {
  max-width: 880px;
  margin: 0 auto var(--space-6);
  background: var(--charcoal-800);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.apply-calc-context__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--charcoal-700);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 600;
}

.apply-calc-context__header svg {
  color: var(--gold);
  flex-shrink: 0;
}

.apply-calc-context__edit {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
}

.apply-calc-context__edit:hover {
  color: var(--gold);
}

.apply-calc-context__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--charcoal-600);
}

.apply-calc-context__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  background: var(--charcoal-800);
}

.apply-calc-context__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--space-1);
}

.apply-calc-context__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
}

.apply-calc-context__value--primary {
  color: var(--gold);
  font-size: var(--text-base);
}

@media (max-width: 639px) {
  .apply-calc-context__metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Trust Strip ──────────────────────────────────────────────────────── */

.apply-trust-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

.apply-trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.apply-trust-strip__item svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .apply-trust-strip {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }
}

/* ── Reassurance Text ─────────────────────────────────────────────────── */

.apply-reassurance {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* ── Phone CTA ────────────────────────────────────────────────────────── */

.apply-phone-cta {
  max-width: 880px;
  margin: var(--space-6) auto 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.apply-phone-cta a {
  color: var(--gold-500);
  text-decoration: none;
}

.apply-phone-cta a:hover {
  text-decoration: underline;
}

/* ── Form Card ─────────────────────────────────────────────────────────── */

.apply-form-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold-500);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 4px 8px rgb(0 0 0 / 0.04),
    0 16px 48px rgb(0 0 0 / 0.06);
}

.apply-form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--space-8);
  right: var(--space-8);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-400) 30%,
    var(--gold-500) 50%,
    var(--gold-400) 70%,
    transparent 100%
  );
  opacity: 0.5;
}

.apply-form-card:hover {
  transform: none;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 4px 8px rgb(0 0 0 / 0.04),
    0 16px 48px rgb(0 0 0 / 0.06);
  border-color: var(--gray-200);
}

@media (max-width: 767px) {
  .apply-form-card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
}

/* ── Expect Timeline — Horizontal 4-Step ──────────────────────────────── */

.expect-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.expect-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.expect-timeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--gold-100);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.expect-timeline__icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold-600);
}

.expect-timeline__connector {
  flex: 0 0 32px;
  height: 2px;
  background-color: var(--gold-400);
  margin-top: 24px;
  align-self: flex-start;
}

.expect-timeline__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-bottom: var(--space-1);
}

.expect-timeline__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

@media (max-width: 639px) {
  .expect-timeline {
    flex-wrap: wrap;
    gap: var(--space-4) 0;
  }

  .expect-timeline__step {
    flex: 0 0 50%;
  }

  .expect-timeline__connector {
    display: none;
  }

  .expect-timeline__icon {
    width: 44px;
    height: 44px;
  }

  .expect-timeline__icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Alternative Path Cards ────────────────────────────────────────────── */

.apply-alt-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
}

.apply-alt-card__arrow {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-500);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s var(--ease-expo-out),
    transform 0.2s var(--ease-expo-out);
}

.apply-alt-card:hover .apply-alt-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .apply-alt-card__arrow {
    opacity: 0.5;
    transform: translateY(0);
  }

  .apply-alt-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* ── Founder Quote ────────────────────────────────────────────────────── */

.contact-quote {
  max-width: 520px;
  margin: 0 auto;
}

.contact-quote__text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}

.contact-quote__author {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.contact-quote__author strong {
  color: var(--charcoal-900);
  font-weight: 600;
}
