:root {
    --primary: #1f6feb;
    --primary-dark: #174ea6;
    --secondary: #eef4ff;
    --text: #1d1d1f;
    --muted: #667085;
    --light: #f8fafc;
    --success: #1fad72;
    --error: #d93025;
    --shadow: 0 18px 40px rgba(31, 111, 235, 0.15);
    --gst-blue: #0a4d72;
    --gst-blue-dark: #0c3d5d;
    --gst-blue-soft: #0d5a7b;
    --dark-strip: #111111;
    --yellow: #f5c242;
    --orange: #f39c1a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f6f9ff 0%, #eaf1ff 100%);
    color: var(--text);
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
}

.auth-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-tag {
    display: inline-block;
    width: fit-content;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.brand-box h1 {
    margin: 0 0 12px;
    font-size: 2.5rem;
    line-height: 1.15;
}

.brand-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.form-box {
    padding: 50px 40px;
    background: #ffffff;
}

.form-box h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--text);
}

.subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 0.96rem;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.alert.success {
    background: rgba(31, 173, 114, 0.1);
    border: 1px solid rgba(31, 173, 114, 0.2);
    color: #146d4a;
}

.alert.error {
    background: rgba(217, 48, 37, 0.08);
    border: 1px solid rgba(217, 48, 37, 0.2);
    color: #b42318;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d3dbe6;
    border-radius: 12px;
    background: var(--light);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.submit-btn {
    margin-top: 24px;
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 15px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(23, 78, 166, 0.18);
}

.login-link {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.dashboard-page {
    margin: 0;
    background: #0a3550;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.application-dashboard-page {
    margin: 0;
    background: #ffffff;
    color: #182b49;
    font-family: Arial, Helvetica, sans-serif;
}

.application-dashboard-main {
    min-height: 520px;
    background: #ffffff;
}

.application-dashboard-content {
    padding: 34px 44px 72px;
}

.saved-applications h2,
.application-status h2 {
    margin: 0 0 18px;
    color: #132d58;
    font-size: 24px;
    font-weight: 500;
}

.application-table-wrap {
    overflow-x: auto;
}

.application-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 18px;
}

.application-table th,
.application-table td {
    border: 1px solid #d8d8d8;
    padding: 14px 16px;
    text-align: center;
    vertical-align: middle;
}

.application-table th {
    background: #fafafa;
    color: #202020;
    font-weight: 700;
}

.application-table td:nth-child(3) {
    text-align: left;
}

.status-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2d78b7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.application-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    background: #2d5489;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
}

.application-action:hover,
.application-action:focus-visible {
    background: #1f406d;
}

.application-status {
    margin-top: 58px;
}

.application-status p {
    margin: 0;
    color: #202020;
    font-size: 18px;
}

@media (max-width: 700px) {
    .application-dashboard-content {
        padding: 28px 20px 56px;
    }

    .saved-applications h2,
    .application-status h2 {
        font-size: 21px;
    }
}

.training-notice {
    background: #111111;
    color: #f5d441;
    border-top: 4px solid #f5d441;
    border-bottom: 4px solid #f5d441;
    text-align: center;
    padding: 5px 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
}

.training-notice strong {
    letter-spacing: 0.04em;
}

