/* ===== ADMISSION FORM - PAPER STYLE CSS ===== */
.adm-form-paper {
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-family: 'Poppins', sans-serif;
    color: #222;
    overflow: hidden;
}

.ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
}

.req { color: #e74c3c; font-weight: 700; }

/* === HEADER === */
.adm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
    border-bottom: 3px solid #1a1a2e;
}

.adm-header-left { display: flex; align-items: center; gap: 12px; }

.adm-logo-box {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    border-radius: 8px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #f39c12;
    font-weight: 900;
    line-height: 1.1;
}
.adm-logo-korean { font-family: 'Noto Sans KR', sans-serif; font-size: 1.6rem; }
.adm-logo-urdu { font-family: 'Noto Nastaliq Urdu', serif; font-size: 0.7rem; }

.adm-title-en {
    font-size: 1.6rem; font-weight: 800; color: #1a1a2e; letter-spacing: 1px; line-height: 1.1;
}
.adm-title-ur {
    font-family: 'Noto Nastaliq Urdu', serif; font-size: 0.9rem; color: #555; direction: rtl;
}

.adm-header-right { text-align: right; }
.adm-form-title-en {
    font-size: 1.4rem; font-weight: 800; color: #1a1a2e; letter-spacing: 2px;
    border-bottom: 2px solid #e74c3c; padding-bottom: 3px;
}
.adm-form-title-ur {
    font-family: 'Noto Nastaliq Urdu', serif; font-size: 0.9rem; color: #e74c3c; direction: rtl; text-align: right;
}

