/* ============================================================
   ADMISSIONS.CSS — Scoped CSS for Admissions Page
   Ashraf Islamia Model Public Secondary School
   ============================================================ */

/* Navbar on admissions page should always show the dark background */
.admissions-page #navbar {
  background: rgba(10, 22, 45, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.12);
}

/* ─── Layout & General Spacing ───────────────────────── */

.section-spacing {
  padding-block: clamp(48px, 5.5vw, 76px); /* Balanced padding to prevent double-spacing issues */
}

.section-alt {
  background-color: var(--cream);
  border-top: 1px solid rgba(26, 58, 92, 0.05);
  border-bottom: 1px solid rgba(26, 58, 92, 0.05);
}

/* ─── Admissions-Scoped Typography Overrides ─────────── */

/* Admissions section labels: slightly larger for legibility on light bg */
.admissions-page .section-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

/* Light background section h2 titles — scoped to admissions sections */
.admissions-page .section-spacing h2,
.admissions-page .section-alt h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

/* .admissions-cta h2 color is set in the Final CTA section below with !important */

/* Light background section descriptions */
.admissions-page .section-desc {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* Fee note text — used in "Before You Apply" section */
.fee-note {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 24px;
  line-height: 1.75;
}

.admissions-support-container {
  max-width: 700px;
}

/* ─── Image Placeholder Shared Base ──────────────────── */

.image-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: calc(100% / (var(--aspect-ratio, 16/9)));
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(26,58,92,0.85) 100%);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 2;
  transition: transform var(--t-med) var(--ease-smooth);
}

.image-placeholder:hover img {
  transform: scale(1.03);
}

.placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--gold-light);
  opacity: 0.7;
}

.placeholder-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.8;
}

/* ─── Section: Admissions Hero ────────────────────────── */

#admissions-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0c1c30 100%);
  padding-top: clamp(100px, 12vw, 150px); /* standardised — matches about, faculty, contact, facilities */
  padding-bottom: var(--section-py);
  color: var(--text-white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text .section-label {
  color: var(--gold-light);
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-white);
}

.hero-text h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Hero Image Frame ───────────────────────────────────── */
.hero-img-frame {
  width: 100%;
}

.hero-img-gold-box {
  display: none;
}

.hero-img-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.admissions-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.admissions-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--primary-dark);
}

.admissions-intro p {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 20px;
}

.admissions-intro p:last-child {
  margin-bottom: 0;
}

/* ─── Section: Why Choose Us (Reasons) ───────────────── */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.reason-card {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-smooth), box-shadow var(--t-med) var(--ease-smooth), border-color var(--t-med) ease;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.reason-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(201, 168, 76, 0.25);
}

.reason-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  letter-spacing: -1px;
}

.reason-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 14px;
  font-weight: 700;
}

.reason-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
  line-height: 1.7;
}


/* ─── Section: Who Can Apply (Eligibility) ───────────── */

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.eligibility-card {
  position: relative;
  padding: 36px 28px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-smooth), box-shadow var(--t-med);
}

.eligibility-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.eligibility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.eligibility-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eligibility-card h3::before {
  content: '✦';
  font-size: 0.7rem;
  opacity: 0.7;
}

.eligibility-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.7;
}

.eligibility-note {
  margin-top: 40px;
  padding: 18px 28px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border-radius: var(--radius-md);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

.documents-container .eligibility-note {
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.1));
}


/* ─── Section: Admission Process (Timeline) ──────────── */

.process-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 60px;
  padding-bottom: 20px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.15));
  z-index: 1;
}

.process-step {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }
.process-step:nth-child(5) { transition-delay: 0.5s; }

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-dark), #1a2f4a);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 20px auto;
  border: 3px solid var(--gold);
  position: relative;
  box-shadow: 0 0 0 5px rgba(201,168,76,0.1), 0 8px 24px rgba(0,0,0,0.18);
  transition: transform var(--t-fast) var(--ease-smooth), background var(--t-fast), box-shadow var(--t-fast);
}

