/* ============================================================
   Cape Nova Capital — Apply Page Styles
   ============================================================ */

.apply-hero {
  background-image:
    linear-gradient(135deg, rgba(11,31,58,0.96) 0%, rgba(11,31,58,0.85) 100%),
    url('https://images.unsplash.com/photo-1554224154-26032fced0c4?w=1400&q=80');
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.apply-hero__trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.apply-hero__trust span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.apply-hero__trust svg { stroke: var(--gold); }

/* ── Tab Strip ───────────────────────────────────────────────── */
.apply-tabs-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.apply-tabs {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.apply-tabs::-webkit-scrollbar { display: none; }

/* ── Apply Layout ────────────────────────────────────────────── */
.apply-section { padding: 60px 0 80px; }

.apply-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.apply-sidebar { position: sticky; top: 90px; }

.apply-sidebar__card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201,168,76,0.2);
}

.apply-sidebar__card--buyer { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }

.apply-sidebar__icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.apply-sidebar__icon svg { stroke: var(--white); }
.apply-sidebar__icon--gold svg { stroke: var(--gold); }

.apply-sidebar__card h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1.2rem; }
.apply-sidebar__card > p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.7; }

.apply-sidebar__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }

.apply-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.apply-sidebar__item svg { stroke: var(--gold); flex-shrink: 0; }

.apply-sidebar__popia {
  background: var(--bg-light);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.apply-sidebar__popia svg { stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }

.apply-sidebar__popia strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.apply-sidebar__popia p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.apply-sidebar__popia a { color: var(--gold); font-weight: 600; }

/* ── Form Wrap ───────────────────────────────────────────────── */
.apply-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: var(--shadow-sm);
}

/* ── Form Sections ───────────────────────────────────────────── */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-section:last-of-type { border-bottom: none; margin-bottom: 1.5rem; }

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.1rem;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── POPIA section ───────────────────────────────────────────── */
.form-section--popia {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section--popia .form-check label {
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-mid);
}

/* btn--loading is defined in style.css (shared) */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apply-layout { grid-template-columns: 1fr; }
  .apply-sidebar { position: static; }
  .apply-sidebar__card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
  .apply-sidebar__icon { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .apply-form-wrap { padding: 1.75rem 1.25rem; }
  .apply-sidebar__card { display: block; }
}

@media (max-width: 480px) {
  .apply-form-wrap { padding: 1.25rem 1rem; }
  .apply-section { padding: 40px 0 60px; }
}