.warning-mark {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

.notice-subtext {
    margin-top: 8px;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 13px;
}

.container {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 0 18px;
}

.top-strip {
    background: #0c2d4d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-strip-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #f1f7fb;
    font-size: 14px;
}

.gov-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.gov-links a,
.screen-reader {
    color: #f1f7fb;
    text-decoration: none;
    opacity: 0.95;
}

.portal-header {
    background: linear-gradient(180deg, #0c2d4d 0%, #092847 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 122px;
    gap: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
}

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

.brand-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-emblem {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f7;
    box-shadow: inset 0 0 0 5px rgba(10, 58, 89, 0.18);
}

.emblem-ring {
    position: absolute;
    inset: 14px;
    border: 3px solid #0f3d5d;
    border-radius: 50%;
}

.emblem-center {
    position: relative;
    color: #0f3d5d;
    font-size: 26px;
    font-weight: 700;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 2.8vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
}

.brand-copy p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 400;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    transition: 0.2s ease;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #0c3f5c;
}

.btn-accent {
    background: linear-gradient(180deg, #f8aa2d 0%, #ef8b12 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.portal-nav {
    background: #0d5d88;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: stretch;
    min-height: 52px;
}

.nav-dropdown {
    position: relative;
    display: flex;
    min-width: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    overflow-wrap: anywhere;
}

.nav-toggle {
    width: 100%;
    height: 100%;
    min-height: 52px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    cursor: pointer;
    appearance: none;
    white-space: nowrap;
    overflow-wrap: normal;
}

.nav-toggle[aria-expanded="true"] {
    background: #eef1f3;
    color: #0d2f63;
}

.nav-toggle[aria-expanded="true"] .caret {
    display: inline-block;
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    display: flex;
    min-width: max-content;
    padding: 0 6px;
    background: #eef1f3;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.18);
}

.submenu[hidden] {
    display: none;
}

.submenu a {
    display: block;
    padding: 15px 17px;
    color: #062d68;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus-visible {
    background: #dbe5eb;
    outline: none;
}

.submenu-item {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px 17px;
    border: 0;
    color: #062d68;
    background: transparent;
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible,
.submenu-toggle[aria-expanded="true"] {
    background: #dbe5eb;
    outline: none;
}

.nested-submenu {
    top: 100%;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    padding: 0;
}

.nested-submenu a {
    padding: 12px 17px;
}

.nav-item.active {
    background: #7ed9d5;
    color: #0d3f5d;
}

.nav-item .caret {
    margin-left: 6px;
    font-size: 11px;
}

.dashboard-main {
    padding: 18px 0 50px;
    background: #f4f7fb;
}

.content-banner {
    width: 100%;
    margin: -18px 0 18px;
    overflow: hidden;
}

.content-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.portal-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    max-width: 1500px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.section-heading h2 {
    margin: 0;
    color: #172b4d;
    font-size: 14px;
}

.section-heading a {
    color: #35639d;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.news-list,
.help-list,
.due-dates,
.media-list {
    background: #ffffff;
    border: 1px solid #b8d4f4;
    border-radius: 6px;
    overflow: hidden;
}

.due-dates,
.media-list {
    min-height: 345px;
    box-sizing: border-box;
}

.due-dates,
.media-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    min-height: 86px;
    padding: 16px 12px 12px;
    border-bottom: 1px solid #e4e9f0;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-item.highlighted {
    background: #e1edff;
}

.news-item h3 {
    margin: 0;
    color: #244a83;
    font-size: 13px;
    line-height: 1.35;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    color: #24364f;
    font-size: 9px;
}

.news-meta span {
    padding: 2px 7px;
    border-radius: 10px;
    background: #edf0f2;
    text-transform: uppercase;
}

.help-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-bottom: 1px solid #e4e9f0;
    color: #28384c;
    font-size: 12px;
    text-decoration: none;
}

.help-list a:last-child {
    border-bottom: 0;
}

.help-list a span {
    color: #111111;
    font-size: 20px;
    line-height: 12px;
}

.help-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
    padding: 8px 10px;
    border: 1px solid #b8d4f4;
    border-radius: 6px;
    background: #ffffff;
    color: #28384c;
    font-size: 9px;
    text-align: center;
}

.help-contact span + span {
    border-left: 1px solid #e4e9f0;
}

.help-contact strong {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.due-tabs,
.due-grid {
    display: grid;
}

.due-tabs {
    grid-template-columns: repeat(4, 1fr);
}

.due-tabs strong {
    padding: 12px 8px;
    border-right: 1px solid #b8d4f4;
    color: #26364b;
    font-size: 12px;
    text-align: left;
}

.due-tabs strong.active {
    grid-column: span 2;
    background: #e1edff;
    text-align: center;
}

.due-grid {
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    border-top: 1px solid #b8d4f4;
}

.due-grid div {
    min-height: 76px;
    padding: 9px 7px;
    border-right: 1px solid #b8d4f4;
    color: #2d405a;
    font-size: 10px;
}

.due-grid div:nth-child(4n) {
    border-right: 0;
}

.due-grid span {
    display: block;
    margin-bottom: 5px;
}

.due-grid strong {
    display: block;
    color: #111111;
}

.media-card {
    flex: 1;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 9px;
    padding: 10px;
    border-bottom: 1px solid #e4e9f0;
    color: #244a83;
    font-size: 11px;
    text-decoration: none;
}

.media-card:last-child {
    border-bottom: 0;
}

.media-card.highlighted {
    background: #e1edff;
}

.media-thumb {
    display: flex;
    width: 74px;
    height: 68px;
    align-items: center;
    justify-content: center;
    background: #153f70;
    color: #ffffff;
    font-size: 12px;
    object-fit: cover;
    text-align: center;
}

.media-card small {
    grid-column: 2;
    color: #6b7788;
    font-size: 8px;
}

.site-footer {
    position: relative;
    background: #193b69;
    color: #d6e5fa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.1fr 1.45fr 1fr;
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 26px;
}

.footer-grid section {
    min-width: 0;
}

.footer-grid h2 {
    margin: 0 0 20px;
    color: #40c8fa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.footer-grid a,
.footer-contact p {
    display: block;
    margin: 0 0 18px;
    color: #d6e5fa;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-contact p strong {
    display: block;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 22px;
    margin-top: 36px;
}

.social-links a {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid #d6e5fa;
    color: #d6e5fa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1;
}

.footer-meta {
    border-top: 1px solid rgba(214, 229, 250, 0.25);
    background: rgba(9, 35, 72, 0.18);
}

.footer-meta .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    color: #8fb3df;
    font-size: 16px;
}

.footer-support {
    background: #345b91;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.footer-support .container {
    padding-top: 21px;
    padding-bottom: 21px;
}

.back-to-top {
    position: absolute;
    right: 3.5%;
    bottom: 8px;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5e7ea;
    color: #20252b;
    font-size: 14px;
    text-decoration: none;
}

.application-form-page {
    background: #ffffff;
    color: #172b4d;
}

.application-form-main {
    min-height: 720px;
    padding: 24px 28px 48px;
    background: #edf2f4;
}

.application-form-shell {
    max-width: 1410px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d3dce2;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(37, 61, 78, 0.14);
    width: 100%;
    padding-bottom: 48px;
}

.application-summary {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr 0.7fr;
    gap: 42px;
    padding: 16px 38px 14px;
    background: #fff17a;
    color: #222222;
}

.application-summary span,
.application-summary strong {
    display: block;
}

.application-summary span {
    margin-bottom: 14px;
    font-size: 24px;
}

.application-summary strong {
    font-size: 27px;
    font-weight: 400;
}

.application-sections {
    display: grid;
    grid-template-columns: repeat(10, minmax(90px, 1fr));
    border: 1px solid #a9c4d5;
    background: #eef3f5;
}

.application-section {
    position: relative;
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #a9c4d5;
    color: #60482f;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.application-section:last-child {
    border-right: 0;
}

.application-section:hover,
.application-section:focus-visible,
.application-section.active {
    background: #ffffff;
}

.application-section.completed {
    background: #2d5489;
    color: #ffffff;
}

.application-section.completed .application-section-icon {
    color: #ffffff;
    filter: brightness(0) invert(1);
}

.application-completion-mark {
    position: absolute;
    top: 5px;
    right: 7px;
    display: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.application-section.completed .application-completion-mark {
    display: block;
}

.application-section-icon {
    color: #777777;
    filter: grayscale(1);
    font-size: 38px;
    line-height: 1;
}

.application-details {
    padding: 28px 24px 0;
}

.application-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.application-details-header h1 {
    margin: 0;
    color: #132d58;
    font-size: 24px;
    font-weight: 500;
}

.application-details-header > span {
    color: #333333;
    font-size: 15px;
}

.mandatory-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-radius: 50%;
    background: #e00000;
}

.business-identity {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 17px 18px 25px;
    background: #f7f7f7;
}

.business-identity span,
.business-identity strong {
    display: block;
}

.business-identity span {
    margin-bottom: 11px;
    color: #222222;
    font-size: 17px;
}

.business-identity strong {
    color: #111111;
    font-size: 18px;
}

.business-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 900px;
    padding: 14px 18px 24px;
}

.business-fields label,
.additional-trade-name label {
    display: block;
    color: #222222;
    font-size: 17px;
}

.business-fields input,
.business-fields select,
.additional-trade-name input {
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    color: #555555;
    font: inherit;
}

.business-fields input::placeholder,
.additional-trade-name input::placeholder {
    color: #a0a0a0;
}

.required-mark {
    color: #e00000;
}

.additional-trade-name {
    display: grid;
    grid-template-columns: minmax(280px, 515px) 120px 150px;
    align-items: end;
    gap: 7px;
    padding: 16px 18px 24px;
    background: #f7f7f7;
}

.application-button {
    height: 42px;
    border: 1px solid #bac5d3;
    background: #ffffff;
    color: #9b9b9b;
    font: inherit;
    font-weight: 700;
}

.add-button {
    background: #b6c4d7;
    color: #ffffff;
}

.location-fields {
    padding-top: 14px;
}

.application-image-question {
    margin-top: 12px;
    padding: 16px 0 0;
    border-top: 1px solid #d9dde1;
}

.application-image-question .question-row {
    display: block;
    min-height: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #d9dde1;
}

.application-image-question .toggle-question {
    width: 100%;
    background: #ffffff;
}

.application-image-question .casual-question {
    background: #f7f7f7;
}

.application-image-question .question-row:first-child {
    border-top: 0;
}

.application-image-question .question-text {
    display: block;
    color: #1f2937;
    font-size: 16px;
    font-weight: 400;
}

.application-image-question .question-icon {
    display: inline-block;
    margin-left: 8px;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.application-image-question .image-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 58px;
    min-width: 58px;
    height: 32px;
    margin-top: 3px;
    gap: 0;
}

.application-image-question .image-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 32px;
    cursor: pointer;
    z-index: 1;
}