.process-step:hover .step-number {
  transform: scale(1.12);
  background: var(--gold);
  color: var(--primary-dark);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.2), 0 12px 28px rgba(0,0,0,0.25);
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 912px) {
  .process-timeline {
    flex-direction: column;
    margin-top: 40px;
    gap: 0;
  }
  .process-timeline::before {
    top: 0; bottom: 0;
    left: 27px;
    width: 2px;
    height: auto;
    right: auto;
    background: linear-gradient(180deg, var(--gold), rgba(201,168,76,0.1));
  }

  /* Use CSS Grid: col1 = step-number (fixed), col2 = spans h3 + p (stacked) */
  .process-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    text-align: left;
    padding: 0 0 36px 0;
    width: 100%;
    align-items: start;
  }
  .step-number {
    grid-column: 1;
    grid-row: 1 / 3;       /* span both rows so it stays centered next to text */
    margin: 0;
    width: 54px;
    height: 54px;
    align-self: start;
  }
  .step-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .step-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.9rem;
    margin-top: 0;
  }
}

/* ─── Section: Required Documents ────────────────────── */

.documents-container {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.07);
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0;
  list-style: none;
  padding: 0;
}

.documents-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 18px;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.documents-list li:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
}

.documents-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .documents-container {
    padding: 28px 20px;
  }
  .documents-list {
    grid-template-columns: 1fr;
  }
}

/* ─── Section: Important Information ─────────────────── */

.info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-block {
  position: relative;
  padding: 32px 24px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.info-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-smooth);
}

.info-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.info-block:hover::after {
  transform: scaleX(1);
}

.info-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}

.info-block p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ─── Section: What Happens Next ─────────────────────── */

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}

.next-step-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.next-step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: rgba(201,168,76,0.3);
}

.next-step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.next-step-item .step-text h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.next-step-item .step-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Section: FAQ Accordion ─────────────────────────── */

.faq-container {
  max-width: 820px;
  margin: 48px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(201,168,76,0.4);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: color var(--t-fast), background var(--t-fast);
  gap: 12px;
}

.faq-question:hover {
  background: rgba(201,168,76,0.05);
  color: var(--gold);
}

.faq-question[aria-expanded="true"] {
  color: var(--gold);
  background: rgba(201,168,76,0.07);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: rgba(201,168,76,0.12);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-med) var(--ease-smooth);
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--gold);
  transform: rotate(45deg);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: background var(--t-fast);
}

.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after {
  background: var(--primary-dark);
}

.faq-icon::before {
  top: 13px; left: 6px;
  width: 16px; height: 2px;
}

.faq-icon::after {
  top: 6px; left: 13px;
  width: 2px; height: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ─── Section: Final CTA ─────────────────────────────── */

.admissions-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2340 60%, #162d42 100%);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  margin: 64px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
}

.admissions-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.admissions-cta::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(201,168,76,0.05);
  pointer-events: none;
}

.admissions-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff !important;
  margin-bottom: 16px;
}

.admissions-cta p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .admissions-cta {
    padding: 48px 24px;
    margin: 40px 0;
  }
  .next-step-item {
    flex-direction: column;
    gap: 12px;
  }
  .next-step-number {
    font-size: 1.6rem;
  }
  .documents-container {
    padding: 24px 16px;
  }
  .faq-question {
    padding: 18px 16px;
    font-size: 0.93rem;
  }
  .faq-answer-inner {
    padding: 0 16px 18px;
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .eligibility-grid,
  .info-blocks {
    grid-template-columns: 1fr;
  }
  .next-steps-grid {
    grid-template-columns: 1fr;
  }
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .hero-text {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* ─── Section: Official Admission Form Download ───────── */

#admission-form-download {
  /* inherits .section-spacing + .section-alt spacing and background */
}

.form-download-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

/* ── Document visual card ───────────────────────────────── */

.form-doc-visual {
  display: flex;
  justify-content: center;
}

.form-doc-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 10px 36px rgba(26,58,92,0.13),
    0 20px 60px rgba(26,58,92,0.07);
  overflow: hidden;
  border: 1px solid rgba(26,58,92,0.07);
  transition:
    transform var(--t-med) var(--ease-smooth),
    box-shadow var(--t-med) var(--ease-smooth);
}

