﻿/* --- Modern Compact Form Styles for Admission Page --- */
.admission-form-modern input,
.admission-form-modern select,
.admission-form-modern textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #d1c4e9;
  font-size: 1.07rem;
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
  background: #fff;
  color: var(--text-dark);
  transition: border var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: 0 1px 4px rgba(44,44,44,0.04);
}
.admission-form-modern input:focus,
.admission-form-modern select:focus,
.admission-form-modern textarea:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 2px 12px rgba(108,52,131,0.10);
}
.admission-form-modern .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}
.admission-form-modern .form-group label {
  flex: 1 1 100%;
  font-weight: 500;
  color: var(--royal-purple);
  margin-bottom: 0.2rem;
  font-size: 1.01rem;
}
.admission-form-modern .form-row {
  display: flex;
  gap: 1rem;
}
.admission-form-modern .form-row > * {
  flex: 1 1 0;
}
.admission-form-modern .btn,
.admission-form-modern button {
  border-radius: 6px !important;
  font-size: 1.01rem !important;
  padding: 0.6rem 1.2rem !important;
  min-width: 110px;
}
.admission-form-modern input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}
.admission-form-modern select {
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%236c3483" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.7rem center/1.2em auto;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.admission-form-modern .form-group input[readonly],
.admission-form-modern .form-group input[disabled] {
  background: #f6f7fb;
  color: #888;
}
.admission-form-modern .form-group input[type="file"] {
  padding: 0.3rem 0.2rem;
  background: #fff;
  border: none;
  box-shadow: none;
}
.admission-form-modern .form-group input[type="file"]:focus {
  border: 1.5px solid var(--royal-purple);
}
.admission-form-modern .form-group input[type="checkbox"] {
  margin-top: 0;
}
.admission-form-modern .form-group label.required:after {
  content: " *";
  color: #ff9800;
}
/* Royal Career Academy - Main Stylesheet */
:root {
  --royal-purple: #6c3483;
  --orange: #ff9800;
  --white: #fff;
  --gray-bg: #f6f7fb;
  --text-dark: #222;
  --text-light: #666;
  --accent: #ff9800;
  --shadow: 0 4px 24px rgba(44, 44, 44, 0.10);
  --card-radius: 18px;
  --input-radius: 12px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --focus: #b39ddb;
}

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', Arial, sans-serif;
  margin: 0;
  background: var(--gray-bg);
  color: var(--text-dark);
  line-height: 1.7;
  scroll-behavior: smooth;
  font-size: 1.08rem;
}

main, section, .container {
  box-sizing: border-box;
}

/* Card Style */
.card, .course-card, .facility-card {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .course-card:hover, .facility-card:hover {
  box-shadow: 0 8px 32px rgba(44,44,44,0.13);
  transform: translateY(-4px) scale(1.03);
}

* {
  box-sizing: border-box;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--royal-purple) 0%, #7d39d8 50%, var(--orange) 100%);
  box-shadow: 0 6px 20px rgba(108, 52, 131, 0.25);
  z-index: 100;
  min-height: 68px;
  transition: all var(--transition);
  border-bottom: 3px solid var(--orange);
}
.navbar.scrolled {
  box-shadow: 0 8px 30px rgba(108, 52, 131, 0.35);
  min-height: 60px;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1.5rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1.2px;
  text-shadow: 0 3px 10px rgba(44, 44, 44, 0.2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(23, 20, 31, 0.18);
}
.logo::before {
  content: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all var(--transition);
  position: relative;
  font-size: 0.95rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width var(--transition);
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}
.nav-links a:hover::after {
  width: 70%;
}
.call-btn-mobile {
  display: none;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  padding: 0.6rem 0.8rem;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(248, 158, 49, 0.3);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.call-btn-mobile:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(248, 158, 49, 0.4);
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, var(--royal-purple) 70%, var(--orange) 100%);
  color: var(--white);
  padding: 4rem 0 2.5rem 0;
  text-align: center;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 8px 32px rgba(44,44,44,0.10);
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1.5px;
  font-weight: 800;
}
.hero h2 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.tagline {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}
.btn {
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: 30px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(44,44,44,0.10);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: linear-gradient(90deg, var(--orange) 80%, #ffb347 100%);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--royal-purple);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--royal-purple);
  border: 2px solid var(--orange);
  box-shadow: 0 2px 8px rgba(44,44,44,0.08);
}
.btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--royal-purple);
}

