/* ── Trust Strip ────────────────────────────────────────────── */
.apply-trust-strip { background: var(--navy); padding: 22px 0; }
.apply-trust-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.apply-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); }
.apply-trust-item i { color: var(--blue); flex-shrink: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.apply-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: flex-start; }

/* ── Info Column ────────────────────────────────────────────── */
.apply-info { max-width: 460px; position: sticky; top: 90px; }
.apply-info-sub { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 14px 0 36px; }
.apply-steps { display: flex; flex-direction: column; margin-bottom: 32px; }
.apply-step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--silver-light); }
.apply-step:last-child { border-bottom: none; }
.apply-step-num { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 400; font-style: italic; color: var(--blue); line-height: 1; flex-shrink: 0; min-width: 48px; }
.apply-step-body h4 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 500; color: var(--navy); margin: 0 0 6px; }
.apply-step-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

.apply-help-box { display: flex; gap: 14px; align-items: flex-start; background: var(--blue-soft); border-radius: 10px; padding: 20px 22px; }
.apply-help-box i { color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.apply-help-box strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.apply-help-box p { font-size: 13px; color: var(--muted); margin: 0; }
.apply-help-box a { color: var(--blue); font-weight: 600; text-decoration: none; }
.apply-help-box a:hover { text-decoration: underline; }

/* ── Form Card ──────────────────────────────────────────────── */
.apply-form-wrap { background: white; border: 1px solid var(--silver-light); border-radius: 16px; padding: 40px; box-shadow: 0 24px 60px -25px rgba(0,38,74,0.12); max-width: 100%; overflow: hidden; }
.apply-form-wrap h3 { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 500; color: var(--navy); margin: 0 0 8px; letter-spacing: -0.01em; }
.apply-form-wrap > p { font-size: 14px; color: var(--muted); margin: 0 0 26px; }

/* Key fix: contain the iframe fully within the card, no bleed in either direction */
.apply-form-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;         /* kills the stray horizontal scrollbar */
  border-radius: 10px;
  box-sizing: border-box;
}
.apply-form-embed iframe {
  display: block;
  width: 100% !important;   /* override any inline width from the embed script */
  max-width: 100%;
  border: none;
  box-sizing: border-box;   /* prevents border/padding pushing width past 100% */
  min-height: 1400px;       /* fallback tall enough to show the full multi-section form before resize fires */
}

/* Loading state shown until form_embed.js reports real height */
.apply-form-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: white;
  z-index: 2;
}
.apply-form-loading span { font-size: 13px; color: var(--muted); font-weight: 500; }
.apply-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--silver-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: apply-spin 0.8s linear infinite;
}
@keyframes apply-spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apply-layout { grid-template-columns: 1fr; gap: 44px; }
  .apply-info { position: static; max-width: none; }
  .apply-trust-inner { gap: 20px; }
}
@media (max-width: 640px) {
  .apply-form-wrap { padding: 24px 16px; }
  .apply-form-embed iframe { min-height: 1600px; } /* form stacks taller on narrow screens */
}