.form-doc-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 20px 56px rgba(26,58,92,0.20),
    0 0 0 1px rgba(201,168,76,0.25);
}

@media (prefers-reduced-motion: reduce) {
  .form-doc-card,
  .form-doc-card:hover {
    transition: none;
    transform: none;
  }
}

/* Gold top accent bar */
.form-doc-topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

/* Dark navy header strip */
.form-doc-header {
  background: var(--primary-dark);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-doc-school-name {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  line-height: 1.3;
  flex: 1;
}

.form-doc-badge {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  background: var(--gold-light);
  padding: 2px 7px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card body — simulated form content */
.form-doc-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-doc-photo-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Photo placeholder box */
.form-doc-photo-box {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
  background: #e8edf3;
  border: 1.5px dashed rgba(26,58,92,0.18);
  border-radius: 4px;
}

.form-doc-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
}

/* Simulated text/heading lines */
.form-doc-line {
  height: 7px;
  border-radius: 3px;
  background: #dce3eb;
}
.form-doc-line--lg { width: 88%; }
.form-doc-line--md { width: 66%; }
.form-doc-line--sm { width: 44%; background: rgba(201,168,76,0.22); }

/* Form field rows */
.form-doc-fields {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-doc-field-row {
  display: flex;
  gap: 7px;
  align-items: center;
}

.form-doc-label {
  width: 54px;
  height: 6px;
  border-radius: 3px;
  background: rgba(26,58,92,0.13);
  flex-shrink: 0;
}

.form-doc-value {
  height: 6px;
  border-radius: 3px;
  background: #e4eaf1;
  flex: 0 0 80px;
}

.form-doc-value--wide {
  flex: 0 0 120px;
}

/* Signature boxes */
.form-doc-sig-row {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.form-doc-sig-box {
  flex: 1;
  height: 22px;
  border-radius: 3px;
  border: 1px dashed rgba(26,58,92,0.18);
  background: #f5f7fa;
}

/* Footer strip */
.form-doc-footer-strip {
  background: rgba(26,58,92,0.03);
  border-top: 1px solid rgba(26,58,92,0.07);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-doc-footer-strip svg {
  flex-shrink: 0;
  color: var(--gold-dark);
}

/* ── Right column: content ──────────────────────────────── */

.form-download-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-download-content h2 {
  margin-bottom: 18px;
}

.form-download-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

/* ── 3-step mini process ─────────────────────────────────── */

.form-manual-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-step-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 28px;
  line-height: 1;
}

.form-step-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.form-step-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-step-text span {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Action buttons ──────────────────────────────────────── */

.form-download-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ── Instruction panel ───────────────────────────────────── */

.form-instruction-panel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(201,168,76,0.09), rgba(201,168,76,0.04));
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius-md);
  max-width: 520px;
}

.form-instruction-icon {
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 2px;
}

.form-instruction-panel strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 5px;
}

.form-instruction-panel p {
  font-size: 0.89rem;
  color: var(--primary-dark);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive — Tablet and below ──────────────────────── */

@media (max-width: 900px) {
  .form-download-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .form-doc-visual {
    order: -1;
  }

  .form-doc-card {
    max-width: 280px;
    margin-inline: auto;
  }

  .form-download-content {
    align-items: center;
    text-align: center;
  }

  /* Keep inner text aligned left for readability */
  .form-download-desc,
  .form-step-item,
  .form-instruction-panel {
    text-align: left;
  }

  .form-download-actions {
    justify-content: center;
  }

  .form-instruction-panel {
    max-width: 100%;
  }
}

/* ── Responsive — Mobile ─────────────────────────────────── */

@media (max-width: 600px) {
  .form-doc-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .form-download-actions {
    flex-direction: column;
    width: 100%;
  }

  .form-download-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .form-instruction-panel {
    padding: 16px;
  }
}