/* Highlight Banner */
.highlight-banner {
  background: linear-gradient(90deg, var(--orange) 80%, #ffb347 100%);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 1.15rem;
}

/* Courses Quick View */
.courses-quickview {
  padding: 2rem 0 1rem 0;
}
.courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.course-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  font-size: 1.13rem;
  color: var(--royal-purple);
  font-weight: 600;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card .icon {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}
.course-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 4px 16px rgba(44,44,44,0.12);
}

/* Facilities Section */
.facilities {
  background: var(--white);
  padding: 2rem 0 1rem 0;
}
.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.facility-card {
  background: var(--gray-bg);
  border-radius: var(--card-radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  font-size: 1.13rem;
  color: var(--royal-purple);
  font-weight: 600;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  color: var(--white);
}

.results-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #34124b 0%, #6c3483 48%, #f39c12 100%);
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
}

.results-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.results-hero .lead {
  max-width: 760px;
  font-size: 1.08rem;
  margin: 0;
}

.results-overview {
  margin-top: -2rem;
  padding: 0 0 1.2rem;
}

.overview-tile {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(40, 24, 57, 0.12);
  text-align: center;
  border: 1px solid rgba(108, 52, 131, 0.08);
}

.overview-tile span {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--royal-purple);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.overview-tile p {
  margin: 0;
  color: var(--text-light);
  font-weight: 600;
}

.video-section {
  padding: 2.4rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.9), rgba(246, 247, 251, 0.95));
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin: 0 0 0.45rem;
  color: #2c173e;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--text-light);
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.shorts-grid-centered {
  max-width: 260px;
}

.short-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(45, 35, 66, 0.12);
  border: 1px solid rgba(108, 52, 131, 0.08);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #140b1f;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admission-shell {
  padding: 2rem 0 3rem;
}

.admission-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.7rem;
  background: linear-gradient(135deg, #fff7df 0%, #fffdf7 52%, #f7ecff 100%);
  border-radius: 26px;
  border: 1px solid rgba(160, 123, 49, 0.16);
  box-shadow: 0 16px 36px rgba(77, 47, 18, 0.08);
}

.admission-hero-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--royal-purple), #8a46aa);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.reference-card {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
  border: 1px solid rgba(160, 123, 49, 0.18);
  box-shadow: 0 18px 32px rgba(77, 47, 18, 0.08);
}

.reference-card .form-section-title {
  margin-bottom: 1.2rem;
  color: #51321c;
}

.field-shell {
  display: block !important;
  margin-bottom: 0 !important;
}

.field-shell label {
  color: #5c4832 !important;
  font-weight: 700 !important;
  margin-bottom: 0.45rem !important;
}

.field-control,
.admission-form-modern .field-control {
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid #d8c8a6;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.field-control:focus,
.admission-form-modern .field-control:focus {
  border-color: #a56b22;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15);
}

.address-control,
.admission-form-modern .address-control {
  min-height: 110px;
}

.amount-display,
.admission-form-modern .amount-display {
  background: #f6efe0 !important;
  color: #4a2f13 !important;
  font-weight: 700;
}

.form-note {
  color: #5f4b32;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  color: #7b664f;
  font-size: 0.88rem;
}

.terms-card .terms-box {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(160, 123, 49, 0.2);
}

@media (max-width: 768px) {
  .admission-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .admission-hero-pill {
    white-space: normal;
  }

  .shorts-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }
}

.shorts-grid-centered {
  margin: 0 auto;
}

