/* ============================================================
   ST. NILA CARMEL SCHOOL — Admission Registration Stylesheet
   Author : SNCS Web Team
   Version: 1.0.0
   Depends: style.css (must be loaded first)
   ============================================================ */

/* ── PAGE HERO ── */
.reg-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a9b 100%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.reg-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
}

.reg-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(201,168,76,0.05);
}

.reg-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.reg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.reg-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.reg-hero__title span {
  color: var(--gold-light);
}

.reg-hero__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

.reg-hero__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 36px;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-step__num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201,168,76,0.18);
  border: 2px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.reg-step.active .reg-step__num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.reg-step.done .reg-step__num {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.reg-step__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.reg-step.active .reg-step__label {
  color: var(--gold-light);
}

.reg-step.done .reg-step__label {
  color: rgba(255,255,255,0.8);
}

.reg-step__connector {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
  border-radius: 2px;
}

.reg-step__connector.done {
  background: var(--gold);
}

/* ── FORM WRAPPER ── */
.reg-page {
  background: var(--gray-light);
  padding: 56px 0 80px;
  min-height: 60vh;
}

.reg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(10,31,68,0.06);
}

.form-card__section {
  padding: 32px 36px;
  border-bottom: 1px solid rgba(10,31,68,0.07);
  display: none;
}

.form-card__section.active {
  display: block;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.form-section-title__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-section-title__text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.form-section-title__text p {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}

/* ── FORM GRID ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-grid--full {
  grid-template-columns: 1fr;
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

/* ── FORM GROUP ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-group label .optional {
  color: var(--gray);
  font-weight: 400;
  font-size: 0.72rem;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
  background: #fffdf5;
}

.form-control::placeholder {
  color: var(--gray);
  font-size: 0.84rem;
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-control.success {
  border-color: var(--success);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9ab5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-error {
  font-size: 0.72rem;
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.field-error.visible {
  display: flex;
}

/* ── RADIO / CHECKBOX GROUPS ── */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  display: none;
}

.radio-box,
.check-box {
  width: 18px; height: 18px;
  border: 2px solid var(--gray-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  background: white;
}

.check-box {
  border-radius: 4px;
}

.radio-box::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.check-box::after {
  content: '✓';
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.radio-option input:checked ~ .radio-box,
.checkbox-option input:checked ~ .check-box {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.radio-option input:checked ~ .radio-box::after,
.checkbox-option input:checked ~ .check-box::after {
  opacity: 1;
  transform: scale(1);
}

.radio-label,
.check-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

/* Pill-style radio */
.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill {
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  display: none;
}

.radio-pill__label {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  cursor: pointer;
}

.radio-pill input:checked ~ .radio-pill__label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.radio-pill:hover .radio-pill__label {
  border-color: var(--gold);
  color: var(--navy);
}

/* ── FILE UPLOAD ── */
.file-upload {
  position: relative;
}

.file-drop-zone {
  border: 2px dashed var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  background: var(--gray-light);
  cursor: pointer;
  transition: all var(--transition);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-zone__icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.file-drop-zone__text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.file-drop-zone__sub {
  font-size: 0.72rem;
  color: var(--gray);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10,31,68,0.07);
  font-size: 0.8rem;
}

.file-list__icon { font-size: 1rem; }
.file-list__name { flex: 1; font-weight: 600; color: var(--navy); }
.file-list__size { color: var(--gray); font-size: 0.72rem; }
.file-list__remove {
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  background: none;
  border: none;
  padding: 2px 4px;
  transition: opacity var(--transition);
}
.file-list__remove:hover { opacity: 0.7; }

/* ── DECLARATION / TERMS ── */
.declaration-box {
  background: var(--cream);
  border: 1px solid rgba(10,31,68,0.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.declaration-box strong {
  color: var(--navy);
}

/* ── FORM NAVIGATION ── */
.form-nav {
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-light);
  border-top: 1px solid var(--gray-mid);
}

.form-nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  background: none;
  border: 1.5px solid var(--gray-mid);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.form-nav__back:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.form-nav__back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-nav__next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}

.form-nav__next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.45);
}

.form-nav__submit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(10,31,68,0.3);
}

.form-nav__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(10,31,68,0.4);
}

.form-nav__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-nav__progress {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
}

.form-nav__progress span {
  color: var(--navy);
  font-weight: 900;
}

/* ── SIDEBAR ── */
.reg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

/* Admission Info Card */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,31,68,0.06);
  overflow: hidden;
}

.sidebar-card__header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card__header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.sidebar-card__body {
  padding: 20px;
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-list__icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1px solid rgba(10,31,68,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.info-list__text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}

.info-list__text span {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
}

/* Document Checklist */
.doc-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text);
}

.doc-checklist__bullet {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 0.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Card */
.help-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  color: white;
}

.help-card__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.help-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.help-card__sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 16px;
  line-height: 1.6;
}

.help-card__phone {
  display: block;
  background: var(--gold);
  color: var(--navy);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: background var(--transition);
  text-decoration: none;
}

.help-card__phone:hover {
  background: var(--gold-light);
}

.help-card__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.8);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all var(--transition);
}

.help-card__whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 36px;
  text-align: center;
}

.success-screen.visible {
  display: flex;
}

.success-screen__ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(39,174,96,0.3);
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-screen__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-screen__sub {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 8px;
}

.success-screen__ref {
  display: inline-block;
  background: var(--cream);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin: 16px 0 28px;
  letter-spacing: 1px;
}

.success-screen__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── PROGRESS BAR ── */
.form-progress-bar {
  height: 4px;
  background: var(--gray-mid);
  border-radius: 2px;
  overflow: hidden;
}

.form-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── PHOTO UPLOAD ── */
.photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.photo-preview {
  width: 90px; height: 110px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  border: 2px dashed var(--gray-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray);
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}

.photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview__label {
  font-size: 0.62rem;
  color: var(--gray);
  margin-top: 4px;
  text-align: center;
}

.photo-upload-info {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.7;
}

.photo-upload-info strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

/* ── DIVIDER ── */
.form-divider {
  border: none;
  border-top: 1px solid var(--gray-mid);
  margin: 24px 0;
}

/* ── SECTION TABS (mobile) ── */
.section-tab-bar {
  display: none;
  background: var(--white);
  border-bottom: 2px solid var(--gray-mid);
  overflow-x: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.section-tab-bar::-webkit-scrollbar { display: none; }

.section-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.section-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb__sep {
  color: var(--gray-mid);
}

/* ── REQUIRED NOTE ── */
.required-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.required-note span {
  color: var(--danger);
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .reg-layout {
    grid-template-columns: 1fr;
  }

  .reg-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

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

  .form-grid--3 {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-3 {
    grid-column: span 1;
  }

  .form-card__section {
    padding: 24px 20px;
  }

  .form-nav {
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .reg-hero {
    padding: 44px 0 60px;
  }

  .reg-hero__steps {
    gap: 0;
  }

  .reg-step__connector {
    width: 28px;
  }

  .reg-sidebar {
    grid-template-columns: 1fr;
  }

  .photo-upload-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .reg-step__label {
    display: none;
  }
}
