body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(160deg, #f8f7ff 0%, #f3f4f6 45%, #eef2ff 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #374151;
}

:root {
    --theme-primary: #5843CF;
    --theme-primary-dark: #4633B2;
    --theme-primary-soft: rgba(88,67,207,0.2);
}

.registration-page {
    padding: 10px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px 14px;
    box-shadow: 0 8px 24px rgba(88, 67, 207, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.registration-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f4;
}

.registration-brand {
    flex: 1;
    min-width: 0;
}

.registration-brand-names {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.25;
}

.registration-brand-company {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.registration-brand-divider {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 400;
}

.registration-brand-branch {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-primary);
}

.registration-brand-address {
    margin-top: 2px;
    font-size: 10px;
    color: #6b7280;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.registration-title {
    margin: 0;
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding-top: 1px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.page-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.page-header-logo-wrap {
    display: flex;
    align-items: center;
}

.page-header-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.page-header-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.page-header-line-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    max-width: 640px;
}

.page-header-line-2 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    max-width: 640px;
}

.page-header-divider {
    color: #999;
    font-size: 12px;
}

.page-header-company {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    text-align: right;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header-branch {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-primary);
    text-align: right;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-header-meta {
    font-size: 11px;
    color: #666;
    text-align: right;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 14px;
    color: #1f2937;
}

.section-title {
    margin: 10px 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
    grid-column: 1 / -1;
}

.form-section-card {
    background: #fafbfc;
    border: 1px solid #eceef3;
    border-radius: 8px;
    padding: 8px 10px 2px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 4px;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 10px;
    align-items: end;
}

.fields-grid--address {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .fields-grid--address {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.address-default-option {
    margin-top: 6px;
    margin-bottom: 2px;
}

.address-default-option__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #455472;
    line-height: 1.25;
    width: auto;
}

.address-default-option__input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 16px;
    border: 1.5px solid #c5cad3;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.address-default-option__input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

.address-default-option__input:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.address-default-option__input:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.address-default-option__text {
    user-select: none;
    line-height: 1.25;
}

.grid-span-2 {
    grid-column: span 1;
}

.fields-grid-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    align-items: end;
}

.fields-grid-pair .form-group {
    margin-bottom: 0;
}

.fields-grid-contact-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 36px 16px;
    column-gap: 10px;
    row-gap: 2px;
    align-items: stretch;
}

.fields-grid-contact-row .form-group {
    margin-bottom: 0;
}

.fields-grid-contact-row .contact-combo-group {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 3;
    margin-bottom: 0;
    min-width: 0;
}

.fields-grid-contact-row .contact-combo-group > label {
    grid-row: 1;
    align-self: end;
    margin: 0;
    height: auto;
    min-height: 0;
    display: block;
    line-height: 1.2;
}

.fields-grid-contact-row .contact-combo-group > .phone-input,
.fields-grid-contact-row .contact-combo-group > .contact-combo-group__control {
    grid-row: 2;
    align-self: stretch;
    width: 100%;
    margin: 0;
    min-width: 0;
    height: 36px;
}

.fields-grid-contact-row .contact-combo-group__control {
    display: flex;
    align-items: stretch;
}

.fields-grid-contact-row .contact-combo-group__control .bootstrap-select.compact-select {
    width: 100%;
    margin: 0;
    flex: 1;
}

.fields-grid-contact-row .contact-combo-group > .phone-input__error {
    grid-row: 3;
    align-self: start;
    margin-top: 0;
    min-height: 14px;
}

.fields-grid-contact-row .bootstrap-select.compact-select > .dropdown-toggle {
    height: 36px !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
}

.fields-grid-contact-row .bootstrap-select.compact-select .filter-option-inner-inner {
    line-height: 26px !important;
}

.fields-grid-contact-row .contact-combo-group--nationality::after,
.fields-grid-contact-row .contact-combo-group--region::after {
    grid-row: 3;
    content: '';
    display: block;
    min-height: 14px;
}

