/* MUIT Noida – Admission page (apply.css)
   Place in: wwwroot/std/css/apply.css */

:root {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --saffron: #f28c28;
  --saffron-dark: #d9741a;
  --paper: #eef1f6;
  --card: #ffffff;
  --ink: #1b2236;
  --muted: #5d667c;
  --line: #d8deea;
  --danger: #c0392b;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(340px, 440px) 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

.side {
  grid-row: 1 / span 2;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* quiet chakra-like rings behind the side panel */
.side::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(242, 140, 40, .16) 0 2px,
      transparent 2px 28px);
  pointer-events: none;
}

.brand, .info { position: relative; z-index: 1; padding: 0 40px; }

.brand { padding-top: 32px; }

.logo-box {
  display: inline-block;
  background: transparent;
  padding: 0;
}
.logo-box img { display: block; width: 320px; max-width: 100%; height: auto; }

.brand h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 28px 0 12px;
}
.brand h1 span { display: block; color: var(--saffron); }

.brand p {
  margin: 0;
  color: #c3cce0;
  max-width: 34ch;
}

/* ---------- How to apply (real sequence → numbered) ---------- */
.info { padding-top: 40px; padding-bottom: 36px; }

.info h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  font-weight: 600;
}

.steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, .18);
}
.steps li {
  position: relative;
  padding: 0 0 18px 48px;
  color: #dbe2f1;
}
.steps li:last-child { padding-bottom: 0; }
.steps .n {
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--saffron);
  color: var(--navy);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong { color: #fff; }

.contact {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 20px;
}
.contact h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
  color: #fff;
}
.contact ul { list-style: none; margin: 0 0 20px; padding: 0; }
.contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  color: #c3cce0;
  font-size: 14px;
}
.contact li i { width: 18px; color: var(--saffron); margin-top: 4px; text-align: center; }
.contact li a { text-decoration: none; color: #fff; }
.contact li a:hover { text-decoration: underline; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Main (form) ---------- */
.main {
  display: flex;
  flex-direction: column;
}

/* top bar: admissions label + helpline */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.topbar-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, .22);
}
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.topbar-call .ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background .15s;
}
.topbar-call:hover .ico { background: var(--saffron); color: var(--navy); }
.topbar-call small {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}
.topbar-call strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.card-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 32px 8px;
}

.card {
  width: 100%;
  max-width: 660px;
  background: var(--card);
  border-radius: 18px;
  border-top: 4px solid var(--saffron);
  padding: 28px 32px 32px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 18px 48px -20px rgba(20, 33, 61, .28);
}

.card-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -.01em;
  margin: 0 0 2px;
}
.card-head p { margin: 0; color: var(--muted); }

/* segmented tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--paper);
  padding: 4px;
  border-radius: 12px;
  margin: 18px 0 20px;
}
.tab {
  font: inherit;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(20, 33, 61, .18);
}

.panel[hidden] { display: none; }

/* form */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--navy);
}
.field label .req { color: var(--danger); }
.field .err { color: var(--danger); font-weight: 600; margin-left: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235d667c' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input::placeholder { color: #98a1b6; }
.field input:hover, .field select:hover { border-color: #b4bdd1; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20, 33, 61, .12);
}
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex: none;
}

.btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  background: var(--saffron);
  color: var(--navy);
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--saffron-dark); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }

.form-msg {
  color: var(--danger);
  font-weight: 700;
  text-align: center;
  margin: 14px 0 0;
}

.hint { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

/* ---------- Footer ---------- */
.foot {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 24px;
  color: var(--muted);
  font-size: 13px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 960px) {
  .shell { display: flex; flex-direction: column; }
  .side { display: contents; }
  .side::before { display: none; }

  .brand { order: 1; background: var(--navy); padding: 18px 22px; }
  .brand h1 { font-size: 32px; margin-top: 18px; }
  .main { order: 2; }
  .topbar { padding: 12px 18px; justify-content: center; }
  .topbar-title { display: none; }
  .card-wrap { padding: 18px 16px 0; }
  .card { padding: 22px 18px 24px; border-radius: 16px; }
  .info { order: 3; background: var(--navy); margin-top: 32px; padding: 30px 22px; }
  .foot { order: 4; background: var(--navy); color: #aeb9d3; padding: 16px 22px 24px; }
  .foot a:hover { color: #fff; }
  .logo-box img { width: 250px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- OTP page ---------- */
.field input.otp-input {
  width: 100%;
  height: 62px;
  padding: 0 0 0 .5em;
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5em;
  text-align: center;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field input.otp-input::placeholder {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  color: #98a1b6;
}
.field input.otp-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(20, 33, 61, .12);
}

.btn.outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn.outline:hover { background: var(--paper); border-color: #b4bdd1; }

.otp-actions { display: grid; gap: 12px; margin-top: 20px; }
.otp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}
.otp-divider::before, .otp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.back-link:hover { color: var(--navy); text-decoration: underline; }
.otp-narrow { max-width: 520px; }

/* tab used as a link or label */
.tab { display: block; text-align: center; text-decoration: none; }
