.admission-page {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  overflow: hidden;

  &.has-default-bg {
    background: linear-gradient(135deg, #eef2f7 0%, #c3cfe2 100%);
  }

  &.has-bg-image {
    background-attachment: fixed;

    @media (max-width: 768px) {
      background-attachment: scroll;
    }
  }

  // Full-page cursor-following theme lighting
  .admission-page__cursor-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
      radial-gradient(
        520px circle at var(--cursor-x) var(--cursor-y),
        rgba(52, 152, 219, 0.22),
        rgba(52, 152, 219, 0.08) 28%,
        transparent 62%
      ),
      radial-gradient(
        220px circle at var(--cursor-x) var(--cursor-y),
        rgba(255, 255, 255, 0.14),
        transparent 72%
      );
    mix-blend-mode: soft-light;
  }

  // Override global btn-primary shimmer from globals.scss
  .btn-primary {
    background: #3498db !important;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
    overflow: visible;

    &::before {
      display: none !important;
      content: none !important;
      background: none !important;
    }

    &:hover {
      background: #2980b9 !important;
      transform: translateY(-1px);
      box-shadow: 0 8px 22px rgba(52, 152, 219, 0.42);
    }

    &:disabled {
      background: #95a5a6 !important;
      box-shadow: none;
      transform: none;
    }
  }
}

.admission-page__preload {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.admission-page__overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);

  .has-default-bg & {
    display: none;
  }
}

.admission-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.admission-card {
  max-width: 700px;
  width: 100%;
  padding: 2.25rem 2.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);

  &.extended-card {
    max-width: 820px;
  }
}

.has-bg-image .admission-card {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.35);
}

.has-default-bg .admission-card {
  background: rgba(255, 255, 255, 0.9);
}

.admission-loading {
  text-align: center;
  color: #64748b;
  padding: 2rem 0;
}

.admission-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.admission-header__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.admission-header__logo {
  max-height: 72px;
  max-width: 180px;
  object-fit: contain;
}

.admission-header__title {
  color: #0f172a;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.admission-header__subtitle {
  color: #64748b;
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.admission-header__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0 1rem;

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;

    .circle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #e2e8f0;
      color: #64748b;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    span {
      font-size: 0.85rem;
      color: #64748b;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    &.active {
      .circle {
        background: #3498db;
        color: white;
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
      }
      span {
        color: #3498db;
        font-weight: 600;
      }
    }
  }

  .line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 1rem;
    position: relative;
    top: -12px;
    transition: all 0.3s ease;

    &.active {
      background: #3498db;
    }
  }
}

.form-animation {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-content {
  h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
  }
  h5 {
    color: #34495e;
    margin-bottom: 1rem;
  }
}

.admission-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  
  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0;
  }
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95rem;
  }

  input, select, textarea, .form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e6ed;
    color: #1e293b;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;

    &:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }
  }
}

.payment-options {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 1rem;
  margin-bottom: 2rem;

  h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
    border: none;
  }

  .payment-fee-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;

    strong {
      color: #e2136e;
    }
  }

  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    label {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
      font-weight: 500;
      color: #34495e;
      padding: 0.75rem;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      transition: all 0.2s ease;
      background: white;

      &:hover {
        border-color: #cbd5e1;
      }
      
      &.active {
        border-color: #3498db;
        background: #f0f7fb;
      }

      input[type="radio"] {
        width: auto;
        margin: 0;
      }

      .radio-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .bkash-badge {
        background: #e2136e;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 0.15rem 0.5rem;
        border-radius: 1rem;
        letter-spacing: 0.04em;
      }
      
      .radio-desc {
        display: block;
        font-size: 0.85rem;
        color: #7f8c8d;
        font-weight: normal;
        margin-top: 0.2rem;
      }
    }
  }
}

.step-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;

  .ms-auto {
    margin-left: auto;
  }

  button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    &.btn-primary {
      background: #3498db;
      color: white;
      box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);

      &::before {
        display: none;
        content: none;
      }

      &:hover {
        background: #2980b9;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(52, 152, 219, 0.42);
      }

      &:disabled {
        background: #95a5a6;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
      }
    }

    &.btn-secondary {
      background: #e2e8f0;
      color: #475569;
      &:hover { background: #cbd5e1; }
    }
  }
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.admission-closed,
.alert-info {
  border: 1px solid #e0f2fe;
  padding: 2rem;
  border-radius: 8px;

  h3 { color: #0284c7; margin-bottom: 0.5rem; }
  .text-muted { color: #64748b; }
}

.alert-success {
  background: #dcfce3;
  color: #166534;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  
  h3 {
    margin-top: 0;
  }
  p {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .admission-card {
    padding: 1.5rem 1.25rem;
  }

  .step-indicator .step span {
    font-size: 0.72rem;
  }

  .admission-page .admission-page__cursor-glow {
    background:
      radial-gradient(
        320px circle at var(--cursor-x) var(--cursor-y),
        rgba(52, 152, 219, 0.16),
        transparent 65%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .admission-page .admission-page__cursor-glow {
    display: none;
  }
}