.logo::before {
  content: none !important;
}
.facility-card .icon {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

/* Why Choose Us */
.why-choose-us {
  background: var(--royal-purple);
  color: var(--white);
  padding: 2rem 0 1rem 0;
  text-align: center;
}
.why-choose-us ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.why-choose-us li {
  background: var(--orange);
  color: var(--white);
  border-radius: 20px;
  padding: 0.7rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
}

/* CTA Section */
.cta {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 2rem 0 2rem 0;
}
.cta h2 {
  margin-bottom: 1rem;
}

/* WhatsApp Floating Button — Techstar exact */
.whatsapp_float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.whatsapp_float:hover {
  transform: scale(1.12);
  color: #FFF;
}

.whatsapp-icon {
  margin-top: 2px;
  font-size: 28px;
  line-height: 1;
}

/* Back To Top with SVG progress ring */
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 90px;
  z-index: 99;
  width: 56px;
  height: 56px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  /* white card so ring is always visible on any bg */
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(53,94,252,0.18);
}

.progress-ring {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.progress-ring__track {
  fill: none;
  stroke: #dde4ff;
  stroke-width: 3.5;
}

.progress-ring__fill {
  fill: none;
  stroke: #355EFC;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 138.2;
  transition: stroke-dashoffset 0.15s linear;
}

.btt-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  background: #355EFC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  transition: background 0.2s;
}

.back-to-top:hover .btt-icon {
  background: #1a40d8;
}

/* btn-lg-square (Techstar utility) */
.btn-lg-square {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0.8rem 0 1.4rem;
}

.leader-card {
  background: #fff;
  border: 1px solid rgba(20, 39, 78, 0.1);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(20, 39, 78, 0.08);
  text-align: center;
}

.leader-photo {
  width: 190px;
  height: 290px;
  border-radius: 16px;
  object-fit: contain;
  object-position: top center;
  margin-bottom: 0.7rem;
  background: #f7f9ff;
  border: 3px solid #e0e8ff;
  padding: 0.2rem;
}

.leader-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.leader-card p {
  margin: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #5e2a80 0%, #7c3aad 55%, #f89e31 100%);
  color: var(--white);
  padding: 1.6rem 0 0.7rem 0;
  margin-top: 2rem;
  border-top: 2px solid #f8c37f;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.footer-brand span {
  font-size: 0.78rem;
  opacity: 0.9;
}
.footer-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-links a:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-1px);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.social-logo {
  width: 1.1rem;
  display: inline-flex;
  justify-content: center;
}
.footer-bottom {
  text-align: center;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  color: #f2eaf8;
}
.footer-bottom a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  line-height: 1;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover {
  background: rgba(255,255,255,0.15);
}
.hamburger.active {
  background: rgba(255,255,255,0.2);
}

