/* NMIMS CDOE programmes - Edujam (Affiliate Enquiry Partner) landing page. */

:root {
  /* Theme: the original orange (#ff5c35) and violet (#724aff). */
  --violet-900: #241458;
  --violet-800: #3a2496;
  --violet-700: #5b3be6;
  --violet-600: #724aff;
  --violet-100: #eee8ff;
  --orange: #ff5c35;
  --orange-600: #e8461f;
  --orange-100: #fff0eb;
  --gradient: linear-gradient(90deg, #ff5c35 16%, #ff3935 49%, #724aff 81%);
  --cream: #faf9ff;
  --ink: #1d1b26;
  --muted: #5b5870;
  --line: #e6e2f2;
  --white: #fff;
  --danger: #b42318;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(36, 20, 88, 0.08);
  --shadow-lg: 0 24px 60px rgba(36, 20, 88, 0.18);
  --wrap: 1352px; /* 1296px of content, as on the original page */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 88px 0; } }
.section--white { background: var(--white); }
.section-head { max-width: 720px; margin: 0 0 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-600); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--violet-900); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(255, 92, 53, 0.35); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--dark { background: var(--violet-800); color: var(--white); }
.btn--dark:hover { background: var(--violet-700); }
.btn--ghost { background: transparent; color: var(--violet-800); border: 1.5px solid var(--violet-800); }
.btn--ghost:hover { background: var(--violet-800); color: var(--white); }
.btn--light { background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.22); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--violet-800); text-decoration: none; font-size: 15px; }
.header-call svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .header-call { display: inline-flex; } }
.site-header .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
/* NMIMS CDOE logo left, NMIMS Online logo right (as on the original header). */
.header-logo { display: block; flex: none; }
.header-logo img { height: 48px; width: auto; }
.header-online-logo { height: 26px; width: auto; }
@media (min-width: 768px) {
  .site-header .wrap { min-height: 76px; }
  .header-logo img { height: 54px; }
  .header-online-logo { height: 30px; margin-right: 8px; }
}
/* Phones: just the two logos; the bottom bar has Call / Apply. */
@media (max-width: 767px) {
  .site-header .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 92, 53, 0.30), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(114, 74, 255, 0.55), transparent 45%),
    linear-gradient(135deg, var(--violet-900), var(--violet-700));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .wrap { position: relative; display: grid; gap: 36px; padding-top: 44px; padding-bottom: 56px; }
@media (min-width: 992px) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
}
.hero__by { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px; }
.hero__by img { height: 26px; width: auto; }
.hero__by span { font-size: 12px; font-weight: 700; color: var(--violet-800); letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, 0.85); max-width: 560px; }
.hero__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.hero__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.hero__points svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 1px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 600;
}
.badge strong { color: var(--orange); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (min-width: 992px) { .hero__cta { display: none; } }

.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--gradient); }
.site-footer { border-top: 8px solid transparent; border-image: var(--gradient) 1; }

/* ---------- Thank-you page ---------- */
.ty-hero .wrap { grid-template-columns: 1fr !important; justify-items: center; text-align: center; padding-top: 64px; padding-bottom: 72px; }
.ty { max-width: 720px; display: flex; flex-direction: column; align-items: center; }
.ty__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(255, 92, 53, 0.4); }
.ty__icon svg { width: 38px; height: 38px; }
.ty h1 em { display: block; }
.ty .hero__lead { margin-left: auto; margin-right: auto; }
.ty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.ty__back { margin-top: 32px; text-align: center; }

