body.parents-dashboard {
    background: #f5f7fb;
    color: #1f2937;
}

.portal-live-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.portal-form-shell {
    margin-top: 1rem;
}

.portal-form-card .card-body {
    padding: 1.75rem;
}

.portal-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.portal-applied-class-meta {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.5rem;
}

.portal-applied-class-meta .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #e8f1ff;
    font-size: 0.72rem;
    line-height: 1.2;
}

.portal-applied-class-meta .label {
    font-weight: 700;
    color: #4b6385;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.portal-applied-class-meta .value {
    font-weight: 700;
    color: #123a78;
}

.portal-block-heading {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.85rem;
    background: #eef4ff;
    color: #123a78;
    font-weight: 700;
}

.portal-section-card {
    border-radius: 0.9rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.portal-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: none;
}

.portal-accordion .accordion-button {
    font-weight: 700;
    color: #111827;
    background: #fff;
    box-shadow: none;
}

.portal-accordion .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: #111827;
    box-shadow: none;
}

.portal-accordion .accordion-button:focus {
    box-shadow: none;
}

.portal-accordion .accordion-body {
    padding-top: 1.4rem;
}

.portal-field-group {
    margin-bottom: 1rem;
}

.portal-field-group .form-label {
    font-weight: 600;
    color: #374151;
}

.portal-field-group .form-control,
.portal-field-group .form-select {
    border-radius: 0.75rem;
}

.portal-field-group .invalid-feedback,
.portal-inline-error {
    display: block;
    color: #d63939;
    font-size: 0.78rem;
}

.portal-field-group .invalid-feedback:not(:empty),
.portal-inline-error:not(:empty) {
    margin-top: 0.35rem;
}

.portal-field-group .invalid-feedback:empty,
.portal-inline-error:empty {
    display: none;
}

.portal-photo-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portal-name-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: start;
    gap: 1rem;
}

.portal-name-language-column {
    min-width: 0;
}

.portal-name-input-wrap {
    position: relative;
}

.portal-name-input-wrap input[data-transliteration-direct] {
    padding-right: 3rem;
}

.portal-name-translate-button {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #667085;
    transform: translateY(-50%);
    cursor: pointer;
}

.portal-name-translate-button:hover,
.portal-name-translate-button:focus-visible {
    background: #eaf8f6;
    color: #08776d;
    outline: none;
}

.portal-name-translate-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.portal-transliteration-assist {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.portal-transliteration-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
    min-height: 0;
}

.portal-transliteration-suggestions:empty {
    display: none;
}

.portal-transliteration-message {
    color: #667085;
    font-size: 0.75rem;
}

.portal-transliteration-message.is-error {
    color: #d63939;
}

.portal-transliteration-option {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #24364b;
    padding: 0.25rem 0.6rem;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.portal-transliteration-option:hover,
.portal-transliteration-option:focus-visible,
.portal-transliteration-option.is-selected {
    border-color: #0f9f91;
    background: #eaf8f6;
    color: #08776d;
    outline: none;
}

@media (max-width: 575.98px) {
    .portal-transliteration-assist {
        grid-template-columns: 1fr;
    }
}

.portal-review-card .portal-review-row:last-child {
    border-bottom: none;
}

.portal-review-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-review-table td {
    border: 1px solid #d1d5db;
    padding: 0.65rem 0.8rem;
    vertical-align: top;
}

.portal-review-table .key {
    width: 24%;
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.portal-review-table .value {
    width: 26%;
    color: #111827;
    word-break: break-word;
}

.portal-doc-list .portal-doc-item {
    min-height: 58px;
}

.portal-upload-card .form-control {
    border-radius: 0.75rem;
}

.portal-upload-card .btn {
    align-self: flex-start;
}

.portal-upload-section {
    margin-bottom: 0;
}

.portal-upload-section .portal-upload-notes {
    margin-top: 1rem !important;
    margin-bottom: 0;
}

.portal-marks-panel {
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    padding: 1rem;
}

.portal-marks-panel .portal-marks-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #26446b;
    margin-bottom: 0.85rem;
}

.portal-marks-panel .border.rounded-3 {
    border-color: #d5e0ee !important;
    background: #fff;
}

form[data-step-form="6"] .portal-upload-grid,
form[data-step-form="7"] .portal-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

form[data-step-form="6"] .portal-upload-card,
form[data-step-form="7"] .portal-upload-card {
    min-height: 0;
}

form[data-step-form="3"] .portal-photo-dropzone {
    min-height: 180px;
    padding: 0.6rem;
    gap: 0.35rem;
}

form[data-step-form="3"] .portal-photo-preview {
    width: 88px;
    height: 110px;
}

form[data-step-form="3"] #profilePhotoPlaceholder .bi-person-circle {
    font-size: 2.4rem !important;
}

form[data-step-form="3"] #profilePhotoPlaceholder .fw-bold {
    margin-top: 0.45rem !important;
    font-size: 0.95rem;
}

form[data-step-form="3"] #profilePhotoPlaceholder .small {
    font-size: 0.76rem;
    line-height: 1.3;
}

.portal-guardian-fields[hidden] {
    display: none !important;
}

.portal-photo-crop-modal .modal-dialog {
    max-width: 760px;
}

.portal-photo-cropper-wrap {
    width: 100%;
    min-height: 300px;
    max-height: 62vh;
    border: 1px solid #d8dde4;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.portal-photo-cropper-wrap img {
    display: block;
    max-width: 100%;
}

.portal-steps-wrap .steps {
    margin: 0;
    padding-inline-start: 0;
    counter-reset: admission-visible-step;
    border-left: 0 !important;
}

.portal-steps-wrap .steps::before {
    content: none !important;
    display: none !important;
}

.portal-steps-wrap .steps .step-item {
    text-align: center;
}

.portal-steps-wrap .steps .step-item::before {
    counter-increment: admission-visible-step;
    content: counter(admission-visible-step) !important;
}

.portal-steps-wrap .steps .step-item .step-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.55rem auto 0;
    padding: 0 0.3rem;
    line-height: 1.25;
    text-align: center;
}




@media (max-width: 767.98px) {
    .portal-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-form-card .card-body {
        padding: 1rem;
    }

    .portal-step-actions .btn,
    .portal-entry-actions .btn {
        width: 100%;
    }

    form[data-step-form="6"] .portal-upload-grid,
    form[data-step-form="7"] .portal-upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    form[data-step-form="6"] .portal-upload-grid,
    form[data-step-form="7"] .portal-upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.portal-review-profile-photo {
    width: 72px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
