/* Application / review / insurance wizard — load on application pages */

html[dir="rtl"] .evisa-info-nav .back-button i,
html[dir="rtl"] .evisa-info-nav .back-button svg,
html[dir="rtl"] .evisa-info-header .back-button i,
html[dir="rtl"] .evisa-info-header .back-button svg,
html[dir="rtl"] .application-nav .back-button i,
html[dir="rtl"] .application-nav .back-button svg {
    direction: ltr;
    transform: scaleX(-1);
}

html[dir="rtl"] .fee-item-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-secondary,
html[dir="rtl"] .btn-visa,
html[dir="rtl"] .btn-apply,
html[dir="rtl"] .btn-apply-now,
html[dir="rtl"] .btn-next,
html[dir="rtl"] .btn-submit,
html[dir="rtl"] .btn-cancel,
html[dir="rtl"] .btn-redirect,
html[dir="rtl"] .btn-clear-dates,
html[dir="rtl"] .btn-apply-dates,
html[dir="rtl"] .pagination-btn,
html[dir="rtl"] .pagination-number,
html[dir="rtl"] .share-button,
html[dir="rtl"] .help-button,
html[dir="rtl"] .back-button {
    font-family: 'GM', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RTL Support for Attachments */

html[dir="rtl"] .attachment-badge {
    right: auto;
    left: -4px;
}

html[dir="rtl"] .attachment-field i.fa-chevron-right,
html[dir="rtl"] .attachment-field i[data-lucide="chevron-right"],
html[dir="rtl"] .attachment-field svg.lucide-chevron-right {
    transform: scaleX(-1);
}

/* New Application Page Styles */

.application-header {
    background: linear-gradient(135deg, #4A90E2 0%, #2F3A8E 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    color: white;
    padding: 8.7rem 0 3rem;
    position: relative;
}

body.page-loading-active {
    overflow: hidden;
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(165deg, #ffffff 0%, #f1f4f8 55%, #e8eef8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    opacity: 1;
    visibility: visible;
}

.page-loading-brand {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.15rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 68, 148, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loading-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.css-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid rgba(28, 68, 148, 0.15);
    border-top-color: #1c4494;
    border-radius: 50%;
    animation: kawenter-page-spin 0.75s linear infinite;
}

@keyframes kawenter-page-spin {
    to { transform: rotate(360deg); }
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

/* Beat global html[dir="rtl"] text-align:right on loader copy / skip */
html[dir="rtl"] .page-loading-content,
html[dir="rtl"] .page-loading-content .page-loading-text,
html[dir="rtl"] .page-loading-content p,
html[dir="rtl"] .page-loading-content .skip-loading-btn,
html[dir="rtl"] .skip-loading-btn {
    text-align: center !important;
}

.page-loading-animation {
    width: 208px;
    height: 75px;
    max-width: 36vw;
    max-height: 36vw;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.page-loading-text {
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
}

.page-loading-note {
    margin: 0.75rem 0 0;
    max-width: 22rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: #6b7280;
    text-align: center;
}

html[dir="rtl"] .page-loading-note {
    font-family: 'GM', sans-serif;
}

.application-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.application-nav h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.progress-container {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
.progress-steps {
        max-width: 800px;
    }
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.progress-step.active .step-icon {
    background: #4caf50;
    color: white;
    padding: 0;
    font-size: 1rem;
}

.progress-step.active .step-label {
    color: #4caf50;
    font-weight: 600;
    text-align: center !important;

}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
}

.application-content {
    background: #f5f5f5;
    padding: 2rem 0 8rem;
    min-height: calc(100vh - 300px);
}

.application-form {
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
.application-form {
        max-width: 600px;
    }

.application-content {
        padding: 2.5rem 0 8rem;
    }
}

@media (min-width: 1280px) {
.application-form {
        max-width: 600px;
    }

.application-content {
        padding: 3rem 0 8rem;
    }
}

/* Multi-applicant accordion */

.applicants-section-header {
    align-items: center;
    gap: 0.75rem;
}

.applicants-progress {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(67, 97, 238, 0.28);
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color, #4361ee);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    direction: inherit;
}

.applicants-progress.is-complete {
    border-color: rgba(4, 162, 76, 0.3);
    background: rgba(4, 162, 76, 0.1);
    color: var(--success-color, #04a24c);
}

/* Sticky price bar — floating card with inset margins + padding */

.application-footer--price {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-top: none;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
}

.application-footer--price .container {
    padding: 0 !important;
    max-width: none;
    width: 100%;
}

.sticky-price-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* follows writing direction: left in LTR, right in RTL */
    gap: 0.15rem;
    min-width: 0;
    text-align: start;
}

.sticky-price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
    align-self: stretch;
    text-align: start;
}

.sticky-price-amount-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.sticky-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.sticky-price-amount.sticky-price-amount--discounted {
    font-size: inherit;
}

.sticky-price-amount--discounted .fee-value-now {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.sticky-price-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
}

.sticky-price-meta[hidden] {
    display: none !important;
}

.application-footer--price .btn-next {
    flex-shrink: 0;
    min-width: 132px;
    border-radius: 999px;
    padding: 0.85rem 1.55rem;
}

.contact-info-section .section-hint,
.applicants-section .section-hint {
    margin: 0px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

/* Contact card: phone + email (new application / insurance) */
.contact-info-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.contact-info-fields .form-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
}

.contact-info-fields .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #111827);
    margin: 0;
}

.contact-info-fields .contact-field-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.5rem;
}

.contact-info-fields .phone-input-wrapper {
    width: 100%;
}

/* New application only: label above bordered control */
body.new-application-page .contact-info-fields {
    gap: 1rem 1.15rem;
}

body.new-application-page .contact-info-fields .form-field {
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

body.new-application-page .contact-info-fields .form-field:focus-within,
body.new-application-page .contact-info-fields .form-field.has-value,
body.new-application-page .contact-info-fields .form-field.has-value:focus-within,
body.new-application-page .contact-info-fields .form-field.has-error {
    border: none;
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
}

body.new-application-page .contact-info-fields .form-label {
    font-size: 0.875rem;
}

body.new-application-page .contact-info-fields .contact-field-control,
body.new-application-page .contact-info-fields .field-control {
    min-height: 50px;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.new-application-page .contact-info-fields .form-field:focus-within .field-control,
body.new-application-page .contact-info-fields .form-field:focus-within .contact-field-control {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

body.new-application-page .contact-info-fields .form-field.has-error .field-control,
body.new-application-page .contact-info-fields .form-field.has-error .contact-field-control {
    border-color: #e21c3d;
    background: #fff8f8;
}

.contact-email-field {
    overflow: visible;
    position: relative;
}

/* Email keeps LTR character order; in RTL align the value to the right */
.contact-email-field .form-input:not(:placeholder-shown),
#emailAddressInput:not(:placeholder-shown) {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .contact-email-field .form-input:placeholder-shown,
html[dir="rtl"] #emailAddressInput:placeholder-shown {
    direction: rtl !important;
    text-align: right !important;
}

html[dir="rtl"] .contact-email-field .form-input:not(:placeholder-shown),
html[dir="rtl"] #emailAddressInput:not(:placeholder-shown) {
    direction: ltr !important;
    text-align: right !important;
}

.contact-info-section .form-field.is-disabled,
.contact-info-section .form-field.is-disabled:focus-within,
.contact-info-section .form-field.is-disabled.has-value,
.contact-info-section .form-field.is-disabled.has-value:focus-within {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}

body.new-application-page .contact-info-section .form-field.is-disabled,
body.new-application-page .contact-info-section .form-field.is-disabled:focus-within,
body.new-application-page .contact-info-section .form-field.is-disabled.has-value,
body.new-application-page .contact-info-section .form-field.is-disabled.has-value:focus-within {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.new-application-page .contact-info-section .form-field.is-disabled .field-control,
body.new-application-page .contact-info-section .form-field.is-disabled .contact-field-control,
body.new-application-page .contact-info-section .form-field.is-disabled:focus-within .field-control,
body.new-application-page .contact-info-section .form-field.is-disabled.has-value .field-control {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}

.contact-info-section .form-field.is-disabled .form-input,
.contact-info-section .form-field.is-disabled .form-input:read-only {
    color: #4b5563;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-info-section .form-field.is-disabled .field-icon {
    color: #9ca3af;
}

.contact-info-section .country-code-dropdown.is-locked .country-code-selected {
    cursor: not-allowed;
    pointer-events: none;
}

.contact-info-section .country-code-dropdown.is-locked .fa-chevron-down {
    opacity: 0.35;
}

@media (max-width: 640px) {
    .contact-info-fields {
        grid-template-columns: 1fr;
    }
}

.contact-email-field .field-control,
.contact-email-field .contact-field-control {
    position: relative;
}

.email-domain-suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* Decorative elevation only for floating suggestion panel (not field chrome) */
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.email-domain-suggestions[hidden] {
    display: none !important;
}

.email-domain-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dark, #111827);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    direction: ltr;
    unicode-bidi: isolate;
    cursor: pointer;
    transition: background 0.15s ease;
}

.email-domain-option:hover,
.email-domain-option.is-active {
    background: #eff3ff;
    color: var(--primary-color, #4361ee);
}

.email-domain-option .email-local {
    color: #6b7280;
    font-weight: 400;
}

/* Beat global html[dir="rtl"] button/span/li direction rules */

html[dir="rtl"] .email-domain-suggestions,
html[dir="rtl"] .email-domain-suggestions li,
html[dir="rtl"] .email-domain-option,
html[dir="rtl"] .email-domain-option span {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: isolate;
}

html[dir="rtl"] .email-domain-option {
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.edit-section-btn.is-contact-locked {
    display: none !important;
}

/* Logged-in profile already has phone + email — contact card is unused. */
.contact-info-section.is-contact-complete-hidden,
.contact-info-section[hidden] {
    display: none !important;
}

.applicants-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.applicant-mother-field {
    gap: 0.4rem;
}

.applicant-mother-field .applicant-mother {
    min-width: 0;
}

.applicant-occupation-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.applicant-occupation-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.applicant-occupation-panel[hidden] {
    display: none !important;
}

body.new-application-page .application-form .field-control .form-select,
body.new-application-page .app-sheet .field-control .form-select {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark, #111827);
    outline: none;
    padding: 0.25rem 1.5rem 0.25rem 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.1rem center;
    cursor: pointer;
}

html[dir="rtl"] body.new-application-page .application-form .field-control .form-select,
html[dir="rtl"] body.new-application-page .app-sheet .field-control .form-select {
    padding: 0.25rem 0 0.25rem 1.5rem;
    background-position: left 0.1rem center;
}

body.new-application-page .application-form .form-field--floating .floating-input-wrap .form-select,
body.new-application-page .app-sheet .form-field--floating .floating-input-wrap .form-select {
    width: 100%;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

body.new-application-page .application-form .form-field--floating.is-floating .floating-input-wrap .form-select,
body.new-application-page .application-form .form-field--floating:focus-within .floating-input-wrap .form-select,
body.new-application-page .application-form .form-field--floating.has-value .floating-input-wrap .form-select,
body.new-application-page .app-sheet .form-field--floating.is-floating .floating-input-wrap .form-select,
body.new-application-page .app-sheet .form-field--floating:focus-within .floating-input-wrap .form-select,
body.new-application-page .app-sheet .form-field--floating.has-value .floating-input-wrap .form-select {
    padding-top: 1.15rem;
    padding-bottom: 0.35rem;
}

/* Custom light select (native OS menus cannot be themed) — website + WL iframe */
.kw-select {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.kw-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background-image: none !important;
}

.kw-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.85rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-dark, #111827);
    font: inherit;
    font-size: 1rem;
    line-height: 1.2;
    text-align: start;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.kw-select__trigger:focus {
    outline: none;
}

.kw-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kw-select__value.is-placeholder {
    color: transparent;
}

.kw-select__chevron {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #6b7280;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.kw-select__chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.kw-select.is-open .kw-select__chevron {
    transform: rotate(180deg);
}

/* Keep field focus chrome while the menu (ported to body) holds focus */
body.new-application-page .application-form .form-field:has(.kw-select.is-open) > .field-control,
body.new-application-page .app-sheet .form-field:has(.kw-select.is-open) > .field-control {
    border-color: var(--wl-accent, var(--primary-color, #4361ee));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wl-accent, var(--primary-color, #4361ee)) 12%, transparent);
}

body.new-application-page .application-form .form-field:has(.kw-select.is-open) .floating-label,
body.new-application-page .app-sheet .form-field:has(.kw-select.is-open) .floating-label {
    top: 0.15rem;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wl-accent, var(--primary-color, #4361ee));
}

body.new-application-page .application-form .form-field--floating.is-floating .kw-select__trigger,
body.new-application-page .application-form .form-field--floating:focus-within .kw-select__trigger,
body.new-application-page .application-form .form-field--floating.has-value .kw-select__trigger,
body.new-application-page .app-sheet .form-field--floating.is-floating .kw-select__trigger,
body.new-application-page .app-sheet .form-field--floating:focus-within .kw-select__trigger,
body.new-application-page .app-sheet .form-field--floating.has-value .kw-select__trigger {
    padding-top: 1.15rem;
    padding-bottom: 0.35rem;
}

.kw-select__menu {
    position: fixed;
    z-index: 100100;
    box-sizing: border-box;
    padding: 0.35rem;
    margin: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    outline: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transform-origin: top center;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.kw-select__menu.is-flip-up {
    transform-origin: bottom center;
    transform: translateY(0.25rem);
}

.kw-select__menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.kw-select__menu[hidden] {
    display: none !important;
}

.kw-select__option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
    box-shadow: none;
}

.kw-select__option:hover,
.kw-select__option:focus-visible {
    outline: none;
    background: color-mix(in srgb, var(--wl-accent, var(--primary-color, #4361ee)) 10%, #fff);
    color: var(--wl-accent, var(--primary-color, #4361ee));
}

.kw-select__option.is-selected {
    background: color-mix(in srgb, var(--wl-accent, var(--primary-color, #4361ee)) 12%, #fff);
    color: var(--wl-accent, var(--primary-color, #4361ee));
    font-weight: 600;
}

.kw-select__option.is-disabled,
.kw-select__option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.kw-select__option-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kw-select__check {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--wl-accent, var(--primary-color, #4361ee));
    opacity: 0;
}

.kw-select__option.is-selected .kw-select__check {
    opacity: 1;
}

.kw-select__check svg {
    display: block;
    width: 100%;
    height: 100%;
}

html[dir="rtl"] .kw-select__trigger,
html[dir="rtl"] .kw-select__option {
    text-align: right;
}

@media (prefers-reduced-motion: reduce) {
    .kw-select__menu,
    .kw-select__chevron {
        transition-duration: 0.01ms !important;
    }
}

/* Floating labels — rest inside control, rise on focus / value */
body.new-application-page .application-form .form-field--floating > .form-label {
    display: none;
}

body.new-application-page .application-form .form-field--floating .floating-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

body.new-application-page .application-form .form-field--floating .floating-input-wrap .form-input {
    width: 100%;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

body.new-application-page .application-form .form-field--floating .floating-label {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    transition:
        top 0.2s ease,
        transform 0.2s ease,
        font-size 0.2s ease,
        color 0.2s ease,
        font-weight 0.2s ease,
        opacity 0.2s ease;
}

body.new-application-page .application-form .form-field--floating.is-floating .floating-label,
body.new-application-page .application-form .form-field--floating:focus-within .floating-label,
body.new-application-page .application-form .form-field--floating.has-value .floating-label,
body.new-application-page .application-form .form-field--floating .floating-input-wrap .form-input:not(select):not(:placeholder-shown) ~ .floating-label {
    top: 0.15rem;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
}

body.new-application-page .application-form .form-field--floating:focus-within .floating-label {
    color: var(--primary-color, #4361ee);
}

body.new-application-page .application-form .form-field--floating.is-floating .floating-input-wrap .form-input,
body.new-application-page .application-form .form-field--floating:focus-within .floating-input-wrap .form-input,
body.new-application-page .application-form .form-field--floating.has-value .floating-input-wrap .form-input,
body.new-application-page .application-form .form-field--floating .floating-input-wrap .form-input:not(select):not(:placeholder-shown) {
    padding-top: 1.15rem;
    padding-bottom: 0.35rem;
}

body.new-application-page .application-form .form-field--floating.has-error .floating-label {
    color: #b91c1c;
}

/* Phone: floating label sits over the number field beside country code */
body.new-application-page .application-form .contact-phone-field.form-field--floating .country-code-dropdown {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}

body.new-application-page .application-form .contact-phone-field.form-field--floating .floating-input-wrap {
    border-inline-start: 1px solid #e5e7eb;
    padding-inline-start: 0.75rem;
    min-height: 44px;
}

/* Absolute label ignores wrap padding — small gap past the divider */
body.new-application-page .application-form .contact-phone-field.form-field--floating .floating-label {
    inset-inline-start: 0.75rem;
}

/* Date range: match other floating inputs until dates are chosen */
body.new-application-page .application-form .date-range-field.form-field--floating .date-range-floating-wrap {
    min-height: 44px;
}

/* Empty state: hide dual entry/return so it does not inflate the control height */
body.new-application-page .application-form .date-range-field.form-field--floating:not(.has-value) .date-range-display {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

body.new-application-page .application-form .date-range-field.form-field--floating .date-range-content {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Keep entry/return on one row (override global mobile column stack) */
body.new-application-page .application-form .date-range-field .date-range-display {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

body.new-application-page .application-form .date-range-field .date-item {
    width: auto;
    flex: 1;
    min-width: 0;
    gap: 0.1rem;
}

body.new-application-page .application-form .date-range-field .date-separator-line {
    width: 1px;
    height: 1.75rem;
    margin: 0;
    align-self: center;
}

body.new-application-page .application-form .date-range-field.has-value .date-label {
    font-size: 0.7rem;
    line-height: 1.2;
}

body.new-application-page .application-form .date-range-field.has-value .date-display {
    font-size: 0.9rem;
    min-height: 0;
    line-height: 1.25;
}

/* After dates are chosen, drop the outer floating title — entry/return labels are enough */
body.new-application-page .application-form .date-range-field.form-field--floating.has-value .floating-label {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(0.96);
}

html[dir="rtl"] body.new-application-page .application-form .form-field--floating .floating-label {
    text-align: right;
}

html[dir="rtl"] body.new-application-page .application-form .contact-phone-field.form-field--floating .floating-input-wrap {
    border-inline-start: 1px solid #e5e7eb;
}

/* Sits inside the mother-name field-control (end side) */
.btn-same-mother {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 46%;
    min-height: 2rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(67, 97, 238, 0.28);
    border-radius: 8px;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary-color, #4361ee);
    font-family: 'GM', 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-shadow: none;
}

.btn-same-mother:hover {
    background: rgba(67, 97, 238, 0.14);
    border-color: rgba(67, 97, 238, 0.45);
}

.btn-same-mother:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.16);
}

.btn-same-mother i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.btn-same-mother span {
    font-family: 'GM', 'Inter', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-same-mother[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
.btn-same-mother {
        font-size: 0.65rem;
        padding: 0.25rem 0.45rem;
        max-width: 48%;
    }
}

.applicant-card {
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.applicant-card.is-complete {
    border-color: #93c5fd;
}

.applicant-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    background: #fff;
    border: 0;
    cursor: pointer;
    text-align: start;
    color: inherit;
    font: inherit;
}

.applicant-card-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.applicant-card-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.applicant-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    text-align: start;
}

.applicant-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    border: 1.5px solid rgba(67, 97, 238, 0.35);
    color: var(--primary-color, #4361ee);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.applicant-card.is-complete .applicant-card-number {
    background: rgba(4, 162, 76, 0.1);
    border-color: rgba(4, 162, 76, 0.35);
    color: var(--success-color, #04a24c);
}

.applicant-card-title {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: start;
}

/* Solid green success badge — matches completed-applicant reference */

.applicant-card-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    box-shadow: none;
    border: 0;
}

.applicant-card-check i {
    font-size: 0.7rem;
    color: #fff !important;
    line-height: 1;
}

.applicant-card-check[hidden] {
    display: none !important;
}

.applicant-card-subtitle {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.3;
    text-align: start;
}

.applicant-card-subtitle[hidden] {
    display: none !important;
}

.applicant-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.12);
    color: #d97706;
    flex-shrink: 0;
    line-height: 1;
}

.applicant-card-status i {
    font-size: 0.95rem;
    line-height: 1;
}

.applicant-card-status[data-status="complete"],
.applicant-card-status[hidden] {
    display: none !important;
}

.applicant-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.applicant-remove-btn {
    color: #ef4444;
    padding: 0.3rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font: inherit;
}

.applicant-remove-btn[hidden] {
    display: none !important;
}

.applicant-card-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    overflow: visible;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.applicant-card-chevron i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 0.72rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.applicant-card-chevron i::before {
    display: block;
    line-height: 1;
}

.applicant-card.is-open .applicant-card-chevron {
    transform: rotate(180deg);
}

.applicant-card--summary .applicant-card-chevron {
    transform: none;
}

html[dir="rtl"] .applicant-card--summary .applicant-card-chevron {
    transform: scaleX(-1);
}

.applicants-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 0.15rem 0.35rem;
    color: #6b7280;
}

.applicants-empty[hidden] {
    display: none !important;
}

.applicants-empty p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.applicants-empty__hint {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
}

/* Traveler add/edit side sheet (no decorative shadows) */
.app-sheet[hidden] {
    display: none !important;
}

.app-sheet {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: block;
}

.app-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.app-sheet.is-open .app-sheet__backdrop {
    opacity: 1;
}

.app-sheet__panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(26rem, 100%);
    background: #fff;
    color: #111827;
    border-inline-start: 1px solid #e5e7eb;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

html[dir="rtl"] .app-sheet__panel {
    transform: translateX(-100%);
}

.app-sheet.is-open .app-sheet__panel {
    transform: translateX(0);
}

.app-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    padding-top: calc(0.95rem + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #eef2f6;
    background: #f8fafc;
    flex-shrink: 0;
}

.app-sheet__head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.app-sheet__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-sheet__desc {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.app-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.app-sheet__close:hover {
    background: #f3f4f6;
    color: #111827;
}

.app-sheet__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.app-sheet__body .form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.app-sheet__foot {
    flex-shrink: 0;
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.app-sheet__foot .btn-primary {
    width: 100%;
}

/* Mobile: full-viewport traveler sheet (not a narrow side drawer) */
@media (max-width: 767.98px) {
    .app-sheet__panel {
        width: 100%;
        max-width: none;
        inset: 0;
        border-inline-start: none;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-sheet__backdrop,
    .app-sheet__panel {
        transition: none;
    }
}

body.app-sheet-open {
    overflow: hidden;
}

/*
 * Traveler sheet sits outside .application-form, so the page floating-field
 * styles never applied and global horizontal .form-field cards leaked in.
 * Mirror the application-form field system here.
 */
body.new-application-page .app-sheet .form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

body.new-application-page .app-sheet .form-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    min-height: 0;
}

body.new-application-page .app-sheet .form-field:focus-within,
body.new-application-page .app-sheet .form-field.has-value,
body.new-application-page .app-sheet .form-field.has-value:focus-within {
    border: none;
    box-shadow: none;
    background: transparent;
}

body.new-application-page .app-sheet .form-field.has-error {
    border: none;
    background: transparent;
    margin-bottom: 0;
    gap: 0.45rem;
    overflow: visible;
}

/* Sheet errors must sit in normal flow — global .error-message is absolute + line-height:0 */
body.new-application-page .app-sheet .error-message {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 600;
    color: #b91c1c;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.new-application-page .app-sheet .error-message::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-inline-end: 0.4rem;
    border-radius: 50%;
    background: #b91c1c;
    vertical-align: 0.1em;
}

html[dir="rtl"] body.new-application-page .app-sheet .error-message {
    text-align: right;
}

body.new-application-page .app-sheet .upload-field-block .error-message {
    margin-top: 0.25rem;
}

body.new-application-page .app-sheet .field-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 50px;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

/* Text fields: icon + label/input on one row, description below inside the card */
body.new-application-page .app-sheet .field-control.field-control--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-height: 0;
    padding: 0.75rem 1rem;
}

body.new-application-page .app-sheet .field-control__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

body.new-application-page .app-sheet .form-field:focus-within > .field-control {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

body.new-application-page .app-sheet .form-field.has-error > .field-control {
    border-color: #e21c3d;
    background: #fff8f8;
}

body.new-application-page .app-sheet .form-field.has-error .field-icon {
    color: #b91c1c;
}

body.new-application-page .app-sheet .field-control .field-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

body.new-application-page .app-sheet .field-control .field-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

body.new-application-page .app-sheet .form-field--floating .floating-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

body.new-application-page .app-sheet .form-field--floating .floating-input-wrap .form-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark, #111827);
    outline: none;
    box-shadow: none;
    padding: 0.85rem 0;
}

body.new-application-page .app-sheet .required-mark {
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.9em;
}

body.new-application-page .app-sheet .form-field--floating .floating-label {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    transition:
        top 0.2s ease,
        transform 0.2s ease,
        font-size 0.2s ease,
        color 0.2s ease,
        font-weight 0.2s ease;
}

body.new-application-page .app-sheet .form-field--floating.is-floating .floating-label,
body.new-application-page .app-sheet .form-field--floating:focus-within .floating-label,
body.new-application-page .app-sheet .form-field--floating.has-value .floating-label,
body.new-application-page .app-sheet .form-field--floating .floating-input-wrap .form-input:not(select):not(:placeholder-shown) ~ .floating-label {
    top: 0.15rem;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
}

body.new-application-page .app-sheet .form-field--floating:focus-within .floating-label {
    color: var(--primary-color, #4361ee);
}

body.new-application-page .app-sheet .form-field--floating.is-floating .floating-input-wrap .form-input,
body.new-application-page .app-sheet .form-field--floating:focus-within .floating-input-wrap .form-input,
body.new-application-page .app-sheet .form-field--floating.has-value .floating-input-wrap .form-input,
body.new-application-page .app-sheet .form-field--floating .floating-input-wrap .form-input:not(select):not(:placeholder-shown) {
    padding-top: 1.15rem;
    padding-bottom: 0.35rem;
}

body.new-application-page .app-sheet .form-field--floating.has-error .floating-label {
    color: #b91c1c;
}

html[dir="rtl"] body.new-application-page .app-sheet .form-field--floating .floating-label {
    text-align: right;
}

body.new-application-page .app-sheet .field-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Description lives inside the bordered input card, under the label/value row */
body.new-application-page .app-sheet .field-hint.field-hint--inside {
    display: block;
    margin: 0;
    padding: 0;
    padding-inline-start: calc(1.25rem + 0.75rem);
    font-size: 0.78rem;
    line-height: 1.4;
    color: #6b7280;
    text-align: start;
}

body.new-application-page .app-sheet .form-field.has-error .field-hint.field-hint--inside {
    display: none;
}

body.new-application-page .app-sheet .field-hint.field-hint--on-focus {
    display: none;
}

body.new-application-page .app-sheet .form-field:focus-within > .field-hint.field-hint--on-focus {
    display: block;
}

body.new-application-page .app-sheet .field-hint.field-hint--hidden,
body.new-application-page .app-sheet .field-hint.field-hint--hidden[hidden] {
    display: none !important;
}

body.new-application-page .app-sheet .btn-same-mother {
    max-width: none;
    align-self: stretch;
    margin-inline-start: calc(1.25rem + 0.75rem);
}

@media (max-width: 640px) {
    body.new-application-page .app-sheet .btn-same-mother {
        flex: 1 1 auto;
        width: auto;
        margin-inline-start: calc(1.25rem + 0.75rem);
        justify-content: center;
        max-width: none;
        white-space: normal;
    }
}

body.new-application-page .app-sheet .upload-field-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.new-application-page .app-sheet .attachment-field {
    margin: 0;
}

/* Additional-docs note (shown when eVisa more_doc / need_document is enabled) */
.applicant-more-docs-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.applicant-more-docs-note[hidden] {
    display: none !important;
}

.applicant-more-docs-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #ece8ff;
    color: #6b5ce0;
}

.applicant-more-docs-note__icon i,
.applicant-more-docs-note__icon svg {
    width: 1rem;
    height: 1rem;
}

.applicant-more-docs-note__body {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.applicant-more-docs-note__body strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.applicant-more-docs-note__body p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #4b5563;
}

html[dir="rtl"] .applicant-card-title-row {
    flex-direction: row;
}

.applicant-card-body {
    display: none;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #eef2f6;
}

.applicant-card.is-open .applicant-card-body {
    display: block;
}

.review-applicants-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-applicant-card {
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1rem 1.05rem 1.05rem;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.review-applicant-card:hover {
    box-shadow: none;
}

.review-applicant-card--complete {
    border-color: #bbf7d0;
    background: linear-gradient(165deg, #f0fdf4 0%, #fff 38%);
}

.review-applicant-card--pending {
    border-color: #fcd34d;
    background: linear-gradient(165deg, #fffbeb 0%, #fff 42%);
}

.review-applicant-card-header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: start;
    color: inherit;
    font: inherit;
}

.review-applicant-card-trailing {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.review-applicant-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    flex-shrink: 0;
    line-height: 0;
    overflow: visible;
    transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.review-applicant-chevron i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 0.72rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.review-applicant-chevron i::before {
    display: block;
    line-height: 1;
}

.review-applicant-card.is-open .review-applicant-chevron {
    transform: rotate(180deg);
    background: #eef4ff;
    color: var(--primary-color, #4361ee);
}

.review-applicant-card-body {
    display: none;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f6;
}

.review-applicant-card.is-open .review-applicant-card-body {
    display: block;
}

.review-applicant-card-body .review-applicant-fix {
    margin-bottom: 0.75rem;
}

.review-applicant-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    flex: 1;
}

.review-applicant-card-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.review-applicant-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.review-applicant-card-title--pending {
    color: #b45309;
}

/* Index subtitle under the traveler name */
.review-applicant-name {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #94a3b8;
    margin-inline-start: calc(22px + 0.5rem); /* align under name, past status icon */
}

.review-applicant-name--pending {
    color: #b45309;
}

.review-applicant-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    flex-shrink: 0;
    line-height: 1.2;
}

.review-applicant-badge--ok {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.review-applicant-fix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.review-applicant-fix:hover {
    background: #ffedd5;
    border-color: #fb923c;
}

.review-doc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.review-doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.2;
    border: 1px solid transparent;
}

.review-doc-chip i {
    font-size: 0.65rem;
}

.review-doc-chip a {
    color: inherit;
    text-decoration: none;
}

.review-doc-chip a:hover {
    text-decoration: underline;
}

.review-doc-chip--ok {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.review-doc-chip--pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.applicants-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin: 0 0 0.95rem;
}

.applicants-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transition: width 0.35s ease, background 0.25s ease;
}

.applicants-progress-fill.is-complete {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.applicant-card-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}

.applicant-card-pending i {
    font-size: 0.65rem;
    color: #fff !important;
    line-height: 1;
}

.review-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.25;
}

.review-status-pill a {
    color: inherit;
    text-decoration: none;
}

.review-status-pill a:hover {
    text-decoration: underline;
}

.review-status-pill--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.review-status-pill--pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.review-view-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--primary-color, #4361ee);
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.review-view-upload i {
    font-size: 0.95rem;
    line-height: 1;
}

.review-view-upload:hover {
    background: #dbeafe;
    color: var(--primary-dark, #1c4494);
    border-color: #bfdbfe;
}

.review-view-upload--static {
    cursor: default;
    opacity: 0.75;
}

.review-fields--rows .review-value .review-view-upload {
    margin-inline-start: 0;
}

html[dir="rtl"] .applicant-card-header,
html[dir="rtl"] .review-applicant-card-header {
    text-align: right;
}

html[dir="rtl"] .review-applicant-card-title-row {
    flex-direction: row;
}

html[dir="rtl"] .sticky-price-total {
    align-items: flex-start; /* cross-start is right in RTL columns */
    text-align: right;
}

html[dir="rtl"] .sticky-price-label {
    text-align: right;
    margin-inline-end: 0;
}

html[dir="rtl"] .sticky-price-amount-row {
    align-self: flex-start;
}

html[dir="rtl"] .contact-info-fields .form-label,
html[dir="rtl"] .contact-info-section .section-hint,
html[dir="rtl"] .applicants-section .section-hint {
    text-align: right;
}

html[dir="rtl"] .applicant-card-title-row {
    flex-direction: row;
}

/* Review Section Styles */

.review-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0 0 19px;
}

.review-section .section-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.review-section .section-divider {
    display: none;
}

.review-section-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex: 1;
}

.review-section-heading > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.review-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef4ff 0%, #e0eaff 100%);
    color: var(--primary-color, #4361ee);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(67, 97, 238, 0.08);
}

.review-section-icon--fees {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.1);
}

.edit-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.edit-section-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--primary-dark, #1c4494);
}

.edit-section-btn i {
    font-size: 0.72rem;
}

.review-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-field:first-child {
    padding-top: 0;
}

.review-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-fields--rows .review-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.8rem 0;
    min-height: 3.1rem;
}

.review-fields--rows .review-field:first-child {
    padding-top: 0.15rem;
}

.review-fields--rows .review-label {
    flex: 1 1 auto;
    min-width: 0;
}

.review-fields--rows .review-value,
.review-fields--rows .review-value-stack {
    flex: 0 1 auto;
    max-width: 58%;
    padding-inline-start: 0;
    padding-inline-end: 0;
    margin-inline-start: auto;
    text-align: end;
}

.review-fields--rows .review-value-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.review-fields--rows .review-value-description {
    padding-inline-start: 0;
    padding-inline-end: 0;
    text-align: end;
    margin-top: 0;
}

/* Arabic: values stay on the inline-end side; text reads from the right */

html[dir="rtl"] .review-fields--rows .review-value,
html[dir="rtl"] .review-fields--rows .review-value-stack,
html[dir="rtl"] .review-fields--rows .review-value-description {
    padding-left: 0;
    padding-right: 0;
    text-align: right;
}

/* Phone / email must stay LTR so +code is the first (leftmost) character */

html[dir="rtl"] .review-fields--rows .review-value[dir="ltr"],
.review-fields--rows .review-value[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

html[dir="rtl"] .review-fields--rows .review-value-stack {
    align-items: flex-start;
    width: 100%;
}

/* Duration block: always stacked under the label (long Arabic copy) */

.review-fields--stack .review-field--duration {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.15rem 0 0;
    border-bottom: none;
    min-height: 0;
}

.review-fields--stack .review-field--duration .review-value-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: stretch;
    text-align: start;
}

.review-fields--stack .review-field--duration .review-value,
.review-fields--stack .review-field--duration .review-value-description {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: start;
}

html[dir="rtl"] .review-fields--stack .review-field--duration .review-value-stack,
html[dir="rtl"] .review-fields--stack .review-field--duration .review-value,
html[dir="rtl"] .review-fields--stack .review-field--duration .review-value-description {
    text-align: right;
}

body.review-application-page .total-fee-section .fees-header .review-section-heading {
    align-items: center;
}

.review-fields--applicant .review-field {
    padding: 0.65rem 0;
}

.review-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 550;
}

/* Match تأمين رفض التأشيرة card icon treatment (Lucide replaces <i> with <svg>) */

.review-label > i,
.review-label > svg {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.review-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 650;
    padding-inline-start: calc(34px + 0.7rem);
    word-break: break-word;
    line-height: 1.35;
}

html[dir="rtl"] .review-value {
    padding-left: 0;
    padding-right: calc(34px + 0.7rem);
}

.review-value-description {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0;
    padding-inline-start: calc(34px + 0.7rem);
    font-weight: 500;
}

html[dir="rtl"] .review-value-description {
    padding-left: 0;
    padding-right: calc(34px + 0.7rem);
}

.review-value-description:empty {
    display: none;
}

body.review-application-page .review-fields--insurance-fees .review-label > i,
body.review-application-page .review-fields--insurance-fees .review-label > svg,
body.review-application-page .review-fields--insurance-details .review-label > i,
body.review-application-page .review-fields--insurance-details .review-label > svg,
body.review-application-page .review-fields--insurance-applicant .review-label > i,
body.review-application-page .review-fields--insurance-applicant .review-label > svg {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    stroke: currentColor;
    display: block;
}

.insurance-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.insurance-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.insurance-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #9ca3af;
    transition: background 0.25s ease;
    border-radius: 999px;
}

.insurance-switch-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: transform 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.insurance-switch input:checked + .insurance-switch-slider {
    background: #22c55e;
}

.insurance-switch input:checked + .insurance-switch-slider::before {
    transform: translateX(22px);
}

html[dir="rtl"] .insurance-switch-slider::before {
    left: auto;
    right: 3px;
}

html[dir="rtl"] .insurance-switch input:checked + .insurance-switch-slider::before {
    transform: translateX(-22px);
}

.insurance-metric {
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.insurance-section:not(.is-on) .insurance-metric {
    border-color: #e5e7eb;
    opacity: 0.72;
}

.insurance-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.3;
}

.insurance-metric-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.insurance-metric--refund .insurance-metric-value {
    color: #047857;
}

@media (max-width: 640px) {
.insurance-metric {
        padding: 0.55rem 0.6rem;
    }

.insurance-metric-value {
        font-size: 0.98rem;
    }
}

/* Review page: modern summary layout + floating sticky bar */

body.review-application-page {
    background: #f3f6fb;
}

body.review-application-page .application-content {
    padding: 1.15rem 0 7.75rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(67, 97, 238, 0.08), transparent 55%),
        #f3f6fb;
}

body.review-application-page .progress-container {
    padding-bottom: 27px;
}

/* Inline loader — visible until review fields are populated */
.review-content {
    position: relative;
    min-height: 12rem;
}

.review-inline-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 14rem;
    padding: 2rem 1rem;
    text-align: center;
}

.review-content.is-loading .review-inline-loader {
    display: flex;
}

.review-content.is-loading .review-content-body {
    visibility: hidden;
    position: absolute;
    inset: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.review-inline-loader__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(67, 97, 238, 0.15);
    border-top-color: var(--primary-color, #4361ee);
    border-radius: 50%;
    animation: kawenter-review-spin 0.75s linear infinite;
    box-shadow: none;
}

@keyframes kawenter-review-spin {
    to { transform: rotate(360deg); }
}

.review-inline-loader__text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
}

.application-footer.is-review-loading,
.application-footer[hidden] {
    display: none !important;
}

.review-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 0.95rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 55%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 1px 2px rgba(67, 97, 238, 0.04);
}

.review-intro-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    color: var(--primary-color, #4361ee);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.12);
}

.review-intro-copy {
    min-width: 0;
}

.review-intro-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.review-intro-text {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

body.review-application-page .total-fee-section .fees-card-modern {
    border-radius: 18px;
    border-color: #e8edf4;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
    padding: 1.2rem 1.2rem 1.25rem;
}

body.review-application-page .total-fee-section .fees-header {
    margin-bottom: 0.85rem;
    text-align: start;
}

body.review-application-page .total-fee-section .fees-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

body.review-application-page .total-fee-section .fees-subtitle {
    margin: 0.2rem 0 0;
}

body.review-application-page .fees-total {
    background: #f8fafc;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-top: 0.35rem;
}

body.review-application-page #reviewPriceSummary .btn-next {
    box-shadow: none;
}

body.review-application-page #reviewPriceSummary .btn-next i,
body.review-application-page #reviewPriceSummary .btn-next svg {
    font-size: 0.8rem;
}

html[dir="rtl"] body.review-application-page #reviewPriceSummary .btn-next i,
html[dir="rtl"] body.review-application-page #reviewPriceSummary .btn-next svg {
    transform: scaleX(-1);
}

@media (min-width: 1024px) {
body.review-application-page .application-content {
        padding: 1.75rem 0 8rem;
    }

body.review-application-page .total-fee-section .fees-card-modern {
        padding: 1.35rem 1.4rem 1.4rem;
    }
}

@media (max-width: 640px) {
body.review-application-page .application-content {
        padding: 0.75rem 0 7.35rem;
    }

.review-intro {
        padding: 0.9rem 0.95rem;
        margin-bottom: 0.8rem;
        border-radius: 14px;
    }

.review-intro-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1rem;
    }

.review-section-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

body.review-application-page #reviewPriceSummary .btn-next {
        min-width: 0;
        padding: 0.8rem 1.1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

body.review-application-page .review-section .section-header {
        padding-bottom: 0.7rem;
    }

body.review-application-page .edit-section-btn:not(.review-applicant-fix) span {
        display: none;
    }

body.review-application-page .edit-section-btn:not(.review-applicant-fix) {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

.review-fields--rows .review-value,
    .review-fields--rows .review-value-stack {
        max-width: 52%;
        font-size: 0.9rem;
    }

.review-fields--rows .review-label span {
        font-size: 0.78rem;
    }
}

/* Insurance details summary: label + value one row; destination flag beside country name */

.review-fields--insurance-details.review-fields {
    gap: 0;
}

.review-fields--insurance-details .review-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 0;
    min-height: 2.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.review-fields--insurance-details .review-field:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.review-fields--insurance-details .review-label {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.35;
}

.review-fields--insurance-details .review-label span {
    min-width: 0;
    flex: 1 1 auto;
}

.review-fields--insurance-details .review-value {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-inline-start: auto;
    text-align: end;
    font-weight: 600;
}

html[dir="rtl"] .review-fields--insurance-details .review-value {
    padding-left: 0;
    padding-right: 0;
    text-align: end;
}

.review-fields--insurance-details .review-value--with-flag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-fields--insurance-details .insurance-dest-flag {
    width: 28px;
    height: 21px;
    object-fit: fill;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

/* new-insurance + review-insurance — fees: simple rows + total highlight (no dotted leaders) */

.review-fields--insurance-fees.review-fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.1rem 0 0;
    width: 100%;
}

.review-fields--insurance-fees .review-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.75rem 1rem;
    flex-wrap: nowrap;
    /* Shared inset so Total highlight + fee lines keep the same icon/amount column */
    padding: 0.7rem 0.85rem;
    min-height: 0;
    border-bottom: none;
}

/* One light divider between the two fee lines only */

.review-fields--insurance-fees .review-field:not(.review-field--insurance-total)+.review-field:not(.review-field--insurance-total) {
    border-top: 1px solid #eef1f5;
    margin-top: 0;
    padding-top: 0.75rem;
}

.review-fields--insurance-fees .review-field:last-child {
    border-bottom: none;
}

.review-fields--insurance-fees .review-label {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.4;
    font-size: 0.875rem;
}

.review-fields--insurance-fees .review-label > i,
.review-fields--insurance-fees .review-label > svg {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
}

.review-fields--insurance-fees .review-label span {
    min-width: 0;
    flex: 1 1 auto;
    color: #475569;
    overflow-wrap: anywhere;
}

.review-fields--insurance-fees .review-value {
    flex: 0 0 auto;
    padding-left: 0;
    padding-right: 0;
    margin-inline-start: 0;
    text-align: end;
    font-weight: 700;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #0f172a;
}

html[dir="rtl"] .review-fields--insurance-fees .review-value {
    padding-left: 0;
    padding-right: 0;
    text-align: end;
}

/* Full-width bar; same inner padding as fee rows so icon/amount columns match */
.review-fields--insurance-fees .review-field--insurance-total {
    align-self: stretch;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.65rem 0 0;
    margin-inline: 0;
    padding: 0.7rem 0.85rem;
    border: none;
    border-radius: 12px;
    background: #eef2ff;
    box-shadow: none;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
}

.review-fields--insurance-fees .review-field--insurance-total .review-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: inherit;
}

.review-fields--insurance-fees .review-field--insurance-total .review-label span {
    color: #0f172a;
}

.review-fields--insurance-fees .review-field--insurance-total .review-label > i,
.review-fields--insurance-fees .review-field--insurance-total .review-label > svg {
    /* Same chip as Insurance Fee / rejection rows */
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
    color: #2563eb;
    background: #eff6ff;
    border: none;
    box-shadow: none;
}

.review-fields--insurance-fees .review-field--insurance-total .review-value,
.review-fields--insurance-fees .review-field--insurance-total .review-value-stack {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.review-fields--insurance-fees .review-value-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 0;
    text-align: end;
}

.review-value-usd-note {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.review-value-usd-note__label::after {
    content: ':';
}

.review-value-usd-note__amount {
    font-weight: 700;
    color: #475569;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.review-value-usd-note[hidden] {
    display: none !important;
}

/* review-insurance — applicant details: label + value on one row */

.review-fields--insurance-applicant.review-fields {
    gap: 0;
}

.review-fields--insurance-applicant .review-field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 0;
    min-height: 2.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.review-fields--insurance-applicant .review-field:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.review-fields--insurance-applicant .review-label {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.35;
}

.review-fields--insurance-applicant .review-label span {
    min-width: 0;
    flex: 1 1 auto;
}

.review-fields--insurance-applicant .review-value {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-inline-start: auto;
    text-align: end;
    font-weight: 600;
    word-break: break-word;
}

html[dir="rtl"] .review-fields--insurance-applicant .review-value {
    padding-left: 0;
    padding-right: 0;
    text-align: end;
}

.review-fields--insurance-applicant .review-file-field {
    padding-bottom: 0;
}

.review-fields--insurance-applicant .review-file-value {
    margin-top: 0;
}

.progress-step.completed .step-icon {
    background: #4caf50;
    color: white;
}

.progress-line.completed {
    background: #4caf50;
}

/* Review File Preview Styles */

.review-file-field {
    padding-bottom: 1.5rem;
}

.review-file-value {
    padding-left: 2.14px 9px 0px 0px;
    margin-top: 0.5rem;
}

.review-file-preview {
    width: 100%;
}

.review-file-preview .preview-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.review-file-preview .preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.review-file-preview .preview-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.review-file-preview .preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.review-file-preview .preview-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-file-preview .preview-size {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-file-preview .preview-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.review-file-preview .preview-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-file-preview .preview-view {
    background: var(--primary-color);
    color: white;
}

.review-file-preview .preview-view:hover {
    background: var(--primary-dark);
}

/* Skip Loading Button */

.skip-loading-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: 'GM', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    z-index: 10000;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    text-align: center;
}

.skip-loading-btn.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.skip-loading-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Applied Promo Code Display */

.applied-promo-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    gap: 1rem;
}

.applied-promo-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    font-family: 'GM';
}

.applied-promo-info i {
    color: #16a34a;
    font-size: 1.25rem;
}

.applied-promo-text {
    color: #166534;
    font-size: 0.95rem;
}

.applied-promo-text strong {
    color: #15803d;
    font-weight: 600;
    margin-left: 0.5rem;
}

html[dir="rtl"] .applied-promo-code {
    flex-direction: row;
}

html[dir="rtl"] .applied-promo-info {
    order: 2;
}

html[dir="rtl"] .applied-promo-text strong {
    margin-left: 0;
    margin-right: 0.5rem;
}

.application-header.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.application-header.success .nav-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem -1.5rem 1.25rem -1.5rem;
    width: calc(100% + 3rem);
}

/* Date-picker Clear/Apply: canonical styles live in styles.css (shared with homepage) */
html[dir="rtl"] .btn-clear-dates,
html[dir="rtl"] .btn-apply-dates {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    direction: rtl;
}

.attachment-field {
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attachment-field:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.attachment-field:hover .attachment-badge {
    transform: scale(1.1);
}

.attachment-field .file-input {
    display: none;
}

.attachment-field.has-error {
    border-color: #fca5a5;
    background: #fef2f2;
}

.attachment-field.is-uploading {
    border-color: #e5e7eb;
    background: white;
    cursor: default;
}

.attachment-icon-wrapper {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.attachment-icon-wrapper i,
.attachment-icon-wrapper .lucide,
.attachment-icon-wrapper svg {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    color: #64748b;
    stroke: currentColor;
}

.attachment-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.attachment-pdf-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #ef4444;
    font-size: 1.5rem;
    border-radius: 12px;
}

.attachment-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.attachment-badge i,
.attachment-badge .lucide,
.attachment-badge svg {
    width: 0.75rem;
    height: 0.75rem;
    font-size: 0.75rem;
    color: #ffffff !important;
    stroke: currentColor;
}

.attachment-badge--add {
    background: #2563eb;
    box-shadow: none;
}

.attachment-badge--success {
    width: 26px;
    height: 26px;
    background: #059669;
    box-shadow: none;
}

.attachment-field.is-uploaded {
    border-color: #86efac;
    background: #f0fdf4;
    cursor: default;
}

.attachment-field.is-uploaded .attachment-icon-wrapper {
    background: #ecfdf5;
}

/* Hide empty upload trigger once a file is uploading / uploaded */

.attachment-field.is-file-present {
    display: none !important;
}

.attachment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
    word-break: break-word;
}

.attachment-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
}

.attachment-btn {
    display: none;
    /* Button no longer needed, full card is clickable */
}

.duration-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-option:last-child {
    margin-bottom: 0;
}

.duration-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.duration-option.selected {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.05);
    box-shadow: 0 2px 12px rgba(67, 97, 238, 0.15);
}

.duration-option.selected .duration-icon {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: white;
}

.duration-option.selected .duration-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 640px) {
.duration-option {
        padding: 1rem;
    }
}

.application-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 1.5rem 0;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* Floating price bar must win over base footer (same specificity otherwise) */

.application-footer.application-footer--price {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border: 0;
    border-top: none;
    border-radius: 24px;
    background: transparent !important;
    box-shadow: none;
}

.application-footer.application-footer--price .container {
    padding: 0 !important;
    max-width: none;
    width: 100%;
}

.application-footer .container {
    padding: 0 7rem;
}

.total-fee {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
.application-header {
        padding: 7rem 0 2.9rem;
    }

.application-nav h1 {
        font-size: 1.2rem;
    }

.application-content {
        padding: 1.5rem 0 10rem;
    }

.section-divider {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem);
    }

.application-footer {
        padding: 1.25rem 0;
    }

.application-footer .container {
        padding: 0 1rem;
    }

.total-fee {
        flex: 1;
    }
}

@media (max-width: 640px) {
.application-header {
        padding: 7rem 0 1.9rem;
    }

.progress-steps {
        gap: 0.25rem;
    }

.application-content {
        padding: 1rem 0 7rem;
    }

.section-divider {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

.application-footer {
        padding: 1rem 0;
    }

.application-footer .container {
        padding: 0 1rem;
    }

.application-footer.application-footer--price {
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        padding: 0;
        background: transparent !important;
    }

.application-footer--price .sticky-price-amount {
        font-size: 1.25rem;
    }

.application-footer--price .btn-next {
        width: auto;
        min-width: 118px;
        padding: 0.8rem 1.3rem;
        font-size: 0.95rem;
    }

.total-fee {
        align-items: center;
        justify-content: center;
    }

.application-footer--price .btn-next {
        width: auto;
    }

.review-field {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

.review-value {
        font-size: 0.94rem;
    }
}

html[dir="rtl"] .duration-option,

html[dir="rtl"] .duration-content,
html[dir="rtl"] .addon-content {
    text-align: right;
    margin-left: 0;
    margin-right: 1rem;
}

/* Total Fee Section in Review Page */

.total-fee-section {
    margin-top: 0.35rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.review-section.total-fee-section .fees-card-modern {
    padding: 1.15rem 1.15rem 1.3rem;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.review-section.total-fee-section .fees-header {
    margin-bottom: 1rem;
}

.review-section.total-fee-section .fees-total {
    align-items: flex-end;
    padding-top: 15px;
    padding-bottom: 17px;
}

.review-section.total-fee-section .total-label small {
    display: block;
    line-height: 1.4;
    margin-top: 0.12rem;
}

.review-section.total-fee-section .fee-row {
    align-items: center;
    min-height: 2.5rem;
    padding: 0.35rem 0;
    column-gap: 0.75rem;
}

.review-section.total-fee-section .fee-info {
    align-items: center;
}

.review-section.total-fee-section .fee-value {
    flex-shrink: 0;
    min-width: 4.5rem;
    text-align: end;
}

.total-fee-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-fee-display .fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* RTL for Total Fee Section */

html[dir="rtl"] .total-fee-display {
    flex-direction: row;
}

/* Info Modal Styles */

.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal.active {
    display: flex;
    opacity: 1;
}

.info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-modal-container {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    z-index: 2001;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.info-modal.active .info-modal-container {
    transform: translateY(0);
}

.info-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}

.info-modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Pending Step Style */

.progress-step.pending .step-icon {
    background: #f8fafc;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    padding: 0;
}

.progress-step.pending .step-label {
    color: #94a3b8;
    text-align: center !important;

}

#confirmImportantNotes.loading,
#confirmImportantNotes.btn-loading {
    min-height: 48px;
}

/* Moved compound selectors */

.application-footer--price .footer-content--price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

html[dir="rtl"] .application-footer--price .footer-content--price {
    flex-direction: row;
}

body.review-application-page .form-section.review-section {
    --review-card-pad: 1.2rem;
    padding: 1.2rem 1.2rem 1.25rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    border: 1px solid #e8edf4;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
    background: #fff;
}

body.review-application-page .form-section.review-section.total-fee-section {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    margin-bottom: 0.35rem;
}

/* Optional customer notes — collapsed by default (eVisa + insurance review) */
.form-section.review-section.review-notes-section {
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

.review-notes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 1.05rem 1.2rem;
    min-height: 3.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: start;
    box-shadow: none;
    box-sizing: border-box;
}

.review-notes-toggle:hover {
    background: #f8fafc;
}

.review-notes-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.review-notes-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.review-notes-toggle__label > i,
.review-notes-toggle__label svg,
.review-notes-toggle__label .lucide {
    color: var(--primary-color, #4361ee);
    width: 1.05rem;
    height: 1.05rem;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.review-notes-toggle__label h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.3;
}

.review-notes-toggle__arrow,
.review-notes-toggle__arrow svg {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    color: #94a3b8;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.review-notes-section:not(.is-collapsed) .review-notes-toggle__arrow {
    transform: rotate(180deg);
}

html[dir="rtl"] .review-notes-section:not(.is-collapsed) .review-notes-toggle__arrow {
    transform: rotate(-180deg);
}

.review-notes-body {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding: 0 1.2rem;
    pointer-events: none;
    border-top: 0 solid #eef0f3;
    transition:
        height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.24s ease,
        padding 0.32s ease,
        border-top-width 0.2s ease;
}

.review-notes-section:not(.is-collapsed) .review-notes-body {
    opacity: 1;
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid #eef0f3;
    pointer-events: auto;
}

.review-notes-hint {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.45;
    color: #64748b;
}

.review-notes-textarea {
    display: block;
    width: 100%;
    min-height: 6.5rem;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
    box-shadow: none;
}

.review-notes-textarea::placeholder {
    color: #94a3b8;
}

.review-notes-textarea:focus {
    outline: none;
    border-color: #94a3b8;
    background: #fff;
}

.review-notes-textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

[dir="rtl"] .review-notes-toggle__label h2,
[dir="rtl"] .review-notes-hint,
[dir="rtl"] .review-notes-textarea {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (min-width: 1024px) {
    .review-notes-toggle {
        padding: 1.15rem 1.4rem;
    }

    .review-notes-body {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .review-notes-section:not(.is-collapsed) .review-notes-body {
        padding: 1rem 1.4rem 1.25rem;
    }
}

body.review-application-page #reviewPriceSummary .footer-content--price {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

@media (min-width: 1024px) {
body.review-application-page .form-section.review-section {
        --review-card-pad: 1.4rem;
        padding: 1.35rem 1.4rem 1.4rem;
        margin-bottom: 1rem;
    }

body.review-application-page .form-section.review-section.total-fee-section {
        padding: 0;
    }
}

@media (max-width: 640px) {
body.review-application-page .form-section.review-section {
        --review-card-pad: 1rem;
        padding: 1.05rem 1rem 1.1rem;
        margin-bottom: 0.75rem;
        border-radius: 16px;
    }

body.review-application-page .form-section.review-section.total-fee-section {
        padding: 0;
    }
}

.application-footer:not(.application-footer--price) .footer-content {
    display: flex;
    justify-content: end;
    gap: 1rem;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
.application-footer--price .footer-content--price {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 15px 26px;
        border-radius: 12px;
    }
}

/* Additional application rules moved from styles.css */

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Laptop-friendly progress indicator */

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center !important;
    width: 100%;
    line-height: 1.25;
}

/* Promo Code Section — match iframe widget card (white, border, compact toggle) */

.payment-method-section .promo-code-section,
.payment-page .payment-main > .promo-code-section.payment-card {
    margin: 0 0 0.85rem;
    padding: 0 !important;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: none !important;
    overflow: hidden;
}

.promo-code-section {
    margin-top: 0;
}

.promo-code-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 1.14rem 1.1rem;
    min-height: 3.72rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: start;
    box-shadow: none;
    box-sizing: border-box;
}

.promo-code-toggle:hover {
    background: #f8fafc;
}

.promo-code-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.promo-code-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.promo-code-toggle__label > i,
.promo-code-toggle__label svg,
.promo-code-toggle__label .lucide {
    color: var(--primary-color, #4361ee);
    width: 1.05rem;
    height: 1.05rem;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.promo-code-toggle__label h2 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.3;
}

.promo-code-toggle__arrow,
.promo-code-toggle__arrow svg {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    color: #94a3b8;
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.promo-code-section:not(.is-collapsed) .promo-code-toggle__arrow {
    transform: rotate(180deg);
}

html[dir="rtl"] .promo-code-section:not(.is-collapsed) .promo-code-toggle__arrow {
    transform: rotate(-180deg);
}

.promo-code-body {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding: 0 1.05rem;
    pointer-events: none;
    border-top: 0 solid #eef0f3;
    transition:
        height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.24s ease,
        padding 0.32s ease,
        border-top-width 0.2s ease;
}

.promo-code-section:not(.is-collapsed) .promo-code-body {
    opacity: 1;
    padding: 0 1.05rem 1.05rem;
    border-top: 1px solid #eef0f3;
    pointer-events: auto;
}

.payment-method-section .promo-code-section:not(.is-collapsed) .promo-code-body {
    padding: 0 1.05rem 1.05rem;
}

.payment-method-section .promo-code-input-group,
.payment-page .promo-code-section:not(.is-collapsed) .promo-code-input-group {
    margin-top: 0.85rem;
    gap: 0.55rem;
}

[dir="rtl"] .promo-code-toggle__label h2 {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    .promo-code-body,
    .promo-code-toggle__arrow {
        transition: none;
    }
}

.promo-code-input-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: stretch;
    flex-wrap: nowrap;
}

@media (max-width: 640px) {
.promo-code-input-group {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
}

/* Upload Progress UI */

.upload-progress-container {
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.upload-progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.3s ease;
}

/* Upload Failed UI */

.upload-failed-container {
    padding: 1rem 1.25rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-failed-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.upload-failed-content {
    flex: 1;
}

.upload-failed-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.upload-failed-text {
    font-size: 0.85rem;
    color: #ef4444;
}

.upload-failed-actions {
    display: flex;
    gap: 0.5rem;
}

.uploaded-files-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.uploaded-files-container:not(:empty) {
    margin-bottom: 1rem;
}

.uploaded-file-item {
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.addon-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.addon-field:hover {
    border-color: #c7cdd6;
    background: #f8fafc;
}

.addon-field.selected {
    border-color: var(--wl-accent, var(--primary-color, #4361ee));
    background: color-mix(in srgb, var(--wl-accent, var(--primary-color, #4361ee)) 8%, #fff);
}

.addon-field.selected:hover {
    border-color: var(--wl-accent, var(--primary-color, #4361ee));
}

/* Error only after Next click (not the default empty state) */
.addon-field.has-error {
    border-color: #ef4444;
    background: #fff8f8;
}

.addon-field.has-error:hover {
    border-color: #dc2626;
    background: #fff5f5;
}

.addon-field.has-error .addon-icon,
.addon-field.has-error .addon-arrow,
.addon-field.has-error .addon-arrow.lucide,
.addon-field.has-error svg.addon-arrow {
    color: #ef4444;
}

.addon-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.addon-icon i,
.addon-icon .lucide,
.addon-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    color: inherit;
}

.addon-field.selected .addon-icon {
    color: var(--wl-accent, var(--primary-color, #4361ee));
}

.addon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.addon-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.addon-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
}

.addon-arrow,
.addon-arrow.lucide,
svg.addon-arrow {
    color: #9ca3af;
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
    flex-shrink: 0;
}

.addon-field.selected .addon-arrow {
    color: var(--wl-accent, var(--primary-color, #4361ee));
}

.addon-field .error-message {
    flex-basis: 100%;
    margin: 0.15rem 0 0;
    order: 10;
}

/* Footer content for application pages (non-price default) */

.fee-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
}

.fee-icon i {
    color: #6c757d;
    font-size: 1rem;
    opacity: 0.7;
}

/* Sticky/footer amount stack only — do NOT target fee breakdown rows */
.fee-label-container .fee-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.fee-label-container .fee-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.fee-label-container .fee-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Review / application fee breakdown — self-contained layout */
.fees-section .fees-list,
.review-section.total-fee-section .fees-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fees-section .fee-row,
.review-section.total-fee-section .fee-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.35rem 0;
    box-sizing: border-box;
}

/* Travel-agent discount — full-width split section (review + application) */
.agency-processing-note {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0.85rem 0 0;
    padding: 0.85rem 1.05rem;
    min-height: 3.25rem;
    border-radius: 14px;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: none;
}

.agency-processing-note[hidden] {
    display: none !important;
}

.agency-processing-note__lead {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.agency-processing-note i {
    font-size: 0.95rem;
    color: #16a34a;
    flex-shrink: 0;
}

.agency-processing-note__text {
    white-space: nowrap;
}

.agency-processing-note__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22em;
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.agency-processing-note__chip-word,
.agency-processing-note__chip-pct {
    display: inline-block;
    line-height: 1;
}

.agency-processing-note__chip-pct {
    font-variant-numeric: tabular-nums;
    transform: translateY(-0.04em);
}

[dir="rtl"] .agency-processing-note {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.fees-section--agent-discount .fees-divider {
    display: none;
}

.fees-section--agent-discount .agency-processing-note {
    margin-bottom: 0.75rem;
}

.fee-value--discounted,
.total-amount--discounted,
.sticky-price-amount--discounted {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
    color: #166534;
}

.fee-value--discounted .fee-value-now,
.total-amount--discounted .fee-value-now,
.sticky-price-amount--discounted .fee-value-now {
    font-weight: 800;
    color: inherit;
}

.fee-value--discounted .fee-value-was,
.total-amount--discounted .fee-value-was,
.sticky-price-amount--discounted .fee-value-was {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

html[dir="rtl"] .fee-value--discounted,
html[dir="rtl"] .total-amount--discounted,
html[dir="rtl"] .sticky-price-amount--discounted {
    align-items: flex-start;
}

.application-footer--agent-discount .sticky-price-amount {
    color: #166534;
}

.application-footer--price.is-pricing-pending {
    opacity: 0.55;
    pointer-events: none;
}

.application-footer--price.is-pricing-pending .sticky-price-amount {
    visibility: hidden;
}

.fees-section .fee-info,
.review-section.total-fee-section .fee-info {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.fees-section .fee-name,
.review-section.total-fee-section .fee-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark, #111827);
    line-height: 1.3;
}

.fees-section .fee-value,
.review-section.total-fee-section .fee-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark, #111827);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    justify-self: end;
    align-self: center;
    min-width: 4.5rem;
    text-align: end;
    direction: ltr;
    unicode-bidi: isolate;
}

.fees-section .fee-value.fee-value--discounted,
.review-section.total-fee-section .fee-value.fee-value--discounted {
    justify-content: center;
    min-height: 2.35rem;
}

.fees-section .tooltip-container,
.review-section.total-fee-section .tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
    color: inherit;
}

.fees-section .tooltip-container i,
.review-section.total-fee-section .tooltip-container i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.fees-section .tooltip-text,
.review-section.total-fee-section .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(220px, calc(100vw - 3rem));
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    background: var(--text-dark, #111827);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: start;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: normal;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

/* Closed tooltips must not expand scrollWidth (RTL mobile page shift). */
.fees-section .tooltip-container:not(:hover):not(:focus-within):not(.is-open) .tooltip-text,
.review-section.total-fee-section .tooltip-container:not(:hover):not(:focus-within):not(.is-open) .tooltip-text {
    display: none;
}

.fees-section .tooltip-container:hover .tooltip-text,
.fees-section .tooltip-container:focus-within .tooltip-text,
.fees-section .tooltip-container.is-open .tooltip-text,
.review-section.total-fee-section .tooltip-container:hover .tooltip-text,
.review-section.total-fee-section .tooltip-container:focus-within .tooltip-text,
.review-section.total-fee-section .tooltip-container.is-open .tooltip-text {
    display: block;
    visibility: visible;
    opacity: 1;
}

.fees-section .fees-total,
.review-section.total-fee-section .fees-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.fees-section .total-amount,
.review-section.total-fee-section .total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color, #4361ee);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    justify-self: end;
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] .fees-section .tooltip-text,
html[dir="rtl"] .review-section.total-fee-section .tooltip-text {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.btn-next {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #4361ee 0%, #3652d4 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    position: relative;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Chevron “forward” icon — no separate icon motion (iOS-style) */

.btn-next i,
.btn-next svg {
    font-size: 0.92em;
    opacity: 0.95;
}

/* RTL: flip forward chevron so it points in the reading-direction “next” way */
html[dir="rtl"] .btn-next i,
html[dir="rtl"] .btn-next svg {
    transform: scaleX(-1);
}

.btn-next:hover:not(.btn-loading) {
    background: linear-gradient(135deg, #3652d4 0%, #2d46c4 100%);
    transform: translateY(-2px);
}

.btn-next:active:not(.btn-loading) {
    transform: translateY(0);
}

@media (max-width: 768px) {
.fee-info .fee-amount {
        font-size: 1.35rem;
    }

.btn-next {
        min-width: 140px;
        padding: 0.875rem 2rem;
    }
}

@media (max-width: 640px) {
.step-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

.step-label {
        font-size: 0.7rem;
    }

.fee-info .fee-amount {
        font-size: 1.35rem;
    }

.btn-next {
        width: 100%;
        min-width: unset;
        padding: 1rem 2rem;
    }
}

html[dir="rtl"] .duration-price,

html[dir="rtl"] .file-info {
    text-align: right;
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .remove-file {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .uploaded-file {
    flex-direction: row;
    /* RTL will handle direction */
}

html[dir="rtl"] .step-label {
    font-family: 'GM', 'Inter', sans-serif;
}

.fee-label-container .fee-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

html[dir="rtl"] .fee-label-container .fee-icon {
    margin-left: 1rem;
    margin-right: 0;
}

@media (min-width: 1024px) {
.promo-code-section {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
.promo-code-section {
        margin-top: 0;
    }
}

html[dir="rtl"] .upload-cancel-btn {
    right: auto;
    left: 0;
}

html[dir="rtl"] .upload-percentage {
    margin-right: 0;
    margin-left: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/* New Application — label-above inputs, helpers, inline errors               */
/* -------------------------------------------------------------------------- */

body.new-application-page .application-form .form-fields {
    gap: 1.15rem;
}

body.new-application-page .application-form .form-field:not(.date-range-field) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    min-height: 0;
}

body.new-application-page .application-form .form-field:not(.date-range-field):focus-within,
body.new-application-page .application-form .form-field:not(.date-range-field).has-value,
body.new-application-page .application-form .form-field:not(.date-range-field).has-value:focus-within {
    border: none;
    box-shadow: none;
    background: transparent;
}

body.new-application-page .application-form .form-field:not(.date-range-field).has-error {
    border: none;
    background: transparent;
    margin-bottom: 0;
}

body.new-application-page .application-form .form-label {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark, #111827);
    line-height: 1.35;
    margin: 0;
}

body.new-application-page .application-form .required-mark {
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.9em;
}

body.new-application-page .application-form .field-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 50px;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.new-application-page .application-form .form-field:focus-within > .field-control,
body.new-application-page .application-form .form-field:focus-within > .contact-field-control {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

body.new-application-page .application-form .form-field.has-error > .field-control,
body.new-application-page .application-form .form-field.has-error > .contact-field-control,
body.new-application-page .application-form .form-field.has-error > .date-range-control {
    border-color: #e21c3d;
    background: #fff8f8;
}

body.new-application-page .application-form .form-field.has-error .field-icon {
    color: #b91c1c;
}

body.new-application-page .application-form .field-control .form-input,
body.new-application-page .application-form .contact-field-control .form-input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark, #111827);
    outline: none;
    padding: 0.25rem 0;
    box-shadow: none;
}

body.new-application-page .application-form .field-control .form-input::placeholder,
body.new-application-page .application-form .contact-field-control .form-input::placeholder {
    color: #9ca3af;
}

body.new-application-page .application-form .field-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Show only while the related input is focused / being typed in */
body.new-application-page .application-form .field-hint.field-hint--on-focus {
    display: none;
}

body.new-application-page .application-form .form-field:focus-within > .field-hint.field-hint--on-focus {
    display: block;
}

/* Permanently hidden helpers (kept in DOM for error/a11y copy if needed) */
body.new-application-page .application-form .field-hint.field-hint--hidden,
body.new-application-page .application-form .field-hint.field-hint--hidden[hidden] {
    display: none !important;
}

/* Trip dates guidance — bordered info box (no decorative shadow) */
body.new-application-page .application-form .field-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.15rem 0 0;
    padding: 0.75rem 0.9rem;
    background: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    box-shadow: none;
}

body.new-application-page .application-form .field-info-box__icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    color: var(--primary-color, #4361ee);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.new-application-page .application-form .field-info-box__icon i,
body.new-application-page .application-form .field-info-box__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

body.new-application-page .application-form .field-info-box__text,
body.new-application-page .application-form .field-info-box .field-hint {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #1e3a5f;
    font-weight: 500;
}

body.new-application-page .application-form .form-field.has-error > .field-info-box {
    border-color: #fecaca;
    background: #fff7f7;
}

body.new-application-page .application-form .form-field.has-error > .field-info-box .field-info-box__icon {
    color: #b91c1c;
}

html[dir="rtl"] body.new-application-page .application-form .field-info-box__text {
    text-align: right;
}

/* Error messages already include guidance — hide helper to avoid mixed-language clutter */
body.new-application-page .application-form .form-field.has-error > .field-hint,
body.new-application-page .application-form .upload-field-block.has-error > .field-hint {
    display: none !important;
}

body.new-application-page .application-form .form-label,
body.new-application-page .application-form .field-hint,
body.new-application-page .application-form .error-message {
    text-align: start;
}

body.new-application-page .application-form .error-message {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
    color: #b91c1c;
}

body.new-application-page .application-form .error-message::before {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-inline-end: 0.4rem;
    border-radius: 50%;
    background: #b91c1c;
    vertical-align: 0.1em;
}

body.new-application-page .application-form .country-code-selected {
    min-height: 44px;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #111827);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
}

body.new-application-page .application-form .country-code-selected:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Trip dates: label + bordered control + helper */
body.new-application-page .application-form .form-field.date-range-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    margin-bottom: 0;
}

body.new-application-page .application-form .form-field.date-range-field:hover {
    border: none;
}

body.new-application-page .application-form .form-field.date-range-field.has-error {
    border: none;
    background: transparent;
    margin-bottom: 0;
}

body.new-application-page .application-form .date-range-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 50px;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.new-application-page .application-form .date-range-control:hover {
    border-color: var(--primary-color, #4361ee);
}

body.new-application-page .application-form .form-field.date-range-field:focus-within .date-range-control {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

body.new-application-page .application-form .date-range-field .field-icon {
    margin: 0;
}

/* Uploads: keep card chrome; helper + error stay visible after upload */
body.new-application-page .application-form .upload-field-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
}

body.new-application-page .application-form .upload-field-block .field-hint {
    margin: 0;
}

body.new-application-page .application-form .upload-field-block .error-message {
    position: static;
    margin: 0;
    line-height: 1.4;
}

body.new-application-page .application-form .upload-field-block.has-error .attachment-field,
body.new-application-page .application-form .attachment-field.has-error {
    border-color: #e21c3d;
    background: #fff8f8;
}

body.new-application-page .application-form .attachment-field {
    min-height: 72px;
    border-width: 2px;
    box-shadow: none;
}

body.new-application-page .application-form .form-fields .upload-field-block + .upload-field-block {
    margin-top: 0.15rem;
}

body.new-application-page .application-form .form-fields .attachment-field + .uploaded-files-container,
body.new-application-page .application-form .form-fields .uploaded-files-container + .attachment-field {
    margin-top: 0;
}

html[dir="rtl"] body.new-application-page .application-form .form-label,
html[dir="rtl"] body.new-application-page .application-form .field-hint,
html[dir="rtl"] body.new-application-page .application-form .error-message {
    text-align: right;
}

/* Soften green “has value” on this page — neutral until focus/error */
body.new-application-page .application-form .form-field.has-value > .field-control,
body.new-application-page .application-form .form-field.has-value > .contact-field-control {
    border-color: #d1d5db;
}

body.wl-widget.wl-widget--app.new-application-page .application-form .form-field,
body.wl-widget.wl-widget--app.new-application-page .application-form .date-range-field {
    border: none;
    background: transparent;
    box-shadow: none;
}

body.wl-widget.wl-widget--app.new-application-page .application-form .form-field:focus-within,
body.wl-widget.wl-widget--app.new-application-page .application-form .date-range-field:focus-within {
    border: none;
    box-shadow: none;
}

body.wl-widget.wl-widget--app.new-application-page .application-form .form-field.has-value,
body.wl-widget.wl-widget--app.new-application-page .application-form .form-field.has-error {
    border: none;
    background: transparent;
}

body.wl-widget.wl-widget--app.new-application-page .application-form .field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .contact-field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .date-range-control {
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    min-height: 50px;
}

body.wl-widget.wl-widget--app.new-application-page .application-form .form-field:focus-within > .field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .form-field:focus-within > .contact-field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .form-field:focus-within > .date-range-control {
    border-color: var(--wl-accent, var(--primary-color, #4361ee));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wl-accent, #4361ee) 12%, transparent);
}

body.wl-widget.wl-widget--app.new-application-page .application-form .form-field.has-error > .field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .form-field.has-error > .contact-field-control,
body.wl-widget.wl-widget--app.new-application-page .application-form .form-field.has-error > .date-range-control {
    border-color: #e21c3d;
    background: #fff8f8;
}