/* ---------- Lead form ---------- */
.form-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 26px 22px;
  box-shadow: var(--shadow-lg); position: relative;
}
@media (min-width: 768px) { .form-card { padding: 32px 30px; } }
.form-card__title { font-size: 24px; font-weight: 800; color: var(--violet-900); }
.form-card__sub { color: var(--muted); font-size: 15px; margin-top: 6px; margin-bottom: 20px; }
.fields { display: grid; gap: 12px; }
@media (min-width: 480px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--violet-800); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); transition: border-color 0.2s, background 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23724aff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus { border-color: var(--violet-600); background-color: var(--white); outline: none; }
.field .is-invalid { border-color: var(--danger); background-color: #fef3f2; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--violet-700); }
.consent input.is-invalid { outline: 2px solid var(--danger); outline-offset: 1px; }
.consent a { color: var(--violet-700); font-weight: 600; }
.form-error {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px;
  color: var(--danger); background: #fef3f2; border: 1px solid #fecdca;
}
.form-error[hidden] { display: none; }
.form-card .btn--block { margin-top: 16px; padding: 14px 22px; font-size: 16px; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Programmes ---------- */
.programs { display: grid; gap: 20px; }
@media (min-width: 768px) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.program__top { display: flex; align-items: center; gap: 14px; }
.program__top img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--orange-100); }
.program h3 { font-size: 20px; font-weight: 800; color: var(--violet-900); }
.program__meta { font-size: 13px; font-weight: 700; color: var(--orange-600); }
.program__desc { margin-top: 14px; color: var(--muted); font-size: 15px; }
.program__list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.program__list li { display: flex; gap: 10px; font-size: 14.5px; }
.program__list li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--violet-600); flex: none; }
.program__list li.is-extra { display: none; }
.program.is-open .program__list li.is-extra { display: flex; }
.program__actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; color: var(--violet-700); text-decoration: underline; text-underline-offset: 3px; }
.program .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Why ---------- */
.why { display: grid; gap: 16px; }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why__item { background: var(--cream); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.why__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-100); color: var(--violet-700); display: grid; place-items: center; margin-bottom: 16px; }
.why__icon svg { width: 24px; height: 24px; }
.why__item h3 { font-size: 18px; font-weight: 800; color: var(--violet-900); }
.why__item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- About + stats ---------- */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .about { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.about__text p { color: var(--muted); font-size: 16.5px; }
.about__text p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--violet-800); color: var(--white); border-radius: var(--radius); padding: 22px 14px; text-align: center; }
.stat__num { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.35; }

/* ---------- Campus Connect+ ---------- */
.immersion { background: var(--violet-900); color: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; display: grid; gap: 28px; }
@media (min-width: 992px) { .immersion { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 48px; } }
.immersion h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.immersion p { margin-top: 12px; color: rgba(255, 255, 255, 0.82); }
.immersion__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.immersion__nums div { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.immersion__nums strong { display: block; font-size: 32px; font-weight: 800; color: var(--orange); line-height: 1; }
.immersion__nums span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.85); line-height: 1.35; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--orange); color: var(--white); font-weight: 800; display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 800; color: var(--violet-900); }
.step p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: none; border: 0; padding: 18px 20px; font-weight: 700; font-size: 16px; color: var(--violet-900);
}
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--violet-600); transition: transform 0.2s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq__a[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange-100); border-top: 1px solid #ffd6ca; border-bottom: 1px solid #ffd6ca; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 768px) { .cta-band .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; color: var(--violet-900); }
.cta-band p { color: var(--muted); margin-top: 4px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--violet-900); color: rgba(255, 255, 255, 0.78); padding: 40px 0 96px; font-size: 14px; }
@media (min-width: 992px) { .site-footer { padding-bottom: 40px; } }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a { color: var(--white); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; color: var(--orange); }
.disclaimer { line-height: 1.7; }
.disclaimer strong { color: var(--white); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: var(--white); }

/* ---------- Mobile apply bar ---------- */
.apply-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 10px 12px;
  background: var(--white); box-shadow: 0 -6px 20px rgba(36, 20, 88, 0.12);
}
.apply-bar .btn { flex: 1; padding: 12px 10px; }
@media (min-width: 992px) { .apply-bar { display: none; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 84px; z-index: 46; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (min-width: 992px) { .wa-float { right: 24px; bottom: 24px; width: 60px; height: 60px; } }

/* ---------- Dialogs (enquiry popup, thank-you) ---------- */
.dialog {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto; background: rgba(36, 20, 88, 0.6);
}
.dialog.is-open { display: flex; }
.dialog__panel { position: relative; width: 100%; max-width: 480px; margin: auto; animation: rise 0.25s ease-out; }
.dialog__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--violet-800); font-size: 22px; line-height: 1;
}
.dialog__close:hover { background: var(--line); }
.thanks { background: var(--white); border-radius: var(--radius-lg); padding: 40px 28px 30px; text-align: center; box-shadow: var(--shadow-lg); }
.thanks__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; }
.thanks__icon svg { width: 32px; height: 32px; }
.thanks h2 { font-size: 26px; font-weight: 800; color: var(--violet-900); }
.thanks p { margin: 10px 0 24px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .apply-bar, .wa-float, .dialog { display: none !important; } }
