﻿/* ===== ADMISSION PAGE STYLES ===== */
:root {
  --primary: #11461e;
  --primary-light: #2f6b3c;
  --accent: #d8c7a5;
  --accent-dark: #b99d69;
  --white: #ffffff;
  --off-white: #f6f1e8;
  --text-dark: #17211d;
  --text-muted: #60716b;
  --border: #ded6c7;
  --success: #16a34a;
  --error: #dc2626;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ===== TOP HEADER BAR ===== */
.adm-header {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 65%, black), var(--primary));
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.adm-logo { display: flex; align-items: center; gap: 12px; }
.adm-logo-icon {
  width: 40px; height: 40px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
}
.adm-logo-name { color: white; font-weight: 800; font-size: 1rem; }
.adm-logo-tag { color: rgba(255,255,255,0.55); font-size: 0.7rem; }
.adm-header-right { display: flex; align-items: center; gap: 16px; }
.adm-step-indicator { color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 600; }
.btn-back {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-back:hover { background: rgba(255,255,255,0.2); }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: rgba(255,255,255,0.15);
  height: 4px;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(245,166,35,0.5);
}

/* ===== LAYOUT ===== */
.adm-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== STEPS NAV ===== */
.steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.step-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; transition: var(--transition); }
.step-line { width: 60px; height: 2px; background: var(--border); transition: var(--transition); }

.step-item.active .step-circle { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(26,60,110,0.35); }
.step-item.active .step-label { color: var(--primary); }
.step-item.done .step-circle { background: var(--success); border-color: var(--success); color: white; }
.step-item.done .step-label { color: var(--success); }
.step-line.done { background: var(--success); }

@media (max-width: 560px) {
  .step-label { display: none; }
  .step-line { width: 30px; }
}

/* ===== FORM CARD ===== */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}
.form-card-header::after {
  content: '';
  position: absolute;
  right: -30px; top: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.form-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-card-title { color: white; font-size: 1.35rem; font-weight: 900; margin-bottom: 4px; }
.form-card-desc { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.form-body { padding: 36px; }

/* ===== FORM STEP PANELS ===== */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.4s cubic-bezier(0.4,0,0.2,1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-section {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  margin-bottom: 30px;
  transition: var(--transition);
  cursor: pointer;
}
.photo-upload-section:hover { border-color: var(--primary); background: rgba(26,60,110,0.03); }
.photo-upload-section.has-image { border-style: solid; border-color: var(--primary); }
.photo-preview {
  width: 100px; height: 100px; flex-shrink: 0;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-preview .placeholder-icon { transition: var(--transition); }
.photo-upload-text h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 4px; }
.photo-upload-text p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.btn-upload {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-upload:hover { background: var(--primary-light); }
#photoInput { display: none; }

/* ===== FORM FIELDS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-label .required { color: var(--error); }
.form-label .label-icon { font-size: 0.85rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}
.form-input.error, .form-select.error { border-color: var(--error); }
.form-input.success, .form-select.success { border-color: var(--success); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7a99' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.input-hint { font-size: 0.75rem; color: var(--text-muted); }
.input-error { font-size: 0.75rem; color: var(--error); display: none; }
.form-group.has-error .input-error { display: block; }
.form-group.has-error .form-input { border-color: var(--error); }

/* ===== DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 28px;
}
.section-divider .divider-line { flex: 1; height: 1px; background: var(--border); }
.section-divider .divider-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: white;
  padding: 0 4px;
  white-space: nowrap;
}
.section-divider .divider-icon { font-size: 1rem; }

/* ===== PARENT SECTION ===== */
.parent-section {
  background: linear-gradient(135deg, rgba(26,60,110,0.04), rgba(37,87,167,0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(26,60,110,0.1);
  padding: 24px;
  margin-bottom: 20px;
}
.parent-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.parent-section-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: white;
}
.parent-section-header h3 { font-size: 1rem; font-weight: 800; color: var(--primary); }
.parent-section-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 1px; }

/* ===== REVIEW STEP ===== */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.review-section {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.review-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.review-field { margin-bottom: 12px; }
.review-label { font-size: 0.73rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.review-value { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.review-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.review-photo-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26,60,110,0.2);
}
.review-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.review-class { font-size: 0.85rem; color: var(--text-muted); }

/* ===== TERMS ===== */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(22,163,74,0.05);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.terms-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--success); cursor: pointer; margin-top: 1px; }
.terms-check label { font-size: 0.85rem; color: var(--text-dark); cursor: pointer; line-height: 1.6; }
.terms-check label a { color: var(--primary); font-weight: 700; }

/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.btn-form { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); font-family: inherit; }
.btn-next { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; box-shadow: 0 4px 12px rgba(26,60,110,0.3); }
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,60,110,0.4); }
.btn-prev { background: white; color: var(--text-muted); border: 2px solid var(--border); }
.btn-prev:hover { border-color: var(--primary); color: var(--primary); }
.btn-submit { background: linear-gradient(135deg, var(--success), #15803d); color: white; box-shadow: 0 4px 12px rgba(22,163,74,0.3); padding: 14px 36px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,0.4); }

/* ===== SUCCESS STATE ===== */
.success-screen { display: none; text-align: center; padding: 60px 36px; }
.success-screen.show { display: block; animation: stepIn 0.5s cubic-bezier(0.4,0,0.2,1); }
.success-icon {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--success), #15803d);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(22,163,74,0.35);
  animation: popIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.2s both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title { font-size: 1.6rem; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; }
.success-desc { color: var(--text-muted); font-size: 0.95rem; max-width: 420px; margin: 0 auto 12px; line-height: 1.8; }
.success-id {
  display: inline-block;
  background: rgba(26,60,110,0.08);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-success-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 12px 28px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: var(--transition); }
.btn-success-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,60,110,0.3); }
.btn-success-outline { background: white; color: var(--primary); border: 2px solid var(--primary); padding: 12px 28px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: var(--transition); }
.btn-success-outline:hover { background: var(--primary); color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row.triple { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .form-body { padding: 24px 20px; }
  .photo-upload-section { flex-direction: column; text-align: center; }
  .adm-header { padding: 0 20px; }
  .adm-step-indicator { display: none; }
  .form-actions { flex-direction: column-reverse; gap: 10px; }
  .form-actions .btn-form { width: 100%; justify-content: center; }
}
