@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Sans:wght@400;600;700&display=swap');

:root {
    --brand-primary: #0b4a82;
    --brand-secondary: #0f75bc;
    --brand-accent: #e0f0ff;
    --text-dark: #0b1f33;
    --text-muted: #7a8aa0;
    --panel-bg: rgba(255, 255, 255, 0.97);
    --info-panel-gradient: linear-gradient(145deg, #051a36, #0b4a82, #0e6eb9);
    --shadow-strong: 0 30px 70px rgba(5, 22, 41, 0.45);
    font-family: 'Noto Sans Devanagari', 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #041226;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 0.4rem clamp(0.8rem, 2vw, 1.6rem);
    background: rgba(4, 18, 38, 0.85);
    backdrop-filter: blur(6px);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
}

.lang-switcher label {
    font-weight: 600;
}

.lang-switcher select {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.25rem 1.2rem 0.25rem 0.6rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.lang-switcher select:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.lang-switcher--compact {
    background: transparent;
    padding: 0;
    border-radius: 0.5rem;
    gap: 0.3rem;
}

.lang-switcher--compact select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: 1px solid rgba(11, 31, 51, 0.2);
    border-radius: 0.5rem;
    padding: 0.2rem 1.1rem 0.2rem 0.4rem;
}

.lang-switcher--compact select:focus {
    outline-color: var(--brand-secondary);
}

.language-switcher-inline {
    display: flex;
    align-items: center;
}

.form-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.form-action-row .btn {
    white-space: nowrap;
}

.stepper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.stepper-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #e2e8f4;
    border-radius: 0.95rem;
    text-decoration: none;
    color: var(--text-dark);
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.stepper-item:hover {
    border-color: var(--brand-secondary);
    box-shadow: 0 12px 32px rgba(13, 59, 102, 0.12);
    transform: translateY(-1px);
}

.stepper-item.is-active {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #e9f2ff, #ffffff);
    box-shadow: 0 14px 36px rgba(11, 74, 130, 0.16);
}

.stepper-item.is-complete {
    border-color: #3aa76d;
}

.stepper-index {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d3b66;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stepper-item.is-complete .stepper-index {
    background: #3aa76d;
}

.stepper-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.stepper-desc {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.stepper-status {
    font-size: 1.1rem;
    color: #3aa76d;
    font-weight: 700;
}

.hero-bg {
    background-image:
        linear-gradient(135deg, rgba(4, 18, 38, 0.95), rgba(0, 61, 116, 0.85)),
        url('../images/bg-blur.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.portal-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.6rem, 2vw, 1.6rem);
}

.portal-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    align-items: stretch;
    border-radius: clamp(1rem, 2vw, 1.75rem);
    overflow: hidden;
    background: var(--panel-bg);
    box-shadow: var(--shadow-strong);
}

.info-panel {
    background: var(--info-panel-gradient);
    color: #ffffff;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    isolation: isolate;
    text-align: center;
    overflow-y: auto;
}

.info-panel > *:not(.brand-crest) {
    width: min(100%, 340px);
    margin-inline: auto;
}

.info-panel::after {
    content: '';
    position: absolute;
    inset: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.4;
    pointer-events: none;
}

.brand-crest {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1;
    margin-bottom: 0.2rem;
}

.brand-logo {
    width: clamp(160px, 50%, 230px);
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(5, 13, 31, 0.25));
}

.brand-copy {
    text-align: center;
    z-index: 1;
}

.brand-title {
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    font-weight: 700;
    margin: 0;
}

.brand-subtitle {
    margin: 0.35rem 0 0;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.brand-tagline {
    margin: 0.35rem 0 0;
    color: var(--brand-accent);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.info-panel hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 0;
    z-index: 1;
}

.info-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
    width: 100%;
    text-align: left;
}

.info-links li {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0.8rem 0.45rem 0.8rem;
    border-radius: 0.65rem;
    position: relative;
    font-weight: 600;
    line-height: 1.4;
}

.info-links .link-label {
    display: block;
    font-size: 0.92rem;
}

.info-links .link-button {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.info-links small {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 0.78rem;
}

.info-links small {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 0.78rem;
}

.form-panel {
    background: var(--panel-bg);
    padding: clamp(1.1rem, 2.5vw, 1.9rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.form-panel h2 {
    margin: 0;
    font-size: 1.7rem;
    color: var(--brand-primary);
}

.form-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.form-panel > * {
    width: min(100%, 340px);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(100%, 340px);
}

.form-control {
    margin-bottom: 0.85rem;
    position: relative;
    width: 100%;
}

.form-control input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    border: 1px solid #d8e0ec;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control input:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 4px rgba(15, 117, 188, 0.18);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-secondary);
    font-weight: 600;
    cursor: pointer;
}

.btn {
    
    border: none;
    padding: 0.85rem;
    border-radius: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand-secondary), #0fa2d7);
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 117, 188, 0.35);
}

.btn.secondary {
    background: #ffffff;
    border: 1px solid #d8e0ec;
    color: var(--text-dark);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fde7ea;
    color: #8f1f35;
}

.alert-success {
    background: #e2f6ef;
    color: #0b6b38;
}

.form-links {
    display: flex;
    gap: 0.95rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    justify-content: center;
    width: min(100%, 340px);
}

.form-links a {
    color: var(--brand-secondary);
    text-decoration: none;
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

.login-summary {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forgot-body {
    min-height: 100vh;
}

.forgot-card {
    width: min(1100px, 100%);
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    overflow: hidden;
}

.forgot-info {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: radial-gradient(circle at top, rgba(11, 74, 130, 0.9), rgba(4, 18, 38, 0.95));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge-pill {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.forgot-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forgot-steps li {
    display: flex;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    align-items: flex-start;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.support-card {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.support-title {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.support-text {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
}

.forgot-form {
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-headline h2 {
    margin: 0.35rem 0 0;
}

.form-headline .form-subtitle {
    margin-top: 0.35rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(11, 74, 130, 0.12);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.input-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-footer-tip {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #f6f8fb;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
}

@media (max-width: 768px) {
    .forgot-card {
        border-radius: 18px;
    }

    .support-card {
        margin-top: 1rem;
    }
}

@media (max-height: 820px) {
    .portal-hero {
        padding: 0.5rem 0.75rem;
    }

    .portal-card {
        width: min(940px, 100%);
    }

    .info-panel,
    .form-panel {
        padding: 1rem 1.25rem;
    }

    .brand-logo {
        width: clamp(140px, 45%, 200px);
    }

    .info-links {
        gap: 0.45rem;
    }

    .info-links li {
        padding: 0.45rem 0.7rem 0.4rem 0.7rem;
    }

    .form-panel h2 {
        font-size: 1.55rem;
    }

    .form-subtitle {
        font-size: 0.95rem;
    }

    .form-control {
        margin-bottom: 0.75rem;
    }

    .form-control input {
        padding: 0.78rem 0.9rem;
    }

    .btn {
        padding: 0.78rem;
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 38, 0.65);
}

.modal-dialog {
    position: relative;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    width: min(420px, 90%);
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0b4a82;
    cursor: pointer;
}

.modal-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b1f33;
    text-align: center;
}

.modal-text small {
    color: #7a8aa0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.25rem;
}


.app-sidebar {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.app-sidebar .sidebar-header {
    margin-bottom: 1.5rem;
}

.app-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-sidebar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.app-sidebar a.active {
    color: var(--brand-primary);
}

.app-content {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-header h1 {
    margin: 0;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.section-title {
    margin: 0 0 1rem;
    color: var(--brand-primary);
}

.step-card {
    display: none;
}

.step-card.active {
    display: block;
}

.step-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.step-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #cfd8e3;
    font-size: 0.9rem;
    background: #fff;
}

.step-chip.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.step-chip.completed {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.top-gap {
    margin-top: 1.5rem;
}

.radio-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.upload-note {
    background: #fff4e5;
    color: #8f4b00;
    padding: 0.85rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.step-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.submission-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .application-layout {
        grid-template-columns: 1fr;
    }
}

.form-card header h1 {
    margin: 0 0 0.5rem;
}

.details-form .form-control {
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .portal-card {
        border-radius: 0;
        max-height: none;
    }

    .info-panel::after {
        inset: 1rem;
    }
}

@media (max-width: 640px) {
    .portal-card {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .info-panel {
        text-align: center;
    }

    .info-links {
        text-align: left;
    }

    .form-panel {
        padding: 2rem 1.5rem 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* === Form fill layout === */
.form-fill-body {
    background: radial-gradient(circle at 20% 20%, rgba(11, 74, 130, 0.06), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(15, 117, 188, 0.08), transparent 30%),
        #f5f7fb;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-fill-main {
    flex: 1;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 8.5rem 1rem 5rem;
}

.portal-header {
    background: #ffffffcc;
    backdrop-filter: blur(12px);
    color: var(--text-dark);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(4, 18, 38, 0.08);
}

.portal-header .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portal-header .brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.portal-header .brand-subtitle {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0;
}

.portal-header .header-actions .btn {
    font-size: 0.9rem;
}

.summary-panel {
    border: 1px solid #e2e8f4;
    border-radius: 16px;
    margin-top: 1rem;
    box-shadow: 0 16px 40px rgba(4, 18, 38, 0.06);
}

.summary-panel .card-body {
    background: linear-gradient(135deg, #fdfefe, #f6f9ff);
}

.form-fill-card {
    border-radius: 16px;
    border: 1px solid #e2e8f4;
    box-shadow: 0 18px 44px rgba(4, 18, 38, 0.08);
}

.form-fill-card .nav-pills .nav-link {
    border-radius: 6px;
}

.form-fill-card .nav-pills .nav-link.active {
    background: #0d3b66 !important;
}

.form-fill-card .form-label {
    font-weight: 700;
}

.form-fill-card .form-control,
.form-fill-card .form-select,
.form-fill-card textarea {
    min-height: 46px;
    font-size: 1rem;
    border-radius: 0.65rem;
    border-color: #d9e2f0;
}

.step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f7f9fc;
    border: 1px solid #e2e8f4;
    border-radius: 0.85rem;
}

.step-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 59, 102, 0.12);
    color: #0d3b66;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-title {
    margin: 0.2rem 0 0.35rem;
}

.step-note {
    max-width: 320px;
    text-align: right;
    line-height: 1.5;
}

.form-action-row--sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    box-shadow: 0 -12px 30px rgba(4, 18, 38, 0.08);
    margin-top: 1.25rem;
}

.form-action-row--sticky .btn {
    min-width: 140px;
    font-weight: 700;
}

.image-preview-card {
    border: 1px dashed #cfd8e3;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.85rem;
}

.image-preview-card__header {
    font-size: 0.95rem;
}

.image-preview-label {
    font-weight: 600;
    color: #0d3b66;
}

.image-preview-link {
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
}

.image-preview-link:hover {
    text-decoration: underline;
}

.image-preview-frame {
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 59, 102, 0.15);
    background: #eef4fb;
    aspect-ratio: var(--preview-aspect, 4 / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-placeholder {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.image-preview-placeholder.d-none {
    display: none !important;
}

.family-table-block {
    width: 100%;
}

.family-table-block .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
}

.family-table-block table {
    width: 100%;
    min-width: 720px;
}

.family-table-block th,
.family-table-block td {
    white-space: nowrap;
}

.family-table-block td input {
    min-width: 120px;
}

.family-extra-fields {
    clear: both;
    width: 100%;
}


@media (max-width: 768px) {
    .family-table-block table {
        min-width: 580px;
    }

    .family-table-block td input {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .family-extra-fields {
        margin-left: 0;
        margin-right: 0;
    }
}

#imageCropModal .modal-dialog {
    max-width: 900px;
}

#imageCropModal .modal-body {
    padding: 1.25rem 1.5rem;
}

.cropper-stage {
    width: 100%;
    min-height: 320px;
    background: #0b1729;
    border-radius: 0.85rem;
    overflow: hidden;
    position: relative;
}

.cropper-stage img {
    max-width: 100%;
    display: block;
}

.cropper-preview-pane {
    border: 1px solid rgba(13, 59, 102, 0.2);
    border-radius: 0.75rem;
    background: #fdfdfd;
    padding: 0.75rem;
    min-height: 200px;
}

.cropper-preview-box {
    width: 100%;
    padding-top: 65%;
    background: #eef4fb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.cropper-modal__hint {
    font-size: 0.85rem;
    color: #5c6f82;
    margin-top: 0.65rem;
}

.image-preview-card + .btn {
    margin-top: 0.75rem;
}

.portal-footer {
    background: #0d3b66;
    color: #fff;
    padding: 2.25rem 0;
    width: 100%;
    margin-top: auto;
}

.portal-header .container,
.portal-footer .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.portal-footer a {
    color: #ffe08a;
    text-decoration: none;
}

.portal-footer a:hover {
    text-decoration: underline;
}

.file-preview-wrapper {
    max-width: 320px;
}

.file-preview-frame {
    border: 1px dashed #cbd7e6;
    border-radius: 0.75rem;
    padding: 0.35rem;
    width: 100%;
    min-height: 160px;
    background: #f8fbff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    aspect-ratio: var(--preview-aspect, 1);
}

.file-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.55rem;
    box-shadow: 0 8px 20px rgba(12, 42, 87, 0.12);
}

.file-preview-placeholder {
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .portal-header img {
        max-height: 50px;
    }

    .portal-header .brand-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .portal-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .portal-header .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .portal-header .header-actions .btn,
    .portal-header .header-actions .dropdown > button {
        width: 100%;
    }

    .summary-panel {
        margin-top: 8rem;
    }

    .form-fill-main {
        padding-top: 11rem;
    }

    .portal-footer .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .image-preview-card {
        padding: 0.65rem;
    }

    .cropper-stage {
        min-height: 240px;
    }

    #imageCropModal .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 768px) {
    .step-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-note {
        text-align: left;
        max-width: none;
    }

    .stepper-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .form-action-row--sticky {
        position: static;
        box-shadow: none;
        padding: 0.5rem 0;
    }

    .form-action-row--sticky .btn {
        flex: 1 1 auto;
        width: 100%;
    }
}