.application-image-question .image-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.application-image-question .image-choice .choice-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 32px;
    color: transparent;
    font-size: 11px;
    font-weight: 700;
    transition: color 180ms ease;
}

.application-image-question .image-toggle::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 54px;
    height: 28px;
    border-radius: 999px;
    background: #858585;
    content: '';
}

.application-image-question .image-toggle::after {
    position: absolute;
    top: 5px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    content: '';
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    transition: left 180ms ease;
}

.application-image-question .image-toggle:has(.image-choice:first-child input:checked)::before {
    background: #1fa56a;
}

.application-image-question .image-toggle:has(.image-choice:first-child input:checked)::after {
    left: 29px;
}

.application-image-question .image-toggle:has(.image-choice:last-child input:checked)::after {
    left: 3px;
}

.application-image-question .image-toggle:has(.image-choice:first-child input:checked) .image-choice:first-child .choice-text,
.application-image-question .image-toggle:has(.image-choice:last-child input:checked) .image-choice:last-child .choice-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.application-image-question .image-choice:focus-within .choice-text {
    outline: none;
}

.application-image-question .rule14a-row {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 0;
    background: #f7f7f7;
}

.application-image-question .yes-no-choice {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.application-image-question .choice-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.application-image-question .choice-option input {
    accent-color: #475569;
}

.application-image-question .rule14a-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0 20px;
    padding: 10px 14px;
    border-radius: 4px;
    background: #f8f8f8;
    color: #414b56;
    font-size: 16px;
    line-height: 1.6;
}

