/* Shared design tokens + base styling for the new "exam-application" wizard flow. */
:root {
    --ea-navy: #0d2b4e;
    --ea-navy-light: #14456f;
    --ea-gold: #c99b3f;
    --ea-gold-dark: #a67c2e;
    --ea-bg: #f4f6fb;
    --ea-text: #26313f;
    --ea-muted: #6b7787;
    --ea-border: #dfe4ee;
    --ea-danger: #d9534f;
    --ea-success: #1e8e5a;
}

body {
    background: var(--ea-bg);
    color: var(--ea-text);
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}

a { text-decoration: none; }

.ea-topbar {
    background: var(--ea-navy);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.ea-topbar .ea-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .2px;
}

.ea-topbar .ea-logout {
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

.ea-topbar .ea-logout:hover { background: rgba(255,255,255,.22); color: #fff; }

.ea-shell {
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 16px;
}

/* Result-configuration heading/title shown above the wizard/status card. */
.ea-page-heading {
    text-align: center;
    margin-bottom: 18px;
}

.ea-page-heading img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.ea-page-heading h6 {
    color: var(--ea-navy);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .1px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ea-page-heading p {
    font-size: 13px;
    font-weight: 500;
    color: var(--ea-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Card */
.ea-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13, 43, 78, 0.08);
    overflow: hidden;
}

.ea-card-header {
    padding: 22px 20px 14px;
    background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ea-border);
}

.ea-card-body {
    padding: 20px;
    min-height: 220px;
}

.ea-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--ea-border);
    background: #fbfcfe;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Buttons */
.ea-btn {
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, var(--ea-navy), var(--ea-navy-light));
    box-shadow: 0 8px 16px rgba(13, 43, 78, 0.25);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.ea-btn:hover:not(:disabled) { transform: translateY(-1px); color: #fff; }

.ea-btn:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }

.ea-btn-outline {
    background: #fff !important;
    color: var(--ea-navy) !important;
    border: 1px solid var(--ea-border) !important;
    box-shadow: none !important;
}

.ea-btn-gold {
    background: linear-gradient(90deg, var(--ea-gold-dark), var(--ea-gold)) !important;
    box-shadow: 0 8px 16px rgba(201, 155, 63, 0.35) !important;
}

@media (max-width: 420px) {
    .ea-card-footer .ea-btn { flex: 1; }
}

/* Form fields */
.ea-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ea-text);
    margin-bottom: 4px;
    display: block;
}

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

/* Radio/checkbox option text (e.g. Re-Admission: No/Yes/Not Eligible) was
   falling back to the browser's unstyled default size - out of step with
   the 12-13px scale used for labels/inputs everywhere else on the form. */
.ea-card-body .form-check-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ea-text);
}

.ea-card-body .form-check-input {
    margin-top: 0.2em;
}

.ea-card-body .form-control,
.ea-card-body .form-select {
    font-size: 13px;
    border: 1px solid #c9d1e0;
    border-radius: 7px;
    padding: 7px 10px;
}

.ea-card-body .form-control:focus,
.ea-card-body .form-select:focus {
    border-color: var(--ea-navy-light);
    box-shadow: 0 0 0 3px rgba(20, 69, 111, 0.12);
}

/* Plain read-only detail text (e.g. the payment-status student summary) -
   a <p>, not a boxed/input-styled field, since it isn't editable. */
.ea-detail-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--ea-text);
    margin-bottom: 0;
    word-break: break-word;
}

.ea-panel {
    border: 1px solid var(--ea-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.ea-panel-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ea-navy);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px;
}

/* Tables */
.ea-table thead th {
    background: var(--ea-navy);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
}

.ea-table tbody td, .ea-table tbody th {
    font-size: 12.5px;
    vertical-align: middle;
}

.ea-table tbody tr:nth-child(even) { background: #f8f9fc; }
.ea-table tbody tr:hover { background: #eef1f8; }

.ea-table tfoot tr, .ea-table tbody tr.ea-total-row {
    background: linear-gradient(90deg, rgba(13, 43, 78, 0.06), rgba(201, 155, 63, 0.10));
}

.ea-total-row td, .ea-total-row th { font-weight: 700; color: var(--ea-navy); font-size: 13.5px !important; }

/* Badges */
.ea-badge-yes {
    background: rgba(30, 142, 90, 0.12);
    color: var(--ea-success);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

/* Alerts */
.ea-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    border: 1px solid transparent;
}

.ea-alert-danger { background: #fdecea; color: #a83732; border-color: #f6cac7; }
.ea-alert-info { background: #eaf1fb; color: var(--ea-navy); border-color: #cfe0f5; }
.ea-alert-success { background: #e9f8f0; color: var(--ea-success); border-color: #c3ecd6; }

@media (max-width: 420px) {
    .ea-card-body { padding: 14px; }
}
