/* ============================
   DEFAULT THEME → DARK MODE
=============================== */

:root {
  --bg: #171717;
  --text: #ffffff;
  --subtext: #cccccc;
  --yellow: #e0a730;
  --card: #1f1f1f;
}

/* Light Mode */
.light-mode {
  --bg: #ffffff;
  --text: #000000;
  --subtext: #555555;
  --yellow: #204180;
  --card: #f9f9f9;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, sans-serif;
  transition: 0.3s ease;
}

/* ============================
     HERO SECTION
=============================== */

.admission-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  gap: 40px;
  flex-wrap: wrap;
}

.admission-left {
  flex: 1;
  min-width: 300px;
}

.admission-left h1 {
  font-size: 55px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.sub {
  margin: 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow);
}

.desc {
  width: 90%;
  font-size: 16px;
  color: var(--subtext);
  margin-bottom: 25px;
}

/* BUTTONS */

.admission-btns .btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  margin: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
}

.primary {
  background: var(--yellow);
  color: #fff;
}

.outline {
  border: 2px solid var(--yellow);
  color: var(--yellow);
}

.outline2 {
  border: 2px solid var(--text);
  color: var(--text);
}

.primary:hover,
.outline:hover,
.outline2:hover {
  opacity: 0.8;
}

/* HERO IMAGE */

.admission-right img {
  width: 450px;
  max-width: 100%;
  border-radius: 15px;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Image floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ============================
     RESPONSIVE
=============================== */

@media (max-width: 900px) {
  .admission-left h1 {
    font-size: 40px;
  }

  .admission-right img {
    width: 380px;
  
  }
  .admission-btns .btn {
  display:inline-flexbox;
  font-size: 11px;
  margin: 4px;
 
}


}

@media (max-width: 600px) {
  .admission-left h1 {
    font-size: 32px;
  }

  .desc {
    width: 100%;
  }

  .admission-right {
    text-align: center;
  }

  .admission-right img {
    width: 350px;
  }
}


/* ============================
   ADMISSION PROCESS SECTION
=============================== */

.process {
  padding: 70px 5%;
  text-align: center;
}

.process h2 {
  font-size: 40px;
  margin-bottom: 40px;
  color: var(--text);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.process-card {
  background: var(--card);
  padding: 35px 25px;
  border-radius: 15px;
  transition: 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.icon {
  font-size: 42px;
  margin-bottom: 15px;
  color: var(--yellow);
}

.process-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
}

.process-card p {
  color: var(--subtext);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 600px) {
  .process h2 {
    font-size: 30px;
  }
  .process {
    padding: 5px 6%;}
}


/* ============================
   ADMISSION FORM SECTION
=============================== */

.admission-form-section {
  padding: 70px 5%;
  text-align: center;
}

.admission-form-section h2 {
  font-size: 40px;
  margin-bottom: 35px;
  color: var(--text);
}

.admission-form {
  max-width: 900px;
  margin: auto;
  background: var(--card);
  padding: 40px;
  border-radius: 15px;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */
  gap: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: 0.25s ease;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  border-color: #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--highlight);
}

.submit-btn {
  grid-column: span 2;
  padding: 15px;
  background: var(--highlight);
  border: 2px solid;
  text-align: center;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
  .admission-form-section h2 {
    font-size: 32px;
  }
  .admission-form-section {
    padding: 38px 6%;
  }
  
  .form-group.full {
    grid-column: span 1;
  }

  .submit-btn {
    grid-column: span 1;
  }
}


/* ============================
   FORM LOADER
=============================== */
.form-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 1200;
}

.form-loader[aria-hidden="false"] {
  display: flex;
}

.loader-inner {
  background: var(--card);
  padding: 22px 28px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--highlight);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: var(--text);
  font-weight: 600;
}

/* ============================
   SUCCESS POPUP
=============================== */
.form-success {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 1300;
}

.form-success[aria-hidden="false"] {
  display: flex;
}

.success-card {
  width: min(520px, 92%);
  background: var(--card);
  color: var(--text);
  padding: 32px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  position: relative;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.success-card h3 {
  margin-bottom: 6px;
}

.success-card p {
  color: var(--light-text);
  margin-bottom: 18px;
}

.success-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--light-text);
}

.success-card .btn {
  margin-top: 8px;
}
