/* ========================================
   ADMISSION FORM CSS
   ======================================== */

.admission-body { background: #f4f0e4; min-height: 100vh; }

.adm-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: .85rem 0; }
.adm-header-inner { display: flex; justify-content: space-between; align-items: center; }
.back-link-light { color: var(--gold-dark); font-size: .85rem; font-weight: 600; transition: color .2s; }
.back-link-light:hover { color: var(--deep); }

.adm-banner { background: linear-gradient(135deg, var(--deep) 0%, var(--deep2) 60%, #3d2a00 100%); padding: 2.5rem 0; color: #fff; }
.adm-banner-top { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .5rem; font-weight: 600; }
.adm-banner h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin-bottom: .5rem; }
.adm-banner p { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0; }
.req { color: #dc3545; }

/* ---- STEP INDICATOR ---- */
.step-indicator { display: flex; align-items: center; justify-content: center; margin: 2.5rem 0; flex-wrap: wrap; gap: .5rem; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 90px; }
.step-dot span { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-muted); font-size: .95rem; transition: all .3s; }
.step-dot label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-align: center; }
.step-dot.active span { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.step-dot.active label { color: var(--gold-dark); }
.step-dot.done span { background: var(--deep); border-color: var(--deep); color: var(--gold-light); }
.step-line { flex: 1; max-width: 60px; height: 2px; background: var(--border); }

/* ---- FORM SECTIONS ---- */
.adm-form { margin-bottom: 4rem; }
.adm-section { display: none; background: #fff; border-radius: 12px; padding: 2rem; box-shadow: var(--shadow); }
.adm-section.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.adm-section-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--deep); border-bottom: 2px solid var(--gold-pale); padding-bottom: .6rem; margin-bottom: 1.25rem; }

.adm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.5rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--deep); margin-bottom: .35rem; }
.field input, .field select { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: .9rem; font-family: var(--font-body); background: #fafaf7; outline: none; transition: border .2s; }
.field input:focus, .field select:focus { border-color: var(--gold); }

/* ---- EDUCATION TABLE ---- */
.edu-table th { white-space: nowrap; font-size: .72rem; }
.edu-table td { padding: .5rem; }
.edu-table input { width: 100%; min-width: 80px; padding: .45rem .6rem; border: 1.5px solid var(--border); border-radius: 5px; font-size: .85rem; outline: none; }
.edu-table input:focus { border-color: var(--gold); }
.edu-table input[readonly] { background: var(--gold-pale); font-weight: 700; color: var(--gold-dark); text-align: center; }

/* ---- ACTIONS ---- */
.adm-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; flex-wrap: wrap; }

/* ---- UPLOAD ---- */
.upload-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.upload-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.upload-box label { display: block; font-size: .85rem; font-weight: 600; color: var(--deep); margin-bottom: .6rem; }
.upload-preview {
  width: 100%; max-width: 240px; height: 280px;
  border: 2px dashed var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); margin-bottom: .75rem; overflow: hidden;
}
.sig-preview { height: 140px; }
.upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload-placeholder-text { color: #aaa; font-size: .82rem; text-align: center; padding: 0 1rem; }
.upload-box input[type=file] { font-size: .82rem; }
.upload-info { display: block; margin-top: .4rem; color: var(--gold-dark); font-size: .78rem; font-weight: 600; }

/* ---- REGISTRATION SLIP ---- */
.reg-slip { border: 2px solid var(--gold); border-radius: 10px; padding: 1.5rem; background: #fff; }
.rs-header { display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--gold-pale); padding-bottom: 1rem; margin-bottom: 1rem; }
.rs-header-text h2 { font-family: var(--font-display); font-size: 1.25rem; color: var(--deep); margin: 0; }
.rs-header-text p { font-size: .85rem; color: var(--gold-dark); margin: .2rem 0 0; font-weight: 600; }

.rs-regno { display: flex; justify-content: space-between; align-items: center; background: var(--gold-pale); padding: .6rem 1.25rem; border-radius: 6px; margin-bottom: 1.25rem; }
.rs-regno span { font-size: .8rem; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .05em; }
.rs-regno strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--deep); }

.rs-block { margin-bottom: 1.5rem; }
.rs-block-title { font-size: .8rem; font-weight: 700; color: #fff; background: var(--deep); padding: .45rem 1rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.rs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .6rem; }
.rs-row label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: .15rem; }
.rs-row span { font-size: .9rem; color: var(--deep); font-weight: 500; word-break: break-word; }

.rs-docs { display: flex; gap: 2rem; flex-wrap: wrap; }
.rs-doc label { display: block; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.rs-doc-box { border: 1.5px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--surface2); overflow: hidden; }
.rs-photo-box { width: 150px; height: 173px; }
.rs-sig-box { width: 220px; height: 75px; }
.rs-doc-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rs-declaration { border-top: 2px solid var(--gold-pale); padding-top: 1.25rem; margin-top: 1.5rem; }
.declare-check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.declare-check input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; }
.declare-check span { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- SUCCESS MODAL ---- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; padding: 2.5rem; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-box h2 { font-family: var(--font-display); color: var(--deep); margin-bottom: .5rem; }
.modal-box p { color: var(--text-muted); font-size: .9rem; margin-bottom: .5rem; }
.modal-regno { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold-dark); background: var(--gold-pale); padding: .6rem 1.5rem; border-radius: 6px; display: inline-block; margin: .5rem 0 1rem; }
.modal-note { font-size: .8rem !important; }
.modal-actions { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px){
  .adm-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .rs-row { grid-template-columns: 1fr; }
  .step-indicator { gap: .25rem; }
  .step-dot { min-width: 60px; }
  .step-dot label { font-size: .65rem; }
  .step-line { max-width: 24px; }
  .adm-section { padding: 1.25rem; }
}

@media print {
  .adm-header, .adm-banner, .step-indicator, .adm-actions, .footer { display: none !important; }
  .modal-overlay { position: static; background: none; }
  .modal-box { box-shadow: none; }
  .modal-actions { display: none !important; }
  body { background: #fff; }
}