@supports not (grid-template-rows: subgrid) {
    .fields-grid-contact-row {
        grid-template-rows: none;
        row-gap: 6px;
    }

    .fields-grid-contact-row .contact-combo-group {
        grid-row: auto;
        grid-template-rows: none;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .fields-grid-contact-row .contact-combo-group > label {
        align-self: auto;
    }

    .fields-grid-contact-row .contact-combo-group > .phone-input,
    .fields-grid-contact-row .contact-combo-group > .contact-combo-group__control {
        height: auto;
    }
}

.contact-combo-group {
    margin-bottom: 4px;
    min-width: 0;
}

.contact-combo-group--mobile,
.contact-combo-group--phone,
.contact-combo-group--nationality,
.contact-combo-group--region {
    grid-column: span 1;
}

/* Integrated phone input (flag + dial code + number) */
.phone-input {
    width: 100%;
    min-width: 0;
}

.phone-input__control {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input__control:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

.phone-input__prefix {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.phone-input__trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    margin: 0;
    padding: 0 8px 0 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
}

.phone-input__trigger:hover {
    background: #f9fafb;
}

.phone-input__trigger:focus {
    outline: none;
}

.phone-input__trigger:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: -2px;
    border-radius: 6px;
}

.phone-input__trigger[aria-expanded="true"] {
    background: #f3f4f6;
}

.phone-input__flag {
    display: block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    background: #f3f4f6;
    flex-shrink: 0;
}

.phone-input__flag--placeholder {
    object-fit: contain;
    padding: 1px;
}

.phone-input__code {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    flex-shrink: 0;
}

.phone-input__chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
    margin-top: 1px;
    flex-shrink: 0;
}

