:root {
    --gold-primary: #c5b680;
    --charcoal: #414042;
    --teal-dark: #145c5c;
    --teal-primary: #1a7b7b;
    --teal-light: #2a9d8f;
    --cream: #f5f1e8;
    --beige: #ede7d9;
    --white: #ffffff;
    --text-primary: #414042;
    --text-muted: #6b6b6b;
    --panel-border: rgba(255, 255, 255, 0.7);
    --panel-bg: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 24px 60px rgba(20, 92, 92, 0.12);
    --pill-idle: #edf1f4;
    --pill-idle-border: #d7dee5;
    --pill-active: #145c5c;
    --pill-active-text: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Google Sans", "Noto Sans Arabic", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(1200px 900px at 68% 12%, rgba(42, 157, 143, 0.14), transparent 60%),
        radial-gradient(1000px 900px at 22% 30%, rgba(197, 182, 128, 0.18), transparent 55%),
        linear-gradient(180deg, var(--cream), #fbfaf7 35%, var(--cream));
    background-size: 110% 110%, 115% 115%, 100% 100%;
    background-attachment: fixed;
    animation: gradientShift 24s ease-in-out infinite alternate;
}

body.page-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(245, 241, 232, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.page-loader__logo {
    width: min(230px, 70vw);
    max-width: 100%;
    height: auto;
}

.page-loader__spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(20, 92, 92, 0.16);
    border-top-color: var(--teal-primary);
    border-right-color: var(--gold-primary);
    animation: pageLoaderSpin 0.85s linear infinite;
}

body.page-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.page-loading .submit-shell {
    filter: blur(12px);
    opacity: 0.14;
    pointer-events: none;
    user-select: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }

    100% {
        background-position: 6% -4%, -7% 5%, 0% 0%;
    }
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.submit-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.submit-header {
    padding: 26px 0 16px;
}

.submit-header-inner {
    position: relative;
    min-height: 96px;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.brand-logo-shell {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(20, 92, 92, 0.98), rgba(17, 62, 62, 0.96));
    box-shadow: 0 26px 48px rgba(10, 45, 45, 0.22);
}

.brand-logo {
    width: 36px;
    height: 36px;
}

.eyebrow {
    margin: 0;
    color: var(--gold-primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-stack h1 {
    margin: 0;
    color: var(--teal-dark);
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    font-weight: 800;
}

.header-actions {
    position: absolute;
    top: 0;
    right: 0;
}

.submit-main {
    flex: 1 0 auto;
    padding: 4px 0 32px;
}

.wizard-card {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.wizard-topbar,
.topbar-actions,
.wizard-actions,
.wizard-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-topbar,
.wizard-actions {
    justify-content: space-between;
}

.wizard-topbar h3 {
    margin: 0 0 4px;
    color: var(--teal-dark);
    font-weight: 800;
}

.draft-badge,
.submission-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(20, 92, 92, 0.1);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    font-weight: 600;
}

.draft-badge {
    color: var(--text-muted);
}

.submission-badge {
    color: var(--teal-dark);
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 24px;
}

.wizard-step {
    position: relative;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(20, 92, 92, 0.08);
    color: #93a1a8;
}

.wizard-step::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: calc(100% - 16px);
    height: 1px;
    background: rgba(20, 92, 92, 0.12);
    transform: translateY(-50%);
}

.wizard-step:last-child::after {
    display: none;
}

.wizard-step-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 182, 128, 0.16);
    color: var(--gold-primary);
    font-size: 1rem;
}