/* === INFO BAR === */
.adm-infobar {
    background: #1a1a2e;
    color: #fff;
    padding: 7px 20px;
    display: flex;
    gap: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    flex-wrap: wrap;
}
.adm-infobar i { color: #f39c12; }

/* === TOP ROW (photo + section title + office box) === */
.adm-top-row {
    display: grid;
    grid-template-columns: 110px 1fr 200px;
    gap: 12px;
    padding: 14px 20px 8px;
    align-items: start;
}

.adm-photo-upload {
    width: 100px; height: 120px;
    border: 2px dashed #aaa;
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: #fafafa;
    transition: border-color 0.2s;
}
.adm-photo-upload:hover { border-color: #e74c3c; }

.adm-sec-badge {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    align-self: center;
}
.adm-sec-badge .ur { color: #f39c12; }

.adm-office-box {
    border: 1.5px solid #999;
    border-radius: 4px;
    padding: 8px 12px;
}
.adm-office-title {
    font-size: 0.75rem; font-weight: 700; color: #333;
    border-bottom: 1px solid #ccc; padding-bottom: 4px; margin-bottom: 6px;
}
.adm-office-row {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 5px; font-size: 0.72rem; color: #555;
}
.adm-office-row label { font-weight: 600; white-space: nowrap; min-width: 80px; }
.adm-office-line {
    flex: 1; border-bottom: 1px solid #999; display: inline-block; min-width: 60px;
}

/* === FIELDS === */
.adm-fields { padding: 0 20px 10px; }

.adm-field-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
    gap: 8px;
}

.adm-field-row:last-child { border-bottom: none; }

.adm-field-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #ddd;
}
.adm-field-split .adm-field-half {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.adm-field-split .adm-field-half:first-child {
    border-right: 1px solid #ddd;
    padding-right: 12px;
    margin-right: 12px;
}

.adm-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 180px;
}

.adm-input {
    border: none;
    border-bottom: 1px solid #999;
    outline: none;
    font-size: 0.88rem;
    padding: 2px 4px;
    font-family: 'Poppins', sans-serif;
    color: #111;
    background: transparent;
    min-width: 80px;
}
.adm-input:focus { border-bottom-color: #e74c3c; }
.adm-input-full { flex: 1; }

.adm-input-inline {
    border: none;
    border-bottom: 1px solid #999;
    outline: none;
    font-size: 0.8rem;
    padding: 1px 3px;
    width: 80px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
}

.adm-checkbox-group {
    display: flex; gap: 14px; font-size: 0.82rem; align-items: center;
}
.adm-checkbox-group label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

/* === SECTION HEADERS === */
.adm-sec-header {
    background: #1a1a2e;
    color: #fff;
    padding: 7px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
}
.adm-sec-header .ur { color: #f39c12; }

/* === COURSE BOXES === */
.adm-course-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 20px;
}
.adm-course-box {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.78rem;
}
.adm-course-blue { border-color: #3498db; background: #f0f8ff; }
.adm-course-green { border-color: #27ae60; background: #f0fff5; }
.adm-course-orange { border-color: #f39c12; background: #fffbf0; }

.adm-course-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.adm-course-icon { font-size: 1.4rem; margin-top: 3px; }
.adm-course-blue .adm-course-icon { color: #3498db; }
.adm-course-green .adm-course-icon { color: #27ae60; }
.adm-course-orange .adm-course-icon { color: #f39c12; }

.adm-course-dur { font-size: 0.7rem; font-weight: 700; color: #666; letter-spacing: 1px; }
.adm-course-name { font-size: 0.9rem; font-weight: 800; color: #1a1a2e; line-height: 1.1; }
.adm-course-urdu { font-size: 0.72rem; color: #666; }

.adm-course-check {
    display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
    color: #333; cursor: pointer; margin-bottom: 6px;
}
.adm-course-check input { width: 14px; height: 14px; accent-color: #1a1a2e; }

.adm-course-list {
    margin: 0 0 8px 18px; padding: 0; font-size: 0.75rem; color: #555;
    list-style: disc;
}
.adm-course-list li { margin-bottom: 2px; }

.adm-course-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; text-align: center; width: 100%;
}
.adm-badge-blue { background: #3498db; color: #fff; }
.adm-badge-green { background: #27ae60; color: #fff; }
.adm-badge-orange { background: #f39c12; color: #fff; }

/* === PREFERENCES ROW === */
.adm-pref-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 0;
    padding: 0 20px;
    border-top: 1px solid #ddd;
}
.adm-pref-col {
    padding: 10px 12px;
    border-right: 1px solid #ddd;
    font-size: 0.78rem;
}
.adm-pref-col:last-child { border-right: none; }
.adm-pref-label { font-weight: 700; color: #333; margin-bottom: 6px; font-size: 0.78rem; }

.adm-cb {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.78rem; cursor: pointer; margin-bottom: 3px; color: #444;
}
.adm-cb input[type="checkbox"],
.adm-cb input[type="radio"] {
    width: 13px; height: 13px; accent-color: #1a1a2e; flex-shrink: 0;
}

.adm-cb-grid { display: flex; flex-direction: column; }

/* === EDUCATION ROW === */
.adm-edu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
}
.adm-edu-checks { display: flex; gap: 16px; flex-wrap: wrap; }

/* === BOTTOM (TERMS + DECLARATION) === */
.adm-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    border-top: 2px solid #1a1a2e;
    margin-top: 8px;
}
.adm-terms-box {
    padding: 12px 16px;
    border-right: 1px solid #ccc;
    font-size: 0.77rem;
}
.adm-decl-box {
    padding: 12px 16px;
    font-size: 0.77rem;
}

.adm-sec-badge-small {
    background: #1a1a2e;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}
.adm-sec-badge-small .ur { color: #f39c12; }

.adm-terms-list {
    list-style: disc; padding-left: 16px; margin: 0;
    font-size: 0.75rem; color: #444;
}
.adm-terms-list li { margin-bottom: 4px; }

.adm-sig-row { display: flex; gap: 16px; align-items: flex-end; margin-top: 8px; }
.adm-sig-area { flex: 1; }
.adm-date-area { min-width: 120px; }
.adm-date-display {
    font-size: 0.82rem; font-weight: 600; color: #333;
    border-bottom: 1px solid #999; padding: 4px 2px; min-width: 100px;
}

.adm-sig-btn {
    font-size: 0.7rem; padding: 2px 8px; background: #eee;
    border: 1px solid #ccc; border-radius: 3px; cursor: pointer;
}
.adm-sig-btn:hover { background: #ddd; }

/* === FOOTER === */
.adm-footer-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.8rem;
    text-align: center;
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
    margin-top: 0;
}
.adm-footer-contacts {
    background: #f5f5f5;
    padding: 8px 20px;
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: #555; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid #ddd;
}

/* === SUBMIT BUTTONS === */
.adm-submit-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    border-top: 2px solid #eee;
    flex-wrap: wrap;
}
.adm-btn-print {
    background: #fff; border: 2px solid #1a1a2e; color: #1a1a2e;
    padding: 12px 30px; border-radius: 50px; font-size: 0.95rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.adm-btn-print:hover { background: #1a1a2e; color: #fff; }
.adm-btn-submit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff; border: none;
    padding: 12px 40px; border-radius: 50px; font-size: 0.95rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}
.adm-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(231,76,60,0.5); }

/* === PRINT STYLES === */
@media print {
    .no-print, nav, .site-footer, .admission-hero { display: none !important; }
    body { background: #fff !important; margin: 0; padding: 0; }
    .adm-form-paper {
        box-shadow: none !important;
        border: 1px solid #999;
        margin: 0;
        page-break-inside: avoid;
    }
    .adm-input, .adm-input-inline {
        border-bottom: 1px solid #999 !important;
    }
    .adm-photo-upload { border: 1.5px dashed #999 !important; }
    #signatureCanvas { border: 1px solid #999 !important; }
    .adm-submit-row { display: none !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .adm-top-row { grid-template-columns: 1fr; }
    .adm-course-row { grid-template-columns: 1fr; }
    .adm-pref-row { grid-template-columns: 1fr; }
    .adm-bottom-row { grid-template-columns: 1fr; }
    .adm-field-split { grid-template-columns: 1fr; }
    .adm-field-split .adm-field-half:first-child { border-right: none; padding-right: 0; margin-right: 0; }
    .adm-header { flex-direction: column; gap: 10px; text-align: center; }
    .adm-edu-row { flex-direction: column; align-items: flex-start; }
}