.phone-input__dial-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.phone-input__menu {
    position: fixed;
    z-index: 10050;
    min-width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.phone-input__menu-search {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.phone-input__menu-search-input {
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    color: #374151;
    outline: none;
}

.phone-input__menu-search-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

.phone-input__menu-search-input::placeholder {
    color: #9ca3af;
}

.phone-input__menu-list {
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 0;
}

.phone-input__menu-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.phone-input__menu-item[hidden],
.phone-input__menu-empty[hidden] {
    display: none;
}

.phone-input__menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 7px 12px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.phone-input__menu-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.phone-input__menu-item:hover,
.phone-input__menu-item.is-selected {
    background: #f3f4f6;
}

.phone-input__menu-item img {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.phone-input__divider {
    width: 1px;
    align-self: stretch;
    background: #e5e7eb;
    margin: 7px 8px 7px 0;
    flex-shrink: 0;
}

.phone-input__number {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 10px 0 0 !important;
    font-size: 12px;
    color: #374151;
}

.phone-input__number:focus {
    outline: none;
    box-shadow: none !important;
}

.phone-input__number::placeholder {
    color: #9ca3af;
    font-size: 12px;
}

.phone-input__control--invalid {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12) !important;
}

.phone-input__error {
    display: block;
    min-height: 14px;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.3;
    color: #d93025;
}

.dial-code-field {
    min-width: 0;
}

.dial-code-field .bootstrap-select .filter-option-inner-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

label {
    font-size: 10px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 2px;
    display: block;
    line-height: 1.2;
}

input:not([type="checkbox"]):not([type="radio"]),
select.form-control {
    width: 100%;
    font-size: 12px;
    height: 30px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fff;
}

input[type="date"] {
    min-height: 30px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select.form-control:focus {
    border-color: var(--theme-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

input::placeholder {
    color: #9ca3af;
    font-size: 11px;
}

.bootstrap-select.compact-select > .dropdown-toggle {
    height: 30px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    border-color: #d1d5db !important;
    background: #fff !important;
    line-height: 1.3 !important;
}

.bootstrap-select.compact-select > .dropdown-toggle:focus,
.bootstrap-select.compact-select > .dropdown-toggle:active {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px var(--theme-primary-soft) !important;
    outline: none !important;
}

.bootstrap-select.compact-select .filter-option-inner-inner {
    font-size: 12px;
    color: #374151;
}

.bootstrap-select.compact-select .dropdown-menu {
    font-size: 13px;
}

.bootstrap-select.compact-select .dropdown-menu li a {
    padding: 6px 12px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-top: 8px;
    border-bottom: 1px solid #e8ecf3;
    gap: 4px;
}

.tab {
    font-size: 13px;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
    margin-bottom: -1px;
}

.tab:hover {
    color: var(--theme-primary);
}

    .tab.active {
        color: var(--theme-primary);
        border-bottom: 2px solid var(--theme-primary);
    }

.tab-content {
    display: none;
    margin-top: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content label {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    width: 100%;
    padding: 12px;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.address-actions {
    gap: 8px;
}

.address-actions .btn {
    width: auto;
    padding: 6px 10px;
}

.address-actions .btn.btn-sm {
    padding: 4px 10px;
}

.form-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f4;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    align-items: center;
}

#formMessage {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 13px;
    min-height: 18px;
    margin: 0;
}

.form-actions .portal-auth-footer {
    grid-column: 1;
    margin-top: 0;
    padding-top: 0;
    text-align: left;
}

.form-actions .submit-registration-btn {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    width: auto;
    min-width: 200px;
    margin: 0;
    justify-self: end;
}

.btn.submit-registration-btn {
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background-color: var(--theme-primary) !important;
    border: 1px solid var(--theme-primary);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.submit-registration-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

    .btn.dropdown-toggle {
        color: #1c1c1c;
    }

    .btn.submit-registration-btn:hover:not(:disabled) {
        background-color: var(--theme-primary-dark) !important;
        border-color: var(--theme-primary-dark) !important;
        color: white !important;
    }

.portal-auth-footer {
    margin-top: 10px;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.portal-auth-footer a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 500;
}

.portal-auth-footer a:hover {
    text-decoration: underline;
}

/* Split layout: entry form + list panel side by side */
.tab-panel-split {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.tab-panel-split__entry,
.tab-panel-split__list {
    min-width: 0;
}

.tab-panel-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 14px 14px 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    margin-bottom: 0;
}

.tab-panel-split .section-title,
.tab-panel-split .table-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #1f2937;
    margin: 0;
    grid-column: auto;
}

.tab-panel-split .section-title::before,
.tab-panel-split .table-list-title::before {
    content: '';
    flex-shrink: 0;
    width: 3px;
    height: 14px;
    background: var(--theme-primary);
    border-radius: 2px;
}

.tab-panel-split label {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 4px;
}

.tab-panel-split .form-group {
    margin-bottom: 8px;
}

.tab-panel-split input:not([type="checkbox"]):not([type="radio"]),
.tab-panel-split select.form-control {
    height: 34px;
    font-size: 13px;
    border-radius: 8px;
    border-color: #e5e7eb;
    color: #1f2937;
}

.tab-panel-split input::placeholder {
    font-size: 12px;
    color: #9ca3af;
}

.tab-panel-split .bootstrap-select.compact-select > .dropdown-toggle {
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border-color: #e5e7eb !important;
}

.tab-panel-split .bootstrap-select.compact-select .filter-option-inner-inner {
    font-size: 13px;
}

.tab-panel-split .address-section-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f7;
}

.tab-panel-split .address-actions .btn {
    min-height: 32px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    line-height: 1.2;
}

.tab-panel-split .address-actions .add-btn {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.tab-panel-split .address-actions .add-btn:hover {
    background: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
}

.tab-panel-split .address-actions .clear-btn {
    background: #fff !important;
    border-color: #d1d5db !important;
    color: #4b5563 !important;
}

.tab-panel-split .address-actions .clear-btn:hover {
    background: #f9fafb !important;
    color: #1f2937 !important;
}

.tab-panel-split__list .form-section-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.list-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f7;
}

.list-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f0ff;
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

.list-panel-scroll {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: min(520px, calc(100vh - 280px));
    overflow: auto;
    margin-top: 0;
    background: #f8f9fc;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 10px;
}

.address-entry-message {
    font-size: 12px;
    margin-top: 8px;
}

.documents-upload-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.documents-upload-card .doc-upload-zone {
    flex: 1 1 auto;
    min-height: 160px;
}

.documents-upload-card .doc-upload-actions {
    margin-top: auto;
    padding-top: 12px;
}

.documents-list-card {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .tab-panel-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tab-panel-split--documents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Card-style lists in the side panel */
    .tab-panel-split__list .responsive-stack-table thead {
        display: none;
    }

    .tab-panel-split__list .responsive-stack-table tbody tr:not(.table-empty-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
        border: 1px solid #e8ecf3;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }

    .tab-panel-split__list .responsive-stack-table tbody tr.table-empty-row {
        display: block;
    }

    .tab-panel-split__list .responsive-stack-table tbody tr.table-empty-row td {
        display: block;
        text-align: center;
        border: 1px dashed #e5e7eb;
        border-radius: 10px;
        background: #fff !important;
        padding: 28px 16px;
        color: #9ca3af;
        font-size: 13px;
        line-height: 1.45;
    }

    .tab-panel-split__list .responsive-stack-table tbody td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 3px;
        padding: 10px 12px;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        white-space: normal;
        background: #fff !important;
        font-size: 13px;
    }

    .tab-panel-split__list .responsive-stack-table tbody td:nth-child(odd):not(.stack-table-actions) {
        border-right: 1px solid #f3f4f6;
    }

    .tab-panel-split__list .responsive-stack-table tbody tr:not(.table-empty-row) td:last-child {
        border-bottom: none;
    }

    .tab-panel-split__list .responsive-stack-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 500;
        color: #9ca3af;
        flex: none;
        max-width: none;
        width: 100%;
        text-align: left;
        padding-top: 0;
        text-transform: none;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .tab-panel-split__list .responsive-stack-table tbody td > * {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        text-align: left;
        font-size: 13px;
        font-weight: 500;
        color: #1f2937;
        line-height: 1.4;
    }

    .tab-panel-split__list .responsive-stack-table tbody td.stack-table-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
        background: #fafbfc;
        border-top: 1px solid #eef0f4;
        border-right: none !important;
    }

    .tab-panel-split__list .responsive-stack-table tbody td.stack-table-actions::before {
        display: none;
    }

    .tab-panel-split__list .responsive-stack-table tbody td .form-control,
    .tab-panel-split__list .responsive-stack-table tbody td .form-control-sm {
        max-width: 100%;
        text-align: left;
        font-size: 13px;
        height: 34px;
    }

    .tab-panel-split__list .responsive-stack-table tbody td .doc-file-name {
        text-align: left;
        white-space: normal;
        word-break: break-word;
        font-weight: 500;
        color: #374151;
    }

    .tab-panel-split__list #AddressListBody td .default-address-check {
        margin-left: 0;
    }

    .tab-panel-split__list .doc-table-wrap {
        border: none;
        background: transparent;
        border-radius: 0;
        margin-top: 0;
    }

    .tab-panel-split__list .list-panel-scroll {
        border: none;
        background: #f8f9fc;
        padding: 10px;
    }
}

.alert-banner {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.45;
}

.alert-banner--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-banner--error a {
    color: var(--theme-primary);
    font-weight: 500;
}

.alert-banner--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

    .add-btn {
        border: 1px solid var(--theme-primary);
        color: var(--theme-primary) !important;
        font-size: 12px;
        padding: 4px 8px;
    }

    .add-btn:hover {
        background-color: var(--theme-primary) !important;
        border-color: var(--theme-primary) !important;
        border: 1px solid var(--theme-primary);
        color: white !important;
    }

    .clear-btn {
        border: 1px solid gray;
        color: gray !important;
        font-size: 12px;
        padding: 4px 8px;
    }
        .clear-btn:hover {
            color: white !important;
        }

.file-input {
    padding: 8px;
    background: #fafafa;
}

.bootstrap-select,
.bootstrap-select > .dropdown-toggle {
    width: 100% !important;
}

.bootstrap-select .dropdown-menu {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100%;
}

.bootstrap-select .dropdown-menu .inner {
    max-width: 100%;
}

.bootstrap-select .dropdown-menu li a span.text {
    white-space: normal;
    word-break: break-word;
}

.required-star-mark {
    color: #d93025;
    margin-left: 2px;
    font-weight: 600;
}

.address-icon-btn {
    border: 1px solid transparent;
    background: #fff;
    padding: 4px;
    line-height: 0;
    color: var(--theme-primary);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.address-icon-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

.address-icon-btn:hover {
    color: var(--theme-primary-dark);
    background: #f3f0ff;
    border-color: #e0dbff;
}

.address-icon-btn.address-icon-danger {
    color: #dc2626;
}

.address-icon-btn.address-icon-danger:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

#AddressListTable {
    margin: 0;
    table-layout: auto;
    width: 100%;
    font-size: 12px;
}

    #AddressListTable thead th {
        color: #4633B2;
        font-size: 12px;
        font-weight: 600;
        background: #f6f4ff;
        border-color: #e0dbff;
        padding: 7px 8px;
        white-space: nowrap;
        line-height: 1.3;
        vertical-align: middle;
    }

    #AddressListTable thead th.address-actions-col {
        width: 88px;
    }