/* Aadhaar Details Card */
.aadhaar-card {
  background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border: 1.5px solid #d1c4e9;
}
.aadhaar-card h3 {
  font-size: 1rem;
  color: var(--royal-purple);
  margin: 0 0 0.8rem 0;
}
.aadhaar-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.aadhaar-photo {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--royal-purple);
  background: #fff;
  display: none;
}
.aadhaar-info {
  flex: 1;
  min-width: 0;
}
.pfield {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  line-height: 1.4;
  word-break: break-word;
}
.pfield b {
  color: var(--royal-purple);
  font-size: 0.85rem;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.success-card h2 {
  color: var(--royal-purple);
  margin-bottom: 0.5rem;
}
.success-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.btn-full {
  width: 100%;
  margin-top: 1rem;
}
.email-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Admission Container */
.admission-container {
  padding: 1rem 0 2rem 0;
  max-width: 500px;
}
.page-title {
  font-size: 1.4rem;
  color: var(--royal-purple);
  margin-bottom: 1rem;
  text-align: center;
}
.req {
  color: var(--orange);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-flex {
    flex-wrap: wrap;
    position: relative;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--royal-purple);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 99;
    gap: 0;
    margin: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0;
  }
  .call-btn-mobile {
    display: inline-block;
  }
  .logo {
    font-size: 1.2rem;
  }
  .hero {
    padding: 2.5rem 0 1.5rem 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
  .tagline {
    font-size: 0.95rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  .courses-list, .facilities-list, .why-choose-us ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .course-card, .facility-card {
    padding: 1rem;
    min-width: auto;
  }
  .footer-flex {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.05rem; }
}
@media (max-width: 400px) {
  .aadhaar-profile {
    flex-direction: column;
    align-items: center;
  }
  .aadhaar-photo {
    width: 80px;
    height: 100px;
  }
}

/* Form Styles */
form, .form-group {
  width: 100%;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-weight: 600;
  color: var(--royal-purple);
  margin-bottom: 0.4rem;
  display: block;
  font-size: 1.05rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--input-radius);
  border: 1.5px solid #d1c4e9;
  font-size: 1.05rem;
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
  background: #f9f8fc;
  color: var(--text-dark);
  transition: border var(--transition), box-shadow var(--transition);
  outline: none;
  box-shadow: 0 1px 4px rgba(44,44,44,0.04);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 2px 12px rgba(108,52,131,0.10);
}
textarea {
  min-height: 60px;
  resize: vertical;
}
input[type="file"] {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0;
}

/* ================================
   Loader Overlay
   ================================ */
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 220px;
}
.spinner {
  width: 44px; height: 44px;
  border: 4px solid #e0d4f5;
  border-top: 4px solid var(--royal-purple, #6c3483);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader-box div:last-child {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}

/* ================================
   Form Card Styles
   ================================ */
.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1.5px solid #e0d4f5;
  box-shadow: 0 2px 8px rgba(108,52,131,0.06);
}
.form-card.is-locked {
  opacity: 0.75;
  background: linear-gradient(180deg, #faf8ff 0%, #f1edf8 100%);
}
.form-card.is-locked .form-section-title::after {
  content: " (Step Locked)";
  color: #8a7aa5;
  font-size: 0.82rem;
  font-weight: 600;
}
.form-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-section-title {
  font-size: 1.1rem;
  color: var(--royal-purple, #6c3483);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0d4f5;
}
.row-inline {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
}
.row-inline input {
  flex: 1;
  margin-bottom: 0;
}
.row-inline button {
  white-space: nowrap;
  flex-shrink: 0;
}

/* OTP Success Pill */
.pill-success {
  display: inline-block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ================================
   Terms & Conditions
   ================================ */
.terms-card {
  background: #faf8ff;
}
.terms-box {
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e0d4f5;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
.terms-box ol {
  padding-left: 1.2rem;
  margin: 0;
}
.terms-box li {
  margin-bottom: 0.5rem;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.terms-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--royal-purple, #6c3483);
}
.req {
  color: #e53935;
}

/* Full-width button */
.btn-full {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Email note */
.email-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.8rem;
}

/* ================================
   Progress Stepper for Form
   ================================ */
.progress-container {
  margin-bottom: 2.5rem;
  background: #f9f8fc;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1.5px solid #e0d4f5;
  box-shadow: 0 4px 14px rgba(78, 44, 115, 0.1);
}
.progress-bar-bg {
  background: #e0d4f5;
  height: 6px;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-purple), var(--orange));
  border-radius: 10px;
  width: 0%;
  transition: width 0.4s ease-in-out;
  box-shadow: 0 0 12px rgba(248, 158, 49, 0.5);
}
.progress-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--royal-purple);
  margin-bottom: 1.2rem;
}
.progress-text .percentage {
  color: var(--orange);
  font-size: 1.3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-item {
  text-align: center;
  padding: 1rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #d1c4e9;
  transition: all 0.3s ease;
  cursor: default;
}
.step-item.active {
  background: linear-gradient(135deg, #f3e5f5, #e8d4ff);
  border-color: var(--royal-purple);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(108, 52, 131, 0.2);
}
.step-item.completed {
  background: #e8f5e9;
  border-color: #4caf50;
}
.step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--royal-purple);
  margin-bottom: 0.4rem;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #f3e5f5;
  transition: all 0.3s ease;
}
.step-item.active .step-number {
  background: linear-gradient(135deg, var(--royal-purple), var(--orange));
  color: var(--white);
  transform: scale(1.15);
}
.step-item.completed .step-number {
  background: #4caf50;
  color: var(--white);
  font-size: 1.4rem;
}
.step-item.completed .step-number::before {
  content: '✓';
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-top: 0.6rem;
  display: block;
  transition: color 0.3s ease;
}
.step-item.active .step-name {
  color: var(--royal-purple);
  font-weight: 700;
}
.step-item.completed .step-name {
  color: #4caf50;
  font-weight: 700;
}
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
  }
  .step-item {
    padding: 0.55rem 0.35rem;
  }
  .step-number {
    font-size: 1.05rem;
    width: 28px;
    height: 28px;
    line-height: 28px;
  }
  .step-name {
    font-size: 0.68rem;
    margin-top: 0.35rem;
  }
  .footer-flex {
    align-items: flex-start;
  }
  .footer-links {
    gap: 0.35rem;
  }
}

