/* ── SMS Admissions — Public Form Styles ──────────────────────────────────── */

.sms-adm-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tabs */
.sms-adm-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.sms-adm-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.sms-adm-tab--active,
.sms-adm-tab:hover {
    color: #1a3c5e;
    border-bottom-color: #1a3c5e;
}

/* Panels */
.sms-adm-panel { display: none; }
.sms-adm-panel--active { display: block; }

/* Intro */
.sms-adm-intro { margin-bottom: 24px; }
.sms-adm-intro h2 {
    font-size: 22px;
    color: #1a3c5e;
    margin: 0 0 8px;
}
.sms-adm-intro p { color: #475569; margin: 0; line-height: 1.6; }

/* Sections */
.sms-adm-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sms-adm-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a3c5e;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Fields */
.sms-adm-field {
    margin-bottom: 16px;
}

.sms-adm-field:last-child { margin-bottom: 0; }

.sms-adm-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sms-adm-field input[type="text"],
.sms-adm-field input[type="tel"],
.sms-adm-field input[type="date"],
.sms-adm-field select,
.sms-adm-status-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.sms-adm-field input:focus,
.sms-adm-field select:focus,
.sms-adm-status-form input:focus {
    outline: none;
    border-color: #1a3c5e;
    box-shadow: 0 0 0 3px rgba(26,60,94,.1);
}

/* Two-column row */
.sms-adm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .sms-adm-row { grid-template-columns: 1fr; }
}

/* File upload */
.sms-adm-doc-note {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
}

.sms-adm-file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}

.sms-adm-file-upload:hover,
.sms-adm-file-upload.dragover {
    border-color: #1a3c5e;
    background: #f0f6ff;
}

.sms-adm-file-upload.has-file {
    border-color: #15803d;
    border-style: solid;
    background: #f0fdf4;
}

.sms-adm-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.sms-adm-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    pointer-events: none;
}

.sms-adm-file-icon { font-size: 24px; flex-shrink: 0; }

.sms-adm-file-text {
    font-size: 13px;
    color: #64748b;
}

.sms-adm-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    display: block;
    margin-top: 2px;
}

/* Required marker */
.sms-adm-req { color: #dc2626; margin-left: 2px; }
.sms-adm-req-note { font-size: 12px; color: #64748b; }
.sms-adm-field-note { font-size: 11px; color: #94a3b8; margin: 4px 0 0; }

/* Submit row */
.sms-adm-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

/* Buttons */
.sms-adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}

.sms-adm-btn:disabled { opacity: .5; cursor: not-allowed; }

.sms-adm-btn--primary {
    background: #1a3c5e;
    color: #fff;
}

.sms-adm-btn--primary:hover:not(:disabled) { opacity: .88; }

/* Error */
.sms-adm-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
}

/* Success screen */
.sms-adm-success {
    text-align: center;
    padding: 40px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
}

.sms-adm-success-icon { font-size: 48px; margin-bottom: 12px; }

.sms-adm-success h2 {
    font-size: 22px;
    color: #15803d;
    margin: 0 0 12px;
}

.sms-adm-success p { color: #374151; margin: 0 0 12px; line-height: 1.6; }

.sms-adm-reference {
    display: inline-block;
    font-family: monospace;
    font-size: 28px;
    font-weight: 800;
    color: #1a3c5e;
    background: #fff;
    border: 2px solid #1a3c5e;
    border-radius: 8px;
    padding: 10px 28px;
    margin: 12px auto;
    letter-spacing: 3px;
}

.sms-adm-save-note {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e !important;
    display: inline-block;
    margin: 8px 0 16px !important;
}

/* Status check */
.sms-adm-status-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.sms-adm-status-form .sms-adm-field {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.sms-adm-status-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.sms-adm-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sms-adm-status-ref {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #1a3c5e;
}

.sms-adm-status-table {
    width: 100%;
    border-collapse: collapse;
}

.sms-adm-status-table th,
.sms-adm-status-table td {
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sms-adm-status-table th {
    width: 140px;
    color: #64748b;
    font-weight: 600;
}

.sms-adm-status-table td { color: #1e293b; }

.sms-adm-admin-message {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.sms-adm-admin-message strong { font-size: 13px; color: #374151; }
.sms-adm-admin-message p { margin: 6px 0 0; color: #475569; line-height: 1.6; }

/* Status badges */
.sms-adm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sms-adm-badge--pending  { background: #fffbeb; color: #92400e; border: 1px solid #f59e0b; }
.sms-adm-badge--admitted { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.sms-adm-badge--rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