.wizard-step.is-active {
    color: var(--teal-dark);
    border-color: rgba(20, 92, 92, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.wizard-step.is-active .wizard-step-icon {
    background: linear-gradient(180deg, rgba(20, 92, 92, 0.98), rgba(17, 62, 62, 0.96));
    color: var(--white);
}

.wizard-step.is-complete {
    color: var(--teal-dark);
    border-color: rgba(20, 92, 92, 0.12);
    background: rgba(232, 245, 244, 0.9);
}

.wizard-step.is-complete .wizard-step-icon {
    background: linear-gradient(180deg, rgba(42, 157, 143, 0.98), rgba(26, 123, 123, 0.96));
    color: var(--white);
}

.wizard-step small {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
}

.panel-sheet,
.info-aside {
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(20, 92, 92, 0.08);
    background: rgba(255, 255, 255, 0.72);
    padding: 24px;
}

.panel-sheet h4,
.info-aside h4 {
    margin: 0 0 10px;
    color: var(--teal-dark);
    font-weight: 700;
}

.panel-sheet p,
.info-aside p {
    color: var(--text-muted);
}

.instruction-copy {
    color: var(--text-muted);
    line-height: 1.8;
}

.instruction-copy ol,
.instruction-copy ul {
    margin: 0.75rem 0 0;
    padding-inline-start: 1.25rem;
}

.instruction-copy li + li {
    margin-top: 0.45rem;
}

.panel-sheet,
.info-aside,
.wizard-topbar,
.form-label,
.instruction-list,
.declaration-check,
.draft-badge,
.submission-badge {
    text-align: start;
}

.aside-art {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.aside-art img {
    width: min(180px, 100%);
    opacity: 0.22;
}

.instruction-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.9;
}

.form-label {
    color: var(--teal-dark);
    font-weight: 600;
}

.form-label-row,
.declaration-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field-meta,
.declaration-meta {
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: end;
}

.upload-card {
    border: 1px solid rgba(20, 92, 92, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.66);
}

.upload-grid-header,
.upload-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(140px, 0.8fr) minmax(160px, 1fr);
    gap: 24px;
    align-items: center;
}

.upload-grid-header {
    padding: 14px 18px;
    background: rgba(20, 92, 92, 0.05);
    border-bottom: 1px solid rgba(20, 92, 92, 0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.upload-row {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(20, 92, 92, 0.08);
}

.upload-row:last-child {
    border-bottom: 0;
}

.upload-row.has-file {
    background: rgba(245, 241, 232, 0.42);
}

.upload-row.is-valid {
    background: rgba(232, 245, 244, 0.6);
}

.upload-row.is-invalid {
    background: rgba(255, 245, 245, 0.86);
}

.upload-file-label-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.upload-file-label {
    display: block;
    color: #171717;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.upload-validity-icon {
    color: #1f9d55;
    font-size: 1rem;
}

.upload-file-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-type-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-type-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(65, 64, 66, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1;
}

.upload-size-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upload-action {
    align-self: center;
}

.upload-trigger-btn {
    min-height: 42px;
    padding-inline: 18px;
    white-space: nowrap;
}

.upload-status-text {
    color: var(--text-muted);
    font-size: 0.96rem;
    word-break: break-word;
    display: block;
}

.upload-row.has-file .upload-status-text {
    color: var(--teal-dark);
    font-weight: 600;
}

.upload-status-detail {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-detail-size {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.upload-detail-info {
    color: var(--teal-dark);
    font-size: 0.88rem;
    font-weight: 600;
}

.upload-detail-error {
    color: var(--bs-danger, #dc3545);
    font-size: 0.88rem;
    font-weight: 600;
}

.upload-native-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aside-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--teal-primary);
    font-weight: 600;
    text-decoration: none;
}

.aside-link:hover,
.aside-link:focus {
    color: var(--teal-dark);
    text-decoration: underline;
}

.aside-link::after {
    content: "\f35d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(20, 92, 92, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(26, 123, 123, 0.45);
    box-shadow: 0 0 0 0.18rem rgba(26, 123, 123, 0.12);
}

.iti,
.iti input {
    width: 100%;
}

.iti {
    direction: ltr;
}

html[dir="ltr"] .iti--allow-dropdown input.form-control,
html[dir="ltr"] .iti--separate-dial-code input.form-control {
    padding-left: 88px !important;
    padding-right: 0 !important;
    text-align: left !important;
}

html[dir="ltr"] .iti__country-container {
    left: 0 !important;
    right: auto !important;
}

.iti__selected-country {
    border-radius: 16px 0 0 16px;
}

.iti__selected-country-primary {
    min-height: 46px;
}

.iti__country-list {
    min-width: 280px;
    border-radius: 16px;
    text-align: start;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(20, 92, 92, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    display: flex;
    align-items: center;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-inline: 16px 34px;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: start;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted);
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    inset-inline-end: 10px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(26, 123, 123, 0.45);
    box-shadow: 0 0 0 0.18rem rgba(26, 123, 123, 0.12);
}

.select2-dropdown {
    border: 1px solid rgba(20, 92, 92, 0.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(20, 92, 92, 0.14);
}

.select2-search--dropdown {
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(20, 92, 92, 0.14);
    padding-inline: 12px;
}

.select2-results__option {
    padding: 10px 14px;
    text-align: start;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(20, 92, 92, 0.12);
    color: var(--teal-dark);
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.pill-group.is-hidden {
    display: none;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid var(--pill-idle-border);
    border-radius: 16px;
    background: var(--pill-idle);
    color: #5f6b76;
    font-weight: 600;
    text-align: start;
    transition: all 0.2s ease;
}

.choice-pill:hover,
.choice-pill:focus {
    border-color: rgba(26, 123, 123, 0.2);
    color: var(--teal-dark);
}

.choice-pill.is-selected {
    background: var(--pill-active);
    color: var(--pill-active-text);
    border-color: var(--pill-active);
    box-shadow: 0 12px 24px rgba(20, 92, 92, 0.08);
}

.choice-pill i {
    margin: 0;
}

.declaration-check {
    padding: 1rem;
    border-radius: 16px;
    background: #f4f8fa;
}

.declaration-check.is-invalid {
    border: 1px solid var(--bs-danger, #dc3545);
}

.declaration-title {
    margin: 0;
    color: var(--teal-dark);
}

.review-summary-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(20, 92, 92, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.review-summary-card.is-valid {
    background: rgba(232, 245, 244, 0.72);
    border-color: rgba(42, 157, 143, 0.2);
}

.review-summary-card.is-invalid {
    border-color: rgba(220, 53, 69, 0.24);
}

.review-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-summary-title {
    margin: 0;
    color: var(--teal-dark);
}

.review-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 92, 92, 0.08);
    color: var(--teal-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.review-summary-copy {
    margin: 12px 0 0;
    color: var(--text-muted);
}

.review-summary-list {
    margin-top: 16px;
}

.review-declaration-lock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(245, 241, 232, 0.72);
    color: var(--text-muted);
    border: 1px dashed rgba(197, 182, 128, 0.6);
}

.review-summary-empty,
.review-issue-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.review-summary-empty {
    color: #1f9d55;
    font-weight: 600;
}

.review-summary-issues {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-issue-item {
    color: var(--text-primary);
    border: 1px solid rgba(220, 53, 69, 0.14);
}

.review-issue-item i {
    margin-top: 2px;
    color: var(--bs-danger, #dc3545);
}

.declaration-terms {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 1rem;
}

.declaration-mode-panel {
    margin-top: 1rem;
}

.declaration-mode-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.declaration-mode-heading h6 {
    margin: 0;
    color: var(--teal-dark);
    font-size: 1rem;
}

.declaration-mode-heading p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.declaration-mode-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 92, 92, 0.1);
    color: var(--text-primary);
}

.declaration-upload-row {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
}

.signature-pad {
    border: 1px dashed rgba(20, 92, 92, 0.28);
    border-radius: 16px;
    background: #ffffff;
    padding: 10px;
}

.signature-pad.is-invalid {
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 0 0.14rem rgba(220, 53, 69, 0.08);
}

.signature-pad canvas {
    display: block;
    width: 100%;
    min-height: 180px;
    border-radius: 12px;
    background: #ffffff;
    touch-action: none;
    cursor: crosshair;
}

.signature-pad-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.signature-pad-status {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.viz-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
    white-space: nowrap;
}

.declaration-term-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 92, 92, 0.1);
    cursor: pointer;
}

.declaration-switch {
    margin: 0;
    position: relative;
    width: 4.8rem;
    height: 2.35rem;
}

.declaration-switch-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.declaration-switch-ui {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 2px solid rgba(95, 126, 126, 0.88);
    background: linear-gradient(180deg, rgba(245, 241, 232, 0.98), rgba(237, 231, 217, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 20px rgba(65, 64, 66, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.declaration-switch-ui::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.24rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f6f4ef 100%);
    box-shadow: 0 3px 10px rgba(65, 64, 66, 0.18);
    transform: translate(0, -50%);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.declaration-switch-input:focus-visible + .declaration-switch-ui,
.declaration-switch-input:focus + .declaration-switch-ui {
    box-shadow: 0 0 0 0.18rem rgba(197, 182, 128, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 20px rgba(65, 64, 66, 0.08);
}

.declaration-switch-input:checked + .declaration-switch-ui {
    border-color: rgba(82, 122, 122, 0.96);
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--teal-light) 100%);
    box-shadow: 0 12px 24px rgba(197, 182, 128, 0.28);
}

.declaration-switch-input:checked + .declaration-switch-ui::before {
    transform: translate(2.2rem, -50%);
    background: linear-gradient(180deg, #fffdfa 0%, #f2ede1 100%);
}

.declaration-term-label {
    flex: 1 1 auto;
    color: var(--text-primary);
}

.attachment-rules-title {
    margin: 0 0 0.85rem;
    color: var(--teal-dark);
    font-size: 1rem;
}

.attachment-rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-rule-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(20, 92, 92, 0.08);
}

.attachment-rule-item span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.wizard-actions {
    margin-top: 24px;
}

.btn {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 600;
    padding-inline: 20px;
}

.btn-primary,
.btn-success {
    border-color: var(--teal-primary);
    background: linear-gradient(180deg, rgba(20, 92, 92, 0.98), rgba(17, 62, 62, 0.96));
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: var(--teal-dark);
    background: linear-gradient(180deg, rgba(26, 123, 123, 0.98), rgba(20, 92, 92, 0.96));
}

.btn-outline-secondary {
    color: var(--text-primary);
    border-color: rgba(20, 92, 92, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.btn-outline-light {
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 92, 92, 0.98), rgba(17, 62, 62, 0.96));
    border-color: transparent;
    color: var(--white);
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-inline: 14px;
}

.header-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.header-action-label {
    line-height: 1;
}

.flag-badge {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.flag-badge-gb {
    background:
        linear-gradient(90deg, transparent 42%, #ffffff 42%, #ffffff 58%, transparent 58%),
        linear-gradient(transparent 38%, #ffffff 38%, #ffffff 62%, transparent 62%),
        linear-gradient(90deg, transparent 46%, #cf142b 46%, #cf142b 54%, transparent 54%),
        linear-gradient(transparent 44%, #cf142b 44%, #cf142b 56%, transparent 56%),
        linear-gradient(135deg, transparent 43%, #ffffff 43%, #ffffff 47%, transparent 47%, transparent 53%, #ffffff 53%, #ffffff 57%, transparent 57%),
        linear-gradient(45deg, transparent 43%, #ffffff 43%, #ffffff 47%, transparent 47%, transparent 53%, #ffffff 53%, #ffffff 57%, transparent 57%),
        #012169;
}

.flag-badge-ae {
    background:
        linear-gradient(90deg, #ff0000 0 28%, transparent 28%),
        linear-gradient(180deg, #00732f 0 33.33%, #ffffff 33.33% 66.66%, #000000 66.66%);
}

.submit-footer {
    padding: 10px 0 28px;
    text-align: center;
    color: var(--text-muted);
}

html[dir="rtl"] body {
    font-family: "Noto Sans Arabic", "Google Sans", sans-serif;
}

html[dir="rtl"] .submit-header,
html[dir="rtl"] .wizard-card,
html[dir="rtl"] .panel-sheet,
html[dir="rtl"] .info-aside,
html[dir="rtl"] .wizard-topbar,
html[dir="rtl"] .wizard-actions,
html[dir="rtl"] .form-label,
html[dir="rtl"] .instruction-list,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] textarea,
html[dir="rtl"] .declaration-check,
html[dir="rtl"] .draft-badge,
html[dir="rtl"] .submission-badge {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .pill-group {
    direction: rtl;
    justify-content: flex-start;
}

html[dir="rtl"] .choice-pill {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .header-actions {
    right: auto;
    left: 0;
}

html[dir="rtl"] .instruction-list {
    padding-left: 0;
    padding-right: 1.25rem;
}

html[dir="rtl"] .instruction-copy ol,
html[dir="rtl"] .instruction-copy ul {
    padding-inline-start: 0;
    padding-inline-end: 1.25rem;
}

html[dir="rtl"] .wizard-step::after {
    left: auto;
    right: calc(100% + 8px);
}

html[dir="rtl"] .choice-pill i {
    margin: 0;
}

html[dir="rtl"] .select2-container {
    direction: rtl;
}

html[dir="rtl"] .select2-container .select2-selection--single .select2-selection__rendered,
html[dir="rtl"] .select2-search--dropdown .select2-search__field,
html[dir="rtl"] .select2-results__option {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .iti {
    direction: rtl;
}

html[dir="rtl"] .iti input {
    direction: ltr;
    text-align: right;
}

html[dir="rtl"] .iti__country-container {
    left: auto;
    right: 0;
}

html[dir="rtl"] .iti--allow-dropdown input,
html[dir="rtl"] .iti--separate-dial-code input {
    padding-left: 0 !important;
    padding-right: 88px !important;
    text-align: right !important;
}

html[dir="rtl"] .iti__selected-country {
    border-radius: 0 16px 16px 0;
}

html[dir="rtl"] .iti__country-list {
    text-align: right;
    right: 0;
    left: auto;
}

html[dir="rtl"] .declaration-term-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .declaration-mode-note,
html[dir="rtl"] .signature-pad-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .viz-toggle {
    justify-content: flex-start;
}

html[dir="rtl"] .field-meta,
html[dir="rtl"] .declaration-meta {
    text-align: start;
}

html[dir="rtl"] .aside-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .upload-type-chip-list {
    justify-content: flex-start;
}

html[dir="rtl"] .upload-status {
    text-align: right;
}

html[dir="rtl"] .upload-file-label-row,
html[dir="rtl"] .review-summary-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .review-summary-empty,
html[dir="rtl"] .review-issue-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .review-declaration-lock {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-action-btn {
    flex-direction: row-reverse;
}

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

    .wizard-step::after {
        display: none;
    }

    .upload-grid-header,
    .upload-row {
        grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.8fr) minmax(120px, 1fr);
        gap: 18px;
    }

    .viz-toggle {
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .submit-header-inner,
    .wizard-topbar,
    .wizard-actions,
    .wizard-actions-right,
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        position: static;
        margin-top: 16px;
        display: flex;
        justify-content: center;
    }

    .wizard-card {
        padding: 18px;
        border-radius: 24px;
    }

    .wizard-progress {
        grid-template-columns: 1fr;
    }

    .wizard-step {
        padding: 10px 12px;
    }

    .upload-grid-header {
        display: none;
    }

    .upload-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-summary-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .upload-action {
        justify-self: start;
    }

    .wizard-actions-right .btn,
    #prevStepBtn {
        width: 100%;
    }
}