.application-image-question .rule14a-note .question-icon {
    flex: 0 0 auto;
    margin: 0;
    color: #f27d27;
}

.application-image-question .registration-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 34px;
    align-items: end;
}

.application-image-question .application-image-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.application-image-question .application-image-field .question-text {
    margin-bottom: 0;
}

.application-image-question .application-image-field input,
.application-image-question .application-image-field select {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ccd2d8;
    background: #ffffff;
    color: #455261;
    font: inherit;
}

.application-image-question .application-image-date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 3v3M17 3v3M4 9h16M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.existing-registrations,
.document-upload {
    margin-top: 24px;
    border-top: 1px solid #d9dde1;
    background: #f7f7f7;
}

.existing-registrations h2,
.document-upload h2 {
    margin: 0;
    padding: 12px 0 10px;
    color: #132d58;
    font-size: 19px;
    font-weight: 500;
}

.existing-registration-fields {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr auto;
    gap: 26px;
    align-items: end;
    padding: 0 18px 28px;
}

.existing-registration-fields label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #222222;
    font-size: 16px;
}

.existing-registration-fields input,
.existing-registration-fields select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfcfcf;
    background: #ffffff;
    color: #555555;
    font: inherit;
}

.registration-actions {
    display: flex;
    gap: 7px;
}

