/* ============================================================
   CBT NEET UG.COM — Online Simulation Portal
   Global Design Tokens & Layout
   ============================================================ */

:root {
  --navy:        #0f2c59;
  --navy-deep:   #0a1f42;
  --panel-navy:  #14356b;
  --gold:        #e8b23c;
  --gold-hover:  #d19f2f;
  --brand-purple:      #6b6ef5;
  --brand-purple-hover:#5a5de0;
  --brand-purple-soft: #eef0ff;
  --teal:              #4dbfb1;
  --border-soft: #e2e6ec;
  --border-mid:  #d5dbe4;
  --text-dark:   #1a1a1a;
  --text-label:  #33415c;
  --text-muted:  #6b7280;
  --hover-grey:  #f1f4f9;
  --surface-soft:   #f6f7fb;
  --surface-softer: #fafbfd;
  --sys-grey:    #e4e4e4;
  --sys-border:  #c8c8c8;
  --sys-edge:    #9a9a9a;
  --input-edge:  #767676;
  --muted-btn:   #eceff3;
  --radius:      0.625rem;
  --shadow-card:       0 2px 10px -2px rgba(15, 44, 89, 0.08);
  --shadow-card-hover: 0 16px 34px -14px rgba(15, 44, 89, 0.28);
  --danger:      #d94a4a;
  --success:     #2f9d68;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ================= HEADER ================= */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(15, 44, 89, 0.06);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo { height: 90px; width: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.btn-nav:hover { background: var(--hover-grey); }

.btn-nav-primary {
  background: var(--navy);
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
}
.btn-nav-primary:hover { background: var(--navy-deep); }

.header-divider {
  margin: 0 4px;
  height: 20px;
  width: 1px;
  background: var(--border-soft);
}

/* ================= FORM CONTROLS ================= */
.select {
  border: 1px solid var(--border-mid);
  background: #ffffff;
  border-radius: 6px;
  color: var(--text-dark);
  font-family: inherit;
  appearance: auto;
}
.select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.2);
}
.select-sm { padding: 6px 12px; font-size: 13px; }
.select-full { width: 100%; padding: 10px 12px; font-size: 14px; }

/* ================= NAVY MAIN AREA ================= */
.navy-main {
  background-color: var(--navy);
  flex: 1;
  padding-bottom: 40px;
}
.page-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px;
}
.grid-2col {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Left video panel */
.panel-dark {
  background: var(--panel-navy);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 20px;
}

/* ============ VIDEO PLAYER ============ */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.intro-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border: none; background: transparent;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 3;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play-btn.hidden { opacity: 0; pointer-events: none; }

.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.video-wrapper:hover .video-controls,
.video-wrapper.playing .video-controls { opacity: 1; }

.vc-btn {
  border: none; background: transparent; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border-radius: 4px;
  transition: background-color 0.15s ease;
}
.vc-btn:hover { background: rgba(255,255,255,0.15); }

.vc-progress {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px; cursor: pointer;
  position: relative; overflow: hidden;
}
.vc-progress-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.1s linear;
}
.vc-time { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 78px; text-align: center; }

/* Right form card */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 24px;
}
.field { margin-bottom: 20px; transition: opacity 0.2s ease, max-height 0.3s ease; }
.field.field-hidden { display: none; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-label);
  margin-bottom: 8px;
}

/* Navy buttons */
.btn-navy {
  border: none;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-radius: 6px;
  padding: 12px 0;
  transition: opacity 0.15s ease;
}
.btn-navy:hover { opacity: 0.95; }
.btn-block { width: 100%; }

/* Contact-for-demo ghost button */
.demo-row {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 340px;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1.2;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.15); }

.welcome {
  margin-top: 72px;
  text-align: center;
  color: #ffffff;
}
.welcome h1 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.welcome p {
  margin: 16px auto 0;
  max-width: 56rem;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy-deep);
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-col a:hover { color: #ffffff; }
.footer-lang { max-width: 180px; margin-bottom: 8px; color: var(--text-dark); }
.footer-bottom {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom p { margin-bottom: 8px; }
.footer-disclaimer { font-size: 11px; color: rgba(255, 255, 255, 0.55); max-width: 800px; margin: 0 auto; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .page-wrap { padding: 24px 16px; }
  .logo { height: 60px; }
  .demo-row { justify-content: center; }
  .btn-ghost-light { width: 100%; max-width: 340px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-lang { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .btn-nav { padding: 6px 10px; font-size: 13px; }
  .btn-nav span { display: inline; }
  .welcome h1 { font-size: 20px; }
  .welcome p { font-size: 14px; }
}

/* Professional copy alignment: explanatory text is justified; controls keep their natural alignment. */
.site-footer p, .card p, .welcome p, .field-label, .proctor-help, .privacy-line, .contact-card p, .feature-card p, .notice p, .notice li { text-align: justify; text-justify: inter-word; }