#AddressListBody td {
    font-size: 12px;
    color: #1f2937;
    border-color: #e8ecf3;
    vertical-align: middle;
    padding: 7px 8px;
    background: #fff;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.table-empty-message,
#AddressListBody tr:only-child td[colspan],
#DocumentListBody tr:only-child td[colspan] {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
    padding: 14px 12px;
    text-align: center;
    background: #fff !important;
}

#AddressListBody td.default-address-cell {
    text-align: center;
}

#AddressListBody td.stack-table-actions {
    white-space: nowrap;
    text-align: right;
}

#AddressListBody tr:nth-child(odd) td {
    background: #f8f9fd;
}

.default-address-check {
    width: 15px;
    height: 15px;
    cursor: default;
    pointer-events: none;
    accent-color: var(--theme-primary);
}

#DocumentListBody td > span:not(.doc-file-name) {
    color: #9ca3af;
    font-size: 12px;
}

.registration-success-panel {
    text-align: center;
    padding: 28px 20px 12px;
    max-width: 560px;
    margin: 0 auto;
}

.registration-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #0f9d58;
    font-size: 28px;
    line-height: 52px;
    font-weight: 700;
}

.registration-success-title {
    font-size: 22px;
    margin: 0 0 8px;
    color: #1f2937;
}