.registration-actions .application-button {
    min-width: 112px;
}

.document-upload {
    padding-bottom: 0;
}

.uploaded-document {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 10px 48px;
    border-top: 1px solid #d9dde1;
    background: #f7f7f7;
}

.document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 38px;
    border: 1px solid #b7c1cd;
    background: #ffffff;
    color: #315d97;
    font-size: 10px;
    font-weight: 700;
}

.uploaded-document a {
    color: #2d78b7;
    font-size: 16px;
    text-decoration: none;
}

.delete-document {
    min-width: 96px;
    min-height: 38px;
    margin-left: auto;
    border: 0;
    background: #df4e4e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.application-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 30px 0 0;
}

.application-form-actions .application-button {
    min-width: 112px;
}

.application-form-actions .save-button {
    min-width: 220px;
    border-color: #2d5489;
    background: #2d5489;
    color: #ffffff;
}

.application-form-actions .back-button {
    background: #ffffff;
    color: #334155;
}

.application-placeholder {
    min-height: 260px;
    padding: 28px 24px;
    border: 1px solid #d9dde1;
    background: #f7f7f7;
}

.application-placeholder h2 {
    margin: 0 0 12px;
    color: #132d58;
    font-size: 20px;
    font-weight: 500;
}

.application-placeholder p {
    margin: 0 0 24px;
    color: #414b56;
    font-size: 16px;
}

.application-placeholder > h2 {
    margin: -4px 0 8px;
    padding-bottom: 8px;
    color: #132d58;
    font-size: 16px;
    font-weight: 500;
}

.promoter-form-section {
    margin: 0 -24px;
    border-top: 1px solid #d5dadd;
}

.promoter-form-section h2 {
    margin: 0;
    padding: 8px 10px;
    color: #173b68;
    background: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.promoter-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
    padding: 10px;
    background: #f7f7f7;
}

.promoter-form-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promoter-name-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promoter-field-wide {
    grid-column: 1 / -1;
}

.promoter-field {
    min-width: 0;
}

.promoter-field > label,
.promoter-field .promoter-field > label {
    display: block;
    margin-bottom: 6px;
    color: #25384e;
    font-size: 13px;
    font-weight: 400;
}

.promoter-field-label {
    display: block;
    margin-bottom: 6px;
    color: #25384e;
    font-size: 13px;
}

.promoter-field input,
.promoter-field select {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cfd5da;
    border-radius: 0;
    background: #ffffff;
    color: #455261;
    font: inherit;
    font-size: 13px;
}

.promoter-field input::placeholder {
    color: #a0a8b0;
}

.promoter-field input:disabled {
    background: #e9e9e9;
    color: #888888;
}

.promoter-field .promoter-form-grid {
    padding: 0;
    background: transparent;
}

.field-info {
    color: #111111;
    font-size: 12px;
}

.input-prefix,
.telephone-fields {
    display: flex;
}

.input-prefix > span,
.telephone-fields input:first-child {
    display: inline-flex;
    align-items: center;
    width: 55px;
    padding: 0 10px;
    border: 1px solid #cfd5da;
    background: #f5f5f5;
    color: #65717d;
    font-size: 13px;
}

.input-prefix input,
.telephone-fields input:last-child {
    min-width: 0;
    border-left: 0;
}