/* Page title */
.page-title {
  text-align: center;
  color: var(--royal-purple, #6c3483);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Admission form modern */
.admission-form-modern {
  max-width: 600px;
  margin: 0 auto;
}

/* Aadhaar info fields */
.pfield {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.aadhaar-info {
  flex: 1;
}

/* Success icon */
.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .footer-bottom {
    font-size: 0.76rem;
    line-height: 1.4;
  }
}

/* =========================================
   Premium UI Override Layer (CSS only)
   ========================================= */
:root {
  --royal-purple: #14274e;
  --orange: #c79b3b;
  --gray-bg: #f3f5fa;
  --text-dark: #172037;
  --text-light: #56607a;
  --accent: #c79b3b;
  --shadow: 0 14px 38px rgba(20, 39, 78, 0.12);
  --card-radius: 20px;
  --input-radius: 14px;
  --focus: #3c5da3;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 155, 59, 0.14), transparent 34%),
    radial-gradient(circle at 85% 22%, rgba(20, 39, 78, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fafd 0%, #edf2f8 100%);
  color: var(--text-dark);
}

h1, h2, h3 {
  color: #132246;
  letter-spacing: 0.2px;
}

p, li {
  color: var(--text-light);
}

.navbar {
  background: linear-gradient(110deg, #0f2144 0%, #1f3a6d 56%, #c79b3b 140%);
  border-bottom: 1px solid rgba(199, 155, 59, 0.45);
  backdrop-filter: blur(6px);
}

.nav-flex {
  min-height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.6px;
}

.logo::before {
  content: "";
}

.nav-links a {
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(199, 155, 59, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(199, 155, 59, 0.24), transparent 28%),
    linear-gradient(120deg, #0f2144 0%, #1a3770 70%, #2d4f8d 100%);
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  padding: 5rem 0 3.2rem 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.hero h2 {
  color: #d6dfef;
}

.tagline {
  color: #ecf1fc;
}

.btn {
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(90deg, #c79b3b 0%, #e1b95f 100%);
  color: #102247;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #b88925 0%, #d5a94a 100%);
  color: #0d1d3a;
}

.btn-secondary {
  border-color: rgba(199, 155, 59, 0.82);
  color: #133064;
}

.highlight-banner {
  background: linear-gradient(90deg, #123066 0%, #21437f 64%, #c79b3b 150%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.courses-quickview,
.facilities,
.cta,
.why-choose-us {
  position: relative;
}

.course-card,
.facility-card,
.form-card,
.success-card,
.aadhaar-card,
.progress-container,
main > section.container[style] {
  border: 1px solid rgba(20, 39, 78, 0.08);
  box-shadow: 0 14px 30px rgba(13, 31, 66, 0.08);
}

.course-card,
.facility-card {
  min-height: 100%;
}

.course-card .icon,
.facility-card .icon {
  filter: drop-shadow(0 4px 8px rgba(17, 36, 73, 0.24));
}

.courses-list,
.facilities-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.courses-list .course-card,
.facilities-list .facility-card {
  align-items: flex-start;
  text-align: left;
}

.courses-list .course-card .btn {
  margin-top: auto;
}

.courses-list .course-card ul {
  margin: 0.25rem 0 1rem 1rem;
  padding: 0;
}

.courses-list .course-card li {
  margin-bottom: 0.35rem;
}

.why-choose-us {
  background: linear-gradient(115deg, #0f2144 0%, #1f3f76 75%);
}

.why-choose-us li {
  background: rgba(199, 155, 59, 0.2);
  border: 1px solid rgba(199, 155, 59, 0.55);
}

.cta {
  background: linear-gradient(100deg, #112b5a 0%, #1c3f7f 65%, #c79b3b 160%);
}

main > section.container[style] {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  margin-top: 1.5rem;
  padding: 2rem 1.2rem 1.3rem 1.2rem !important;
}

main > section.container[style] h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

main > section.container[style] a {
  color: #1e4688;
  font-weight: 600;
}

input,
select,
textarea {
  background: #fbfcff;
  border-color: #cfd7ea;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3f5f9f;
  box-shadow: 0 0 0 4px rgba(55, 90, 156, 0.14);
}

.terms-box {
  background: #f8faff;
}

.footer {
  background: linear-gradient(110deg, #0f2144 0%, #1f3f76 58%, #c79b3b 140%);
  border-top: 1px solid rgba(199, 155, 59, 0.6);
}



@media (max-width: 1100px) {
  .courses-list,
  .facilities-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-flex {
    gap: 0.75rem;
  }

  .nav-links {
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .navbar {
    min-height: 64px;
  }

  .nav-flex {
    min-height: 64px;
  }

  .nav-links {
    background: linear-gradient(180deg, #11254c 0%, #183565 100%);
    border-top: 1px solid rgba(199, 155, 59, 0.45);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    max-height: 420px;
    opacity: 1;
  }

  .call-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 2.8rem 0 2rem 0;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero-btns .btn {
    width: min(290px, 100%);
    text-align: center;
  }

  .courses-list,
  .facilities-list,
  .why-choose-us ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .course-card,
  .facility-card {
    padding: 1.1rem;
  }

  main > section.container[style] {
    margin-top: 1rem;
    padding: 1.2rem 0.85rem 1rem 0.85rem !important;
  }

  .admission-container {
    padding-top: 0.8rem;
  }

  .row-inline {
    flex-direction: column;
  }

  .row-inline button {
    width: 100%;
  }

  .whatsapp-float,
  .whatsapp-float img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(96%, 560px);
    padding: 0 0.35rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hamburger {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 1.48rem;
  }

  .hero h2 {
    font-size: 0.95rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.96rem;
    padding: 0.72rem 1.2rem;
  }

  .page-title,
  h1 {
    font-size: 1.28rem;
  }

  .form-section-title,
  h2 {
    font-size: 1.04rem;
  }

  .footer {
    margin-top: 1.3rem;
  }
}

@media (max-width: 420px) {
  .nav-flex {
    gap: 0.45rem;
  }

  .call-btn-mobile {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 2.3rem 0 1.7rem 0;
  }

  .hero-btns {
    gap: 0.6rem;
  }

  .course-card,
  .facility-card,
  .form-card,
  .success-card,
  .aadhaar-card {
    border-radius: 14px;
    padding: 0.95rem;
  }

  .course-card .btn,
  .facility-card .btn {
    width: 100%;
    text-align: center;
  }

  .progress-container {
    padding: 0.7rem;
  }

  .step-item {
    padding: 0.45rem 0.3rem;
  }

  .step-name {
    font-size: 0.64rem;
  }

  main > section.container[style] {
    border-radius: 14px;
  }

  main > section.container[style] div[style] {
    margin-bottom: 1rem !important;
  }

  main > section.container[style] a {
    word-break: break-word;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-contact {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    width: 97%;
    padding: 0 0.2rem;
  }

  .logo {
    font-size: 0.95rem;
    max-width: 68%;
  }

  .hamburger {
    padding: 0.2rem 0.35rem;
  }

  .hero h1 {
    font-size: 1.32rem;
  }

  .hero h2 {
    font-size: 0.88rem;
  }

  .tagline {
    font-size: 0.84rem;
    margin-bottom: 1.4rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.68rem 1rem;
  }

  .page-title,
  h1 {
    font-size: 1.15rem;
  }

  .form-section-title,
  h2,
  h3 {
    font-size: 0.96rem;
  }

  input,
  select,
  textarea {
    font-size: 0.95rem;
    padding: 0.64rem 0.78rem;
  }

  .nav-links a {
    padding: 0.72rem 0.7rem;
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.72rem;
  }
}

/* --- Targeted UI updates (About, Contact, Admission amount) --- */
.about-social-links {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1.1rem;
}

.about-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #17356a;
  font-weight: 700;
  background: #f4f8ff;
  border: 1px solid #d4e1f8;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}

.about-social-links a:hover {
  background: #e9f2ff;
}

.about-social-links img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(14, 35, 73, 0.18);
}

.map-card {
  background: #f4f8ff;
  border: 1px solid #d4e1f8;
  border-radius: 14px;
  padding: 1rem;
  max-width: 420px;
}

.map-preview {
  width: 100%;
  height: 240px;
  border: 1px solid #c7d8f7;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.map-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.map-card p {
  margin: 0 0 0.8rem;
  color: #253f6f;
  font-weight: 600;
}

.amount-display,
.admission-form-modern .amount-display {
  background: linear-gradient(135deg, #f9f1d8 0%, #fbe8bf 100%) !important;
  border: 1px solid #ddb770 !important;
  color: #4b3314 !important;
  letter-spacing: 0.4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 14px rgba(112, 78, 23, 0.14);
}

/* Footer and social list: show academy logo before social links */
.social-logo {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #fff center/cover no-repeat;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(14, 35, 73, 0.22);
}

.social-logo-instagram {
  background-image: url('../images/instagram.svg');
}

.social-logo-youtube {
  background-image: url('../images/youtube.svg');
}

/* Admission page width/layout fix */
.admission-shell.admission-container {
  max-width: 1120px;
  width: min(96%, 1120px);
}

.admission-shell .admission-form-modern {
  max-width: 100%;
}

.admission-shell #restOfForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admission-shell #step2Card,
.admission-shell #step3Card {
  margin-bottom: 0;
}

.admission-shell #termsCard,
.admission-shell #payBtn {
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .admission-shell #restOfForm {
    grid-template-columns: 1fr;
  }
}

/* Step 1 compact layout */
.admission-shell #aadhaarCard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admission-shell #aadhaarCard > .form-section-title,
.admission-shell #aadhaarCard > #otpStatusWrap,
.admission-shell #aadhaarCard > #otpSection,
.admission-shell #aadhaarCard > #aadhaarDetails {
  grid-column: 1 / -1;
}

.admission-shell #aadhaarCard .form-group {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .admission-shell #aadhaarCard {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Firebase Auth System Styles
   ================================================================ */

/* Auth Global Loader */
.auth-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.55);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.auth-loader-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 16px 48px rgba(14, 39, 78, 0.2);
  min-width: 200px;
}
.auth-loader-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #56607a;
}
.auth-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #dde4ff;
  border-top-color: #355EFC;
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Registration Modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 20, 50, 0.58);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal-card {
  background: #fff;
  border-radius: 26px;
  padding: 2rem 2rem 1.75rem;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 28px 72px rgba(14, 39, 78, 0.24);
  animation: auth-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes auth-modal-in {
  from { opacity: 0; transform: translateY(32px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.auth-modal-head {
  text-align: center;
  margin-bottom: 1.6rem;
}
.auth-modal-pic {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #e8eeff;
  margin-bottom: 0.8rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.auth-modal-head h2 {
  font-size: 1.3rem;
  color: #14274e;
  margin: 0 0 0.35rem;
  letter-spacing: 0;
}
.auth-modal-head p {
  font-size: 0.88rem;
  color: #667;
  margin: 0;
}

/* Modal Form Fields */
.auth-field {
  margin-bottom: 1.15rem;
}
.auth-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #14274e;
  margin-bottom: 0.42rem;
}
.auth-req { color: #e53935; }
.auth-field input {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border: 1.5px solid #cdd7f0;
  border-radius: 11px;
  font-size: 1rem;
  outline: none;
  background: #fafbff;
  color: #14274e;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}
.auth-field input:focus {
  border-color: #355EFC;
  box-shadow: 0 0 0 3px rgba(53, 94, 252, 0.13);
}
.auth-input-err {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.10) !important;
}
.auth-err {
  display: block;
  font-size: 0.78rem;
  color: #e53935;
  margin-top: 0.3rem;
  min-height: 1em;
}
.auth-field-email .auth-email-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f4f9;
  border-radius: 9px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  color: #445;
  border: 1px solid #e2e2ee;
}
.auth-save-btn {
  display: block;
  width: 100%;
  padding: 0.88rem;
  background: linear-gradient(90deg, #355EFC 0%, #5a7fff 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.2px;
}
.auth-save-btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.auth-save-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Navbar Auth Controls */
.auth-nav-user-wrap,
.auth-nav-signin-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-nav-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.auth-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  transition: border-color 0.2s;
}
.auth-nav-avatar-btn:hover .auth-nav-avatar { border-color: #fff; }

.auth-nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(14, 39, 78, 0.18);
  min-width: 210px;
  z-index: 10000;
  overflow: hidden;
  padding: 0.4rem 0;
}
.auth-nav-dropdown.open { display: block; }
.auth-nav-info {
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid #f0f0f8;
}
.auth-nav-info strong {
  display: block;
  font-size: 0.9rem;
  color: #14274e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.auth-nav-info span {
  font-size: 0.76rem;
  color: #999;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.auth-nav-dd-link {
  display: block;
  width: 100%;
  padding: 0.58rem 1rem;
  text-align: left;
  text-decoration: none;
  color: #14274e;
  font-size: 0.87rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
.auth-nav-dd-link:hover { background: #f0f5ff; color: #355EFC; }

.auth-signin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  border-radius: 20px;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.auth-signin-nav-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* Google Sign-In Fallback Button */
.google-signin-wrap {
  margin-top: 1.6rem;
  text-align: center;
}
.auth-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1.5px solid #d8dce8;
  border-radius: 10px;
  padding: 0.72rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #14274e;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, transform 0.15s;
}
.auth-google-btn:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.13); transform: translateY(-1px); }

/* Toast Notification */
.auth-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: #14274e;
  color: #fff;
  padding: 0.78rem 1.6rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.auth-toast.auth-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.auth-toast.auth-toast-error { background: #c62828; }

/* Dashboard Page */
.dash-loading {
  padding: 5rem 0;
  text-align: center;
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: linear-gradient(120deg, #14274e 0%, #1f3a6d 65%, #c79b3b 150%);
  color: #fff;
  border-radius: 26px;
  padding: 2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.dash-profile-pic {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  object-fit: cover;
  flex-shrink: 0;
}
.dash-header-info h1 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.3rem;
}
.dash-email,
.dash-created { color: rgba(255,255,255,0.82); margin: 0 0 0.15rem; font-size: 0.88rem; }
.dash-created { font-size: 0.78rem; opacity: 0.72; }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.dash-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(14, 39, 78, 0.08);
  border: 1px solid rgba(20, 39, 78, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(14,39,78,0.13); }
.dash-card-icon { font-size: 1.9rem; color: #355EFC; margin-bottom: 0.5rem; }
.dash-card-label {
  font-size: 0.76rem;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.35rem;
}
.dash-card-val { font-size: 0.97rem; font-weight: 700; color: #14274e; }
.dash-card-val a { color: #355EFC; text-decoration: none; }
.dash-card-val a:hover { text-decoration: underline; }

.dash-signout-btn {
  border-radius: 12px;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Auth responsive */
@media (max-width: 600px) {
  .dash-header { padding: 1.3rem; gap: 1rem; flex-direction: column; align-items: flex-start; }
  .auth-modal-card { padding: 1.4rem; border-radius: 20px; }
  .auth-toast { white-space: normal; max-width: 88vw; text-align: center; }
  .auth-signin-nav-btn { font-size: 0.8rem; padding: 0.32rem 0.7rem; }
}