.registration-success-message {
    font-size: 14px;
    color: #0f9d58;
    margin: 0 0 18px;
    font-weight: 500;
}

.registration-success-instructions {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.registration-success-instructions p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}

.registration-success-instructions p:last-child {
    margin-bottom: 0;
}

.registration-success-contact {
    text-align: left;
    background: #f6f4ff;
    border: 1px solid #e0dbff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #455472;
}

.registration-success-contact-title {
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 6px;
}

.registration-success-contact a {
    color: var(--theme-primary);
}

.registration-success-signin-btn {
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

#registrationMessageModal .modal-dialog {
    max-width: 430px;
}

#registrationMessageModal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(25, 35, 58, 0.18);
}

#registrationMessageModal .modal-header {
    border-bottom: 0;
    padding: 14px 18px 8px;
    background: linear-gradient(135deg, #f4f7ff 0%, #edf2ff 100%);
}

#registrationMessageModal .modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #2f3f67;
    display: flex;
    align-items: center;
    gap: 8px;
}

#registrationMessageModal .modal-title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6f63ff;
    box-shadow: 0 0 0 4px rgba(111, 99, 255, 0.15);
}

#registrationMessageModal .close {
    opacity: 0.75;
    color: #6b7695;
    text-shadow: none;
}

#registrationMessageModal .close:hover {
    opacity: 1;
    color: #36486f;
}

#registrationMessageModal .modal-body {
    padding: 14px 18px 8px;
    color: #455472;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

#registrationMessageModal .modal-footer {
    border-top: 0;
    padding: 10px 18px 16px;
    justify-content: flex-end;
}