.radio-options {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 36px;
}

.radio-options label {
    color: #354456;
    font-size: 13px;
    white-space: nowrap;
}

.radio-options input {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.green-toggle {
    display: inline-flex !important;
    align-items: center;
    width: 48px;
    height: 26px;
    margin: 2px 0 0;
    padding: 0 5px;
    border-radius: 20px;
    background: #50b927;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.green-toggle input {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0 3px 0 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
}

.citizenship-choice {
    position: relative;
    display: flex;
    align-items: center;
    width: 58px;
    height: 32px;
    margin-top: 2px;
}

.citizenship-choice .image-choice {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 32px;
    cursor: pointer;
}

.citizenship-choice .image-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.citizenship-choice .choice-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 32px;
    color: transparent;
    font-size: 11px;
    font-weight: 700;
}

.citizenship-choice::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 54px;
    height: 28px;
    border-radius: 999px;
    background: #1fa56a;
    content: '';
}

.citizenship-choice::after {
    position: absolute;
    top: 5px;
    left: 29px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    content: '';
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    transition: left 180ms ease;
}

.citizenship-choice:has(.image-choice:last-child input:checked)::before {
    background: #858585;
}

.citizenship-choice:has(.image-choice:last-child input:checked)::after {
    left: 3px;
}

.citizenship-choice:has(.image-choice:first-child input:checked) .image-choice:first-child .choice-text,
.citizenship-choice:has(.image-choice:last-child input:checked) .image-choice:last-child .choice-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.citizenship-no {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    color: #4d5b68;
    font-size: 12px;
}

.citizenship-no input {
    width: 14px;
    height: 14px;
    margin: 0;
}

.address-map {
    position: relative;
    height: 240px;
    overflow: hidden;
    border: 1px solid #c4d7b3;
    background-color: #cce6a6;
    background-image: linear-gradient(25deg, transparent 46%, rgba(255, 255, 255, 0.65) 47%, transparent 49%), linear-gradient(155deg, transparent 44%, rgba(255, 255, 255, 0.6) 45%, transparent 47%), linear-gradient(90deg, rgba(125, 184, 220, 0.5) 0 16%, transparent 16% 67%, rgba(125, 184, 220, 0.45) 67% 78%, transparent 78%);
}

.map-search {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 168px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #737373;
    font-size: 11px;
}

.map-search span {
    flex: 1;
}

.map-marker {
    position: absolute;
    top: 43%;
    left: 50%;
    color: #247938;
    font-size: 34px;
    text-shadow: 0 1px 2px #ffffff;
}

.map-hint {
    position: absolute;
    top: 39%;
    left: 43%;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: #7a7a7a;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.map-zoom {
    position: absolute;
    right: 8px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
}

.map-zoom button {
    width: 28px;
    height: 28px;
    border: 1px solid #aab3ba;
    background: rgba(255, 255, 255, 0.8);
    color: #52708a;
    font-size: 20px;
}

.map-label {
    position: absolute;
    color: #476d42;
    font-size: 12px;
    font-weight: 700;
}

.map-india {
    bottom: 42px;
    left: 48%;
    letter-spacing: 6px;
}

.map-delhi {
    top: 48%;
    left: 51%;
    font-size: 10px;
}

.address-fields {
    padding-top: 12px;
}

.address-reset-wrap {
    display: flex;
    justify-content: center;
    padding: 14px 10px 4px;
    background: #f7f7f7;
}

.address-reset {
    min-width: 180px;
    min-height: 32px;
    font-size: 12px;
}

.promoter-document-section,
.promoter-other-section {
    margin: 0 -24px;
    border-top: 1px solid #c6cbd0;
}

.promoter-document-section h2,
.promoter-other-section h2 {
    margin: 0;
    padding: 10px 2px;
    color: #173b68;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.promoter-document-content {
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    min-height: 130px;
    padding: 14px;
    background: #f7f7f7;
}

.promoter-upload-details,
.camera-upload {
    color: #25384e;
    font-size: 13px;
}

.promoter-upload-details label {
    display: block;
    margin-bottom: 10px;
}

.promoter-upload-details p,
.camera-upload p {
    margin: 0 0 10px;
}

.promoter-upload-details input[type="file"] {
    width: 100%;
    font-size: 12px;
}

.upload-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #c7cdd2;
    border-right: 1px solid #c7cdd2;
    color: #a6afb7;
}

.upload-divider span {
    padding: 3px 12px;
    background: #ffffff;
    font-weight: 700;
}

.camera-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.camera-button {
    min-width: 155px;
    min-height: 34px;
    border: 0;
    background: #2d5489;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.promoter-other-section {
    margin-top: 0;
}

.authorized-signatory-row {
    min-height: 88px;
    padding: 8px 14px;
    background: #f7f7f7;
    color: #25384e;
    font-size: 13px;
}

.authorized-signatory-row .citizenship-choice {
    margin-top: 6px;
}

.promoter-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 -24px;
    padding: 34px 0 0;
}

.promoter-form-actions .application-button {
    min-width: 120px;
    min-height: 36px;
}

.promoter-form-actions .list-button,
.promoter-form-actions .back-button {
    background: #ffffff;
    color: #25384e;
}

.promoter-form-actions .add-new-button {
    border-color: #c1ccda;
    background: #c1ccda;
    color: #ffffff;
}

.promoter-form-actions .save-button {
    min-width: 165px;
}

@media (max-width: 900px) {
    .application-summary {
        gap: 18px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .application-summary span {
        font-size: 17px;
    }

    .application-summary strong {
        font-size: 19px;
    }

    .application-sections {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }

    .application-section:nth-child(5) {
        border-right: 0;
    }

    .application-section:nth-child(n + 6) {
        border-top: 1px solid #a9c4d5;
    }
}

@media (max-width: 600px) {
    .application-summary,
    .business-identity,
    .business-fields,
    .additional-trade-name,
    .existing-registration-fields {
        grid-template-columns: 1fr;
    }

    .registration-actions,
    .uploaded-document,
    .application-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .uploaded-document {
        padding: 14px 18px;
    }

    .delete-document {
        margin-left: 0;
    }

    .application-form-actions .application-button,
    .registration-actions .application-button {
        width: 100%;
    }

    .promoter-form-grid,
    .promoter-form-grid.three-columns,
    .promoter-name-grid {
        grid-template-columns: 1fr;
    }

    .promoter-field-wide {
        grid-column: auto;
    }

    .promoter-field .promoter-form-grid {
        grid-template-columns: 1fr;
    }

    .address-map {
        height: 200px;
    }

    .map-hint {
        left: 28%;
    }

    .promoter-document-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .upload-divider {
        min-height: 34px;
        border-top: 1px solid #c7cdd2;
        border-right: 0;
        border-bottom: 1px solid #c7cdd2;
        border-left: 0;
    }

    .promoter-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .promoter-form-actions .application-button {
        width: 100%;
    }

    .application-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-section:nth-child(odd) {
        border-right: 1px solid #a9c4d5;
    }
}

@media (max-width: 820px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-meta .container {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid h2 {
        margin-bottom: 12px;
    }

    .footer-grid a,
    .footer-contact p {
        margin-bottom: 10px;
    }

    .back-to-top {
        right: 14px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 820px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .brand-box {
        padding: 40px 24px;
    }

    .form-box {
        padding: 30px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .top-strip-inner,
    .portal-header-inner,
    .welcome-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-copy h1 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .portal-content {
        grid-template-columns: 1fr;
    }

    .nav-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .submenu {
        right: auto;
        flex-wrap: wrap;
        min-width: 0;
        width: min(640px, 92vw);
    }

    .due-dates,
    .media-list {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nav-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submenu {
        left: 12px;
        width: calc(100vw - 48px);
    }

    .nav-dropdown:nth-child(2) .submenu,
    .nav-dropdown:nth-child(4) .submenu {
        left: calc(-100% + 12px);
    }

    .submenu a {
        flex: 1 1 50%;
        padding: 12px 10px;
        white-space: normal;
    }

    .due-tabs strong,
    .due-grid div {
        font-size: 9px;
    }
}