#registrationMessageModal .btn-primary {
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    background: #6f63ff;
    border-color: #6f63ff;
}

#registrationMessageModal .btn-primary:hover {
    background: #5b4dff;
    border-color: #5b4dff;
}

#registrationConfirmModal .modal-dialog {
    max-width: 420px;
}

#registrationConfirmModal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(25, 35, 58, 0.18);
}

#registrationConfirmModal .modal-header {
    border-bottom: 0;
    padding: 16px 20px 8px;
    background: linear-gradient(135deg, #f4f7ff 0%, #edf2ff 100%);
}

#registrationConfirmModal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #2f3f67;
}

#registrationConfirmModal .modal-body {
    padding: 10px 20px 6px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

#registrationConfirmModal .modal-footer {
    border-top: 0;
    padding: 12px 20px 18px;
    gap: 8px;
}

#registrationConfirmModal .btn {
    width: auto;
    min-width: 88px;
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
}

#registrationConfirmModal .btn-confirm {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

#registrationConfirmModal .btn-confirm:hover {
    background: var(--theme-primary-dark);
    border-color: var(--theme-primary-dark);
    color: #fff;
}

#registrationConfirmModal .btn-cancel {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

#registrationConfirmModal .btn-cancel:hover {
    background: #f9fafb;
    color: #1f2937;
}

.doc-upload-zone {
    border: 1.5px dashed #b8b0f0;
    border-radius: 10px;
    background: #f8f7ff;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
}

.doc-upload-zone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 260px;
}

.doc-upload-zone.is-dragover {
    background: #f0edff;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-soft);
}

.doc-upload-zone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    color: var(--theme-primary);
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}

.doc-upload-zone-text {
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.doc-upload-zone-hint {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.35;
}

.doc-table-wrap {
    margin-top: 8px;
    background: #fff;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cfd7e8 #f4f6fb;
}

.doc-table-wrap::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.doc-table-wrap::-webkit-scrollbar-track {
    background: #f4f6fb;
    border-radius: 999px;
}

.doc-table-wrap::-webkit-scrollbar-thumb {
    background: #cfd7e8;
    border-radius: 999px;
}

.doc-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #dee4f0;
}

#DocumentListTable {
    margin: 0;
    table-layout: fixed;
    width: 100%;
    font-size: 12px;
}

    #DocumentListTable thead th:nth-child(2),
    #DocumentListBody td:nth-child(2) {
        max-width: 40%;
        overflow: hidden;
    }

    #DocumentListTable thead th {
        color: #4633B2;
        font-size: 12px;
        font-weight: 600;
        background: #f6f4ff;
        border-color: #e0dbff;
        padding: 7px 8px;
        line-height: 1.3;
    }

#DocumentListBody td {
    color: #1f2937;
    font-size: 12px;
    border-color: #e8ecf3;
    vertical-align: middle;
    padding: 7px 8px;
    background: #fff;
    line-height: 1.35;
}

#DocumentListBody td .form-control,
#DocumentListBody td .form-control-sm {
    font-size: 12px;
    height: 30px;
    padding: 4px 8px;
    color: #1f2937;
    border-color: #d1d5db;
}

#DocumentListBody tr:nth-child(odd) td {
    background: #f8f9fd;
}

.doc-file-name {
    display: block;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-delete-btn {
    border: 0;
    background: transparent;
    color: #ff6b81;
    padding: 2px 6px;
}

.doc-delete-btn:hover {
    color: #ff4d67;
    background: rgba(255, 107, 129, 0.1);
    border-radius: 4px;
}

.doc-upload-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.doc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: #eceaf6;
    color: #4633B2;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.doc-upload-btn:hover {
    background: #e0dbff;
    color: #3628a0;
}

.doc-upload-btn svg {
    width: 16px;
    height: 16px;
}

.registration-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.registration-shell > .container {
    margin: 8px auto 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.address-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.table-list-title {
    margin-top: 0;
    margin-bottom: 6px;
}

.address-list-title {
    margin-top: 12px;
    margin-bottom: 6px;
    color: #374151;
}

.address-list-card {
    padding-bottom: 8px;
    margin-bottom: 0;
}

.address-list-card .doc-table-wrap {
    margin-top: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow-x: visible;
}

.address-table-wrap {
    margin-top: 4px;
}

.tab-panel-split .fields-grid--address {
    gap: 8px 12px;
    margin-top: 2px;
}

.tab-panel-split .address-default-option {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f7;
}

.tab-panel-split .address-default-option__label {
    font-size: 13px;
    color: #374151;
}

.table-scroll-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Responsive stacked tables (tablet & mobile cards) */
@media (max-width: 991.98px) {
    .responsive-stack-table thead {
        display: none;
    }

    .responsive-stack-table tbody tr:not(.table-empty-row) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
        border: 1px solid #e8ecf3;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    }

    .responsive-stack-table tbody tr.table-empty-row {
        display: block;
    }

    .responsive-stack-table tbody tr.table-empty-row td {
        display: block;
        text-align: center;
        border: 1px dashed #e5e7eb;
        border-radius: 10px;
        background: #fff !important;
        padding: 24px 14px;
        color: #9ca3af;
        font-size: 13px;
    }

    .responsive-stack-table tbody td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 10px 12px;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        white-space: normal;
        background: #fff !important;
    }

    .responsive-stack-table tbody td:nth-child(odd):not(.stack-table-actions) {
        border-right: 1px solid #f3f4f6;
    }

    .responsive-stack-table tbody tr:not(.table-empty-row) td:last-child {
        border-bottom: none;
    }

    .responsive-stack-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 500;
        color: #9ca3af;
        flex: none;
        max-width: none;
        width: 100%;
        text-align: left;
        padding-top: 0;
        text-transform: none;
        letter-spacing: 0;
    }

    .responsive-stack-table tbody td > * {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        text-align: left;
        font-size: 13px;
        font-weight: 500;
        color: #1f2937;
    }

    .responsive-stack-table tbody td.stack-table-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
        background: #fafbfc;
        border-top: 1px solid #eef0f4;
        border-right: none !important;
    }

    .responsive-stack-table tbody td.stack-table-actions::before {
        display: none;
    }

    .responsive-stack-table tbody td .form-control,
    .responsive-stack-table tbody td .form-control-sm {
        max-width: 100%;
        text-align: left;
        font-size: 13px;
        height: 34px;
    }

    .responsive-stack-table tbody td .doc-file-name {
        text-align: left;
        white-space: normal;
        word-break: break-word;
    }

    #AddressListBody td .default-address-check {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .doc-table-wrap:not(.address-table-wrap):not(.list-panel-scroll) {
        overflow-x: auto;
    }

    .doc-table-wrap:not(.list-panel-scroll) #DocumentListTable {
        min-width: 640px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }

    .fields-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px 12px;
    }

    .grid-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 14px 20px 16px;
    }

    .fields-grid {
        gap: 7px 14px;
    }

    .tab-panel-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: calc(100% - 24px);
    }

    .fields-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fields-grid--address {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .registration-shell .container {
        max-width: calc(100% - 16px);
        margin: 6px auto 8px;
        padding: 10px 12px 12px;
    }

    .fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 8px;
    }

    .contact-combo-group--mobile,
    .contact-combo-group--phone,
    .contact-combo-group--nationality,
    .contact-combo-group--region,
    .grid-span-2 {
        grid-column: span 1;
    }

    .fields-grid-contact-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fields-grid--address {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registration-title {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .registration-shell .container {
        max-width: calc(100% - 12px);
        margin: 4px auto 6px;
        padding: 10px 10px 14px;
        border-radius: 10px;
    }

    .registration-top {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .registration-title {
        font-size: 16px;
        align-self: flex-start;
    }

    .registration-brand-company,
    .registration-brand-branch {
        font-size: 11px;
    }

    .registration-brand-address {
        font-size: 10px;
        -webkit-line-clamp: 3;
    }

    .fields-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .contact-combo-group--mobile,
    .contact-combo-group--phone,
    .contact-combo-group--nationality,
    .contact-combo-group--region,
    .grid-span-2 {
        grid-column: span 1;
    }

    .fields-grid-contact-row {
        grid-template-columns: 1fr;
    }

    .form-section-card {
        padding: 8px 8px 2px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 13px;
    }

    .tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -2px;
        margin-right: -2px;
        padding: 0 2px;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 8px 12px;
        font-size: 12px;
    }

    .tab-panel-card {
        padding: 12px 12px 10px;
        border-radius: 10px;
    }

    .tab-panel-split .section-title,
    .tab-panel-split .table-list-title {
        font-size: 12px;
    }

    .list-panel-scroll {
        min-height: 160px;
        padding: 8px;
    }

    .address-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .address-actions {
        width: 100%;
        justify-content: stretch;
        gap: 6px !important;
    }

    .address-actions .btn {
        flex: 1 1 0;
        min-height: 34px;
        font-size: 12px !important;
    }

    .doc-upload-zone {
        min-height: 130px;
        padding: 12px;
    }

    .doc-upload-zone-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .doc-upload-zone-icon svg {
        width: 24px;
        height: 24px;
    }

    .doc-upload-zone-text {
        font-size: 12px;
    }

    .doc-upload-zone-hint {
        font-size: 10px;
    }

    .doc-upload-btn {
        width: 100%;
        justify-content: center;
        min-height: 36px;
        font-size: 12px;
    }

    .form-actions {
        position: sticky;
        bottom: 0;
        z-index: 30;
        margin: 10px -10px 0;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 24%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid #eef0f4;
        box-shadow: 0 -6px 20px rgba(88, 67, 207, 0.08);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .form-actions .portal-auth-footer {
        text-align: center;
        order: 2;
    }

    .form-actions .submit-registration-btn {
        grid-column: auto;
        grid-row: auto;
        order: 1;
        justify-self: stretch;
        max-width: none;
        width: 100%;
        min-height: 40px;
        font-size: 14px;
    }

    #formMessage {
        order: 0;
        text-align: center;
    }

    .portal-auth-footer {
        font-size: 11px;
        padding-top: 8px;
        margin-top: 8px;
    }

    .address-icon-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 6px;
    }

    .doc-delete-btn {
        min-width: 32px;
        min-height: 32px;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select.form-control,
    .bootstrap-select.compact-select > .dropdown-toggle {
        font-size: 16px;
        min-height: 36px;
        height: 36px;
    }

    .bootstrap-select.compact-select .filter-option-inner-inner {
        font-size: 16px;
    }

    .bootstrap-select .dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        max-width: 100vw;
        transform: none !important;
    }

    .bootstrap-select .dropdown-menu .inner {
        max-height: 50vh !important;
    }

    #registrationConfirmModal .modal-dialog,
    #registrationMessageModal .modal-dialog {
        margin: 12px;
        max-width: calc(100% - 24px);
    }

    #registrationConfirmModal .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #registrationConfirmModal .modal-footer .btn {
        width: 100%;
        min-height: 40px;
    }

    .registration-success-panel {
        padding: 16px 6px 10px;
    }

    .registration-success-signin-btn {
        max-width: none;
        width: 100%;
        min-height: 40px;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .registration-shell .container {
        max-width: calc(100% - 8px);
        padding: 8px 8px 12px;
        border-radius: 8px;
    }

    .registration-title {
        font-size: 15px;
    }

    label {
        font-size: 10px;
    }

    .alert-banner {
        font-size: 11px;
        padding: 7px 10px;
        margin-bottom: 8px;
    }
}

/* Landscape phones / short viewports */
@media (max-width: 896px) and (orientation: landscape) {
    .registration-top {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .form-actions {
        position: relative;
        margin-left: 0;
        margin-right: 0;
        box-shadow: none;
        backdrop-filter: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tab-content {
        animation: none;
    }

    input,
    select.form-control,
    .btn,
    .tab {
        transition: none;
    }
}