/**
 * TRANSACTION APPLY VIP - Premium Government Portal Styles
 * Inspired by UAE Official Portals (TAMM, ICP, etc.)
 * Uses txv- prefix for all classes
 * Supports RTL/LTR via logical properties
 * =====================================================
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --txv-primary: #143F52;
    --txv-primary-dark: #0d2d3b;
    --txv-primary-light: #1a5570;
    
    /* Secondary/Accent */
    --txv-gold: #b08a59;
    --txv-gold-light: #c9a76c;
    --txv-gold-dark: #8f6f47;
    
    /* Neutrals */
    --txv-bg: #F7F9FB;
    --txv-white: #ffffff;
    --txv-gray-50: #f8fafc;
    --txv-gray-100: #f1f5f9;
    --txv-gray-200: #e2e8f0;
    --txv-gray-300: #cbd5e1;
    --txv-gray-400: #94a3b8;
    --txv-gray-500: #64748b;
    --txv-gray-600: #475569;
    --txv-gray-700: #334155;
    --txv-gray-800: #1e293b;
    --txv-gray-900: #0f172a;
    
    /* Status */
    --txv-success: #10b981;
    --txv-warning: #f59e0b;
    --txv-error: #ef4444;
    --txv-info: #3b82f6;
    
    /* Spacing */
    --txv-space-xs: 0.25rem;
    --txv-space-sm: 0.5rem;
    --txv-space-md: 1rem;
    --txv-space-lg: 1.5rem;
    --txv-space-xl: 2rem;
    --txv-space-2xl: 3rem;
    --txv-space-3xl: 4rem;
    
    /* Border Radius */
    --txv-radius-sm: 8px;
    --txv-radius-md: 12px;
    --txv-radius-lg: 16px;
    --txv-radius-xl: 24px;
    --txv-radius-full: 9999px;
    
    /* Shadows */
    --txv-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --txv-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --txv-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --txv-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --txv-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --txv-shadow-card: 0 2px 8px rgba(20, 63, 82, 0.08);
    --txv-shadow-card-hover: 0 8px 24px rgba(20, 63, 82, 0.12);
    
    /* Transitions */
    --txv-transition-fast: 150ms ease;
    --txv-transition: 250ms ease;
    --txv-transition-slow: 350ms ease;
    
    /* Typography */
    --txv-font-family: 'Cairo', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --txv-font-size-xs: 0.75rem;
    --txv-font-size-sm: 0.875rem;
    --txv-font-size-base: 1rem;
    --txv-font-size-lg: 1.125rem;
    --txv-font-size-xl: 1.25rem;
    --txv-font-size-2xl: 1.5rem;
    --txv-font-size-3xl: 1.875rem;
    --txv-font-size-4xl: 2.25rem;
}

/* ===== PAGE WRAPPER ===== */
.txv-page {
    background-color: var(--txv-bg);
    min-height: 100vh;
    font-family: var(--txv-font-family);
    color: var(--txv-gray-800);
    line-height: 1.6;
}

/* ===== BREADCRUMB SECTION ===== */
.txv-breadcrumb-section {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    padding: var(--txv-space-lg) 0;
    position: relative;
    overflow: hidden;
}

.txv-breadcrumb-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.txv-breadcrumb-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--txv-space-lg);
    position: relative;
    z-index: 1;
}

.txv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--txv-space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.txv-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--txv-space-sm);
    font-size: var(--txv-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

.txv-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--txv-transition-fast);
}

.txv-breadcrumb-item a:hover {
    color: var(--txv-white);
}

.txv-breadcrumb-item.txv-active {
    color: var(--txv-gold-light);
    font-weight: 600;
}

.txv-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--txv-font-size-xs);
}

[dir="rtl"] .txv-breadcrumb-separator {
    transform: scaleX(-1);
}

/* ===== HERO SECTION ===== */
.txv-hero {
    padding: var(--txv-space-2xl) 0;
}

.txv-hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--txv-space-lg);
}

.txv-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--txv-space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .txv-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--txv-space-3xl);
    }
}

/* Hero Content */
.txv-hero-content {
    order: 2;
}

@media (min-width: 992px) {
    .txv-hero-content {
        order: 1;
    }
}

.txv-service-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--txv-space-sm);
    background: linear-gradient(135deg, var(--txv-gold) 0%, var(--txv-gold-dark) 100%);
    color: var(--txv-white);
    padding: var(--txv-space-xs) var(--txv-space-md);
    border-radius: var(--txv-radius-full);
    font-size: var(--txv-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--txv-space-md);
    box-shadow: var(--txv-shadow-md);
}

.txv-service-badge svg {
    width: 14px;
    height: 14px;
}

.txv-hero-title {
    font-size: var(--txv-font-size-3xl);
    font-weight: 700;
    color: var(--txv-primary);
    margin: 0 0 var(--txv-space-md);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .txv-hero-title {
        font-size: var(--txv-font-size-4xl);
    }
}

.txv-hero-description {
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-600);
    margin: 0;
    line-height: 1.8;
    white-space: pre-line;
}

/* Hero Image */
.txv-hero-media {
    order: 1;
}

@media (min-width: 992px) {
    .txv-hero-media {
        order: 2;
    }
}

.txv-hero-image-frame {
    position: relative;
    border-radius: var(--txv-radius-xl);
    overflow: hidden;
    box-shadow: var(--txv-shadow-xl);
    background: var(--txv-white);
    padding: var(--txv-space-sm);
}

.txv-hero-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--txv-primary), var(--txv-gold), var(--txv-primary));
}

.txv-hero-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--txv-radius-lg);
    display: block;
}

/* ===== INFO CARDS SECTION ===== */
.txv-info-section {
    padding: var(--txv-space-xl) 0;
}

.txv-info-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--txv-space-lg);
}

.txv-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--txv-space-lg);
}

@media (min-width: 768px) {
    .txv-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Info Card */
.txv-info-card {
    background: var(--txv-white);
    border-radius: var(--txv-radius-lg);
    box-shadow: var(--txv-shadow-card);
    overflow: hidden;
    transition: box-shadow var(--txv-transition), transform var(--txv-transition);
    border: 1px solid var(--txv-gray-100);
}

.txv-info-card:hover {
    box-shadow: var(--txv-shadow-card-hover);
    transform: translateY(-2px);
}

.txv-info-card-header {
    display: flex;
    align-items: center;
    gap: var(--txv-space-md);
    padding: var(--txv-space-md) var(--txv-space-lg);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    color: var(--txv-white);
}

.txv-info-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--txv-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txv-info-card-icon img,
.txv-info-card-icon svg {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.txv-info-card-title {
    font-size: var(--txv-font-size-lg);
    font-weight: 600;
    margin: 0;
}

.txv-info-card-body {
    padding: var(--txv-space-lg);
}

.txv-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.txv-info-list-item {
    position: relative;
    padding: var(--txv-space-sm) 0;
    padding-inline-start: var(--txv-space-lg);
    color: var(--txv-gray-700);
    font-size: var(--txv-font-size-sm);
    border-bottom: 1px dashed var(--txv-gray-200);
}

.txv-info-list-item:last-child {
    border-bottom: none;
}

.txv-info-list-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--txv-gold);
    border-radius: 50%;
}

.txv-info-list-item a {
    color: var(--txv-primary);
    text-decoration: none;
    font-weight: 500;
    margin-inline-start: var(--txv-space-sm);
    transition: color var(--txv-transition-fast);
}

.txv-info-list-item a:hover {
    color: var(--txv-gold);
}

.txv-info-list-item a i {
    margin-inline-end: var(--txv-space-xs);
}

/* Fees Card Special */
.txv-fees-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--txv-space-sm) 0;
    border-bottom: 1px dashed var(--txv-gray-200);
}

.txv-fees-row:last-child {
    border-bottom: none;
}

.txv-fees-label {
    color: var(--txv-gray-600);
    font-size: var(--txv-font-size-sm);
}

.txv-fees-value {
    color: var(--txv-primary);
    font-weight: 600;
    font-size: var(--txv-font-size-base);
}

.txv-fees-note {
    color: var(--txv-gray-500);
    font-size: var(--txv-font-size-xs);
    padding-top: var(--txv-space-sm);
    font-style: italic;
}

/* ===== PACKAGE STEPPER SECTION ===== */
.txv-package-section {
    padding: var(--txv-space-2xl) 0;
}

.txv-package-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--txv-space-lg);
}

.txv-section-header {
    display: flex;
    align-items: center;
    gap: var(--txv-space-md);
    margin-bottom: var(--txv-space-xl);
}

.txv-section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--txv-gold) 0%, var(--txv-gold-dark) 100%);
    border-radius: var(--txv-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--txv-shadow-md);
}

.txv-section-icon svg {
    width: 24px;
    height: 24px;
    color: var(--txv-white);
}

.txv-section-title {
    font-size: var(--txv-font-size-2xl);
    font-weight: 700;
    color: var(--txv-primary);
    margin: 0;
}

/* Stepper */
.txv-stepper {
    background: var(--txv-white);
    border-radius: var(--txv-radius-xl);
    padding: var(--txv-space-xl);
    box-shadow: var(--txv-shadow-card);
    border: 1px solid var(--txv-gray-100);
    overflow-x: auto;
}

.txv-stepper-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: max-content;
    padding: var(--txv-space-md) 0;
}

.txv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
}

.txv-step-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--txv-gray-50) 0%, var(--txv-white) 100%);
    border: 3px solid var(--txv-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--txv-space-md);
    box-shadow: var(--txv-shadow-md);
    transition: transform var(--txv-transition), box-shadow var(--txv-transition);
}

.txv-step:hover .txv-step-circle {
    transform: scale(1.05);
    box-shadow: var(--txv-shadow-lg);
}

.txv-step-circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.txv-step-number {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--txv-gold) 0%, var(--txv-gold-dark) 100%);
    color: var(--txv-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--txv-font-size-sm);
    font-weight: 700;
    box-shadow: var(--txv-shadow);
}

.txv-step-title {
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    color: var(--txv-gray-800);
    margin: 0 0 var(--txv-space-xs);
    line-height: 1.4;
}

.txv-step-price {
    font-size: var(--txv-font-size-sm);
    font-weight: 700;
    color: var(--txv-primary);
    background: var(--txv-gray-100);
    padding: var(--txv-space-xs) var(--txv-space-md);
    border-radius: var(--txv-radius-full);
}

/* Stepper Arrow */
.txv-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 60px;
    flex-shrink: 0;
    margin-top: -20px;
}

.txv-step-arrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--txv-gold-light), var(--txv-gold));
    position: relative;
}

.txv-step-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-inline-start: 8px solid var(--txv-gold);
    margin-inline-start: -2px;
}

[dir="rtl"] .txv-step-arrow {
    transform: scaleX(-1);
}

/* ===== AUTH CALLOUT ===== */
.txv-auth-callout {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    border-radius: var(--txv-radius-xl);
    padding: var(--txv-space-2xl);
    text-align: center;
    color: var(--txv-white);
    margin: var(--txv-space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.txv-auth-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.txv-auth-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--txv-space-lg);
    position: relative;
    z-index: 1;
}

.txv-auth-icon svg {
    width: 40px;
    height: 40px;
    color: var(--txv-white);
}

.txv-auth-title {
    font-size: var(--txv-font-size-2xl);
    font-weight: 700;
    margin: 0 0 var(--txv-space-sm);
    position: relative;
    z-index: 1;
}

.txv-auth-text {
    font-size: var(--txv-font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--txv-space-xl);
    position: relative;
    z-index: 1;
}

.txv-auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--txv-space-md);
    position: relative;
    z-index: 1;
}

.txv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-md) var(--txv-space-xl);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--txv-transition);
    border: 2px solid transparent;
}

.txv-btn-primary {
    background: linear-gradient(135deg, var(--txv-gold) 0%, var(--txv-gold-dark) 100%);
    color: var(--txv-white);
    box-shadow: var(--txv-shadow-md);
}

.txv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--txv-shadow-lg);
    color: var(--txv-white);
}

.txv-btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--txv-white);
}

.txv-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--txv-white);
    color: var(--txv-white);
}

/* ===== APPLICATION FORM SECTION ===== */
.txv-form-section {
    padding: var(--txv-space-2xl) 0 var(--txv-space-3xl);
}

.txv-form-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--txv-space-lg);
}

.txv-form-header {
    text-align: center;
    margin-bottom: var(--txv-space-xl);
}

.txv-form-title {
    font-size: var(--txv-font-size-2xl);
    font-weight: 700;
    color: var(--txv-primary);
    margin: 0 0 var(--txv-space-sm);
}

.txv-form-subtitle {
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-500);
    margin: 0;
}

/* ===== PARTIAL FORM OVERRIDES ===== */
.txv-page .most-services-details {
    background: transparent;
    padding: 0;
}

.txv-page .most-services-cards {
    background: transparent;
}

.txv-page .account-cards {
    background: var(--txv-white);
    border-radius: var(--txv-radius-lg);
    box-shadow: var(--txv-shadow-card);
    overflow: hidden;
    border: 1px solid var(--txv-gray-100);
    margin-bottom: var(--txv-space-lg);
}

.txv-page .card-title-account {
    display: flex;
    align-items: center;
    gap: var(--txv-space-md);
    padding: var(--txv-space-md) var(--txv-space-lg);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    color: var(--txv-white);
    font-size: var(--txv-font-size-lg);
    font-weight: 600;
    margin: 0;
}

.txv-page .card-title-account img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.txv-page .card-body-services,
.txv-page .p-3.card-body-services {
    padding: var(--txv-space-lg);
}

.txv-page .table-sec1 {
    border: none;
}

.txv-page .table-sec1 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.txv-page .table-sec1 thead {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
}

.txv-page .table-sec1 thead th {
    padding: var(--txv-space-md);
    color: var(--txv-white);
    font-weight: 600;
    text-align: start;
}

.txv-page .table-sec1 tbody tr {
    border-bottom: 1px solid var(--txv-gray-100);
}

.txv-page .table-sec1 tbody tr:hover {
    background: var(--txv-gray-50);
}

.txv-page .table-sec1 tbody td {
    padding: var(--txv-space-md);
    vertical-align: middle;
}

.txv-page .most-services-input {
    width: 100%;
    padding: var(--txv-space-sm) var(--txv-space-md);
    border: 1px solid var(--txv-gray-300);
    border-radius: var(--txv-radius-sm);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-sm);
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
    background: var(--txv-white);
}

.txv-page .most-services-input:focus {
    outline: none;
    border-color: var(--txv-primary);
    box-shadow: 0 0 0 3px rgba(20, 63, 82, 0.1);
}

.txv-page .most-services-details-table {
    font-size: var(--txv-font-size-sm);
    color: var(--txv-gray-700);
    margin: 0;
}

.txv-page .table-buttons {
    display: inline-flex;
    align-items: center;
    gap: var(--txv-space-xs);
    padding: var(--txv-space-sm) var(--txv-space-md);
    background: var(--txv-gray-100);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    font-size: var(--txv-font-size-xs);
    color: var(--txv-gray-700);
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txv-page .table-buttons:hover {
    background: var(--txv-gray-200);
    color: var(--txv-primary);
}

.txv-page .table-buttons.clear {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--txv-error);
}

.txv-page .table-buttons.clear:hover {
    background: rgba(239, 68, 68, 0.2);
}

.txv-page .text-area-div {
    margin-top: var(--txv-space-lg);
}

.txv-page .textarea-field {
    width: 100%;
    padding: var(--txv-space-md);
    border: 1px solid var(--txv-gray-300);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-sm);
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
}

.txv-page .textarea-field:focus {
    outline: none;
    border-color: var(--txv-primary);
    box-shadow: 0 0 0 3px rgba(20, 63, 82, 0.1);
}

.txv-page .professions-details-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--txv-space-md);
    padding: var(--txv-space-xl) 0;
}

.txv-page .accountReceivablesbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-md) var(--txv-space-2xl);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    color: var(--txv-white);
    border: none;
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--txv-transition);
    box-shadow: var(--txv-shadow-md);
}

.txv-page .accountReceivablesbtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--txv-shadow-lg);
    color: var(--txv-white);
}

.txv-page .view-accountReceivablesbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-md) var(--txv-space-2xl);
    background: var(--txv-white);
    color: var(--txv-primary);
    border: 2px solid var(--txv-primary);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--txv-transition);
}

.txv-page .view-accountReceivablesbtn:hover {
    background: var(--txv-primary);
    color: var(--txv-white);
}

/* Radio Inputs */
.txv-page .radio-input {
    accent-color: var(--txv-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Select Dropdowns */
.txv-page .form-select,
.txv-page .select2-container--bootstrap-5 .select2-selection {
    border: 1px solid var(--txv-gray-300);
    border-radius: var(--txv-radius-sm);
    font-family: var(--txv-font-family);
}

/* Custom Dropdown in partial */
.txv-page .select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--txv-space-sm) var(--txv-space-md);
    cursor: pointer;
}

.txv-page .list-items {
    background: var(--txv-white);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    box-shadow: var(--txv-shadow-lg);
    max-height: 250px;
    overflow-y: auto;
    margin-top: var(--txv-space-xs);
}

.txv-page .list-items .item {
    padding: var(--txv-space-sm) var(--txv-space-md);
    transition: background var(--txv-transition-fast);
}

.txv-page .list-items .item:hover {
    background: var(--txv-gray-50);
}

.txv-page .list-items .item label {
    display: flex;
    align-items: center;
    gap: var(--txv-space-sm);
    cursor: pointer;
    font-size: var(--txv-font-size-sm);
}

/* Modal Overrides */
.txv-page .modal-content {
    border-radius: var(--txv-radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: var(--txv-shadow-xl);
}

.txv-page .modal-header {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    color: var(--txv-white);
    border-bottom: none;
    padding: var(--txv-space-md) var(--txv-space-lg);
}

.txv-page .modal-title {
    font-family: var(--txv-font-family);
    font-weight: 600;
}

.txv-page .modal-body {
    padding: var(--txv-space-xl);
}

.txv-page .modal-footer {
    border-top: 1px solid var(--txv-gray-100);
    padding: var(--txv-space-md) var(--txv-space-lg);
}

/* Upload Button Wrapper */
.txv-page .upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.txv-page .upload-btn-wrapper .btn {
    border: 2px solid var(--txv-primary);
    color: var(--txv-primary);
    background: var(--txv-white);
    padding: var(--txv-space-sm) var(--txv-space-lg);
    border-radius: var(--txv-radius-sm);
    font-family: var(--txv-font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
    width: 100%;
}

.txv-page .upload-btn-wrapper .btn:hover {
    background: var(--txv-primary);
    color: var(--txv-white);
}

/* Des styling */
.txv-page .des-most-services-thead {
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    margin: 0;
    color: var(--txv-white);
}

.txv-page .des-most-services-tbody {
    font-size: var(--txv-font-size-sm);
    color: var(--txv-gray-700);
    margin: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .txv-page {
        background: white;
    }
    
    .txv-auth-callout,
    .txv-page .professions-details-btns {
        display: none;
    }
    
    .txv-info-card,
    .txv-stepper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =====================================================
   TXF - FORM PARTIAL STYLES
   VIP Government Application Form
   ===================================================== */

/* ===== FORM WRAPPER ===== */
.txf-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-xl);
}

/* ===== SECTIONS ===== */
.txf-section {
    background: var(--txv-white);
    border-radius: var(--txv-radius-lg);
    box-shadow: var(--txv-shadow-card);
    border: 1px solid var(--txv-gray-100);
    overflow: hidden;
    transition: box-shadow var(--txv-transition);
}

.txf-section:hover {
    box-shadow: var(--txv-shadow-card-hover);
}

.txf-section-header {
    display: flex;
    align-items: center;
    gap: var(--txv-space-md);
    padding: var(--txv-space-md) var(--txv-space-lg);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    color: var(--txv-white);
}

.txf-section-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--txv-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txf-section-icon svg {
    width: 24px;
    height: 24px;
    color: var(--txv-white);
}

.txf-section-title {
    font-size: var(--txv-font-size-lg);
    font-weight: 600;
    margin: 0;
}

.txf-section-body {
    padding: var(--txv-space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-lg);
}

/* ===== FIELD GROUPS ===== */
.txf-field-group {
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-sm);
}

.txf-field-label {
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    color: var(--txv-gray-700);
    display: flex;
    align-items: center;
    gap: var(--txv-space-xs);
}

.txf-required {
    color: var(--txv-error);
    font-weight: 700;
}

.txf-fields-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--txv-space-lg);
}

@media (min-width: 768px) {
    .txf-fields-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== INPUT WRAPPER ===== */
.txf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.txf-input-icon {
    position: absolute;
    inset-inline-start: var(--txv-space-md);
    color: var(--txv-gray-400);
    pointer-events: none;
    z-index: 1;
}

.txf-input {
    width: 100%;
    padding: var(--txv-space-md);
    padding-inline-start: calc(var(--txv-space-md) + 24px + var(--txv-space-sm));
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-800);
    background: var(--txv-white);
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
}

.txf-input:focus {
    outline: none;
    border-color: var(--txv-primary);
    box-shadow: 0 0 0 4px rgba(20, 63, 82, 0.1);
}

.txf-input::placeholder {
    color: var(--txv-gray-400);
}

.txf-input[readonly] {
    background: var(--txv-gray-50);
    color: var(--txv-gray-600);
}

.txf-input-error {
    border-color: var(--txv-error) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* ===== TOGGLE PILLS ===== */
.txf-toggle-pills {
    display: flex;
    gap: var(--txv-space-md);
    flex-wrap: wrap;
}

.txf-pill {
    cursor: pointer;
}

.txf-pill-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.txf-pill-label {
    display: inline-flex;
    align-items: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-sm) var(--txv-space-lg);
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-full);
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    color: var(--txv-gray-600);
    background: var(--txv-white);
    transition: all var(--txv-transition-fast);
}

.txf-pill-label svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--txv-transition-fast);
}

.txf-pill-input:checked + .txf-pill-label {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    border-color: var(--txv-primary);
    color: var(--txv-white);
}

.txf-pill-input:checked + .txf-pill-label svg {
    opacity: 1;
    transform: scale(1);
}

.txf-pill-input:focus + .txf-pill-label {
    box-shadow: 0 0 0 4px rgba(20, 63, 82, 0.15);
}

/* ===== DROPDOWN ===== */
.txf-dropdown {
    position: relative;
    background: var(--txv-white);
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    transition: border-color var(--txv-transition-fast);
}

.txf-dropdown:focus-within {
    border-color: var(--txv-primary);
}

.txf-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--txv-space-md);
    cursor: pointer;
    min-height: 52px;
}

.txf-dropdown-text {
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-600);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.txf-dropdown-arrow {
    color: var(--txv-gray-400);
    transition: transform var(--txv-transition-fast);
}

.txf-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--txv-white);
    border: 2px solid var(--txv-gray-200);
    border-top: none;
    border-radius: 0 0 var(--txv-radius-md) var(--txv-radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: var(--txv-shadow-lg);
}

.txf-dropdown-search {
    padding: var(--txv-space-sm);
    border-bottom: 1px solid var(--txv-gray-100);
    position: sticky;
    top: 0;
    background: var(--txv-white);
    z-index: 1;
}

.txf-search-input {
    width: 100%;
    padding: var(--txv-space-sm) var(--txv-space-md);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    font-size: var(--txv-font-size-sm);
}

.txf-dropdown-item {
    padding: var(--txv-space-sm) var(--txv-space-md);
    transition: background var(--txv-transition-fast);
}

.txf-dropdown-item:hover {
    background: var(--txv-gray-50);
}

.txf-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--txv-space-sm);
    cursor: pointer;
    font-size: var(--txv-font-size-sm);
    color: var(--txv-gray-700);
}

.txf-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--txv-primary);
    cursor: pointer;
}

.txf-checkbox-text {
    flex: 1;
}

/* ===== SELECT ===== */
.txf-select-wrapper {
    position: relative;
}

.txf-select {
    width: 100%;
    padding: var(--txv-space-md);
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-800);
    background: var(--txv-white);
    cursor: pointer;
    transition: border-color var(--txv-transition-fast);
}

.txf-select:focus {
    outline: none;
    border-color: var(--txv-primary);
}

/* ===== ATTACHMENTS ===== */
.txf-attachments-grid {
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-md);
}

.txf-attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--txv-space-md);
    padding: var(--txv-space-md) var(--txv-space-lg);
    background: var(--txv-gray-50);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
}

.txf-attachment-card:hover {
    border-color: var(--txv-primary);
    box-shadow: var(--txv-shadow);
}

.txf-hidden {
    display: none !important;
}

.txf-attachment-info {
    display: flex;
    align-items: center;
    gap: var(--txv-space-md);
    flex: 1;
    min-width: 0;
}

.txf-attachment-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    border-radius: var(--txv-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.txf-attachment-icon svg {
    width: 24px;
    height: 24px;
    color: var(--txv-white);
}

.txf-attachment-details {
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-xs);
    min-width: 0;
    flex: 1;
}

.txf-attachment-name {
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    color: var(--txv-gray-800);
}

.txf-filename-display {
    font-size: var(--txv-font-size-xs);
    color: var(--txv-gray-500);
    background: var(--txv-white);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    padding: var(--txv-space-xs) var(--txv-space-sm);
    width: 100%;
    max-width: 300px;
}

.txf-attachment-actions {
    display: flex;
    align-items: center;
    gap: var(--txv-space-sm);
    flex-shrink: 0;
}

.txf-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-sm) var(--txv-space-md);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    color: var(--txv-white);
    border: none;
    border-radius: var(--txv-radius-sm);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-btn-upload:hover {
    transform: translateY(-1px);
    box-shadow: var(--txv-shadow-md);
}

.txf-btn-clear {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--txv-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--txv-radius-sm);
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-btn-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--txv-error);
}

/* ===== MODAL OVERRIDES ===== */
.txf-modal {
    border-radius: var(--txv-radius-lg);
    overflow: hidden;
}

.txf-modal-header {
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-light) 100%);
    color: var(--txv-white);
    padding: var(--txv-space-lg);
    border-bottom: none;
}

.txf-modal-header .modal-title {
    font-weight: 600;
}

.txf-modal-body {
    padding: var(--txv-space-xl);
}

.txf-modal-footer {
    padding: var(--txv-space-md) var(--txv-space-lg);
    border-top: 1px solid var(--txv-gray-100);
}

.txf-upload-zone {
    display: flex;
    flex-direction: column;
    gap: var(--txv-space-md);
}

.txf-upload-btn-wrapper {
    position: relative;
    overflow: hidden;
}

.txf-upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    width: 100%;
    padding: var(--txv-space-xl);
    background: var(--txv-gray-50);
    border: 2px dashed var(--txv-gray-300);
    border-radius: var(--txv-radius-md);
    color: var(--txv-gray-600);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-upload-trigger:hover {
    border-color: var(--txv-primary);
    background: rgba(20, 63, 82, 0.05);
    color: var(--txv-primary);
}

.txf-upload-trigger svg {
    color: var(--txv-primary);
}

.txf-file-input {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.txf-selected-file {
    width: 100%;
    padding: var(--txv-space-sm) var(--txv-space-md);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    font-size: var(--txv-font-size-sm);
    color: var(--txv-gray-600);
    background: var(--txv-white);
}

.txf-btn-wallet {
    display: none;
    width: 100%;
    padding: var(--txv-space-md);
    margin-top: var(--txv-space-md);
    background: linear-gradient(135deg, var(--txv-gold) 0%, var(--txv-gold-dark) 100%);
    color: var(--txv-white);
    border: none;
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-btn-wallet.show-button-file {
    display: block;
}

.txf-btn-wallet:hover {
    transform: translateY(-1px);
    box-shadow: var(--txv-shadow-md);
}

.txf-btn-modal-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--txv-space-md) var(--txv-space-xl);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    color: var(--txv-white);
    border: none;
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-btn-modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: var(--txv-shadow-md);
}

.txf-btn-use {
    padding: var(--txv-space-sm) var(--txv-space-md);
    background: var(--txv-white);
    color: var(--txv-primary);
    border: 2px solid var(--txv-primary);
    border-radius: var(--txv-radius-sm);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition-fast);
}

.txf-btn-use:hover {
    background: var(--txv-primary);
    color: var(--txv-white);
}

.txf-wallet-modal-hidden {
    display: none;
}

/* ===== TEXTAREA ===== */
.txf-section-notes .txf-section-body {
    padding: var(--txv-space-lg);
}

.txf-textarea-wrapper {
    position: relative;
}

.txf-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--txv-space-md);
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-800);
    background: var(--txv-white);
    resize: vertical;
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
}

.txf-textarea:focus {
    outline: none;
    border-color: var(--txv-primary);
    box-shadow: 0 0 0 4px rgba(20, 63, 82, 0.1);
}

.txf-textarea::placeholder {
    color: var(--txv-gray-400);
}

/* ===== ACTION BAR ===== */
.txf-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--txv-space-md);
    padding: var(--txv-space-xl);
    background: var(--txv-white);
    border-radius: var(--txv-radius-lg);
    box-shadow: var(--txv-shadow-card);
    border: 1px solid var(--txv-gray-100);
}

.txf-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-md) var(--txv-space-2xl);
    background: linear-gradient(135deg, var(--txv-primary) 0%, var(--txv-primary-dark) 100%);
    color: var(--txv-white);
    border: none;
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--txv-transition);
    box-shadow: var(--txv-shadow-md);
    min-width: 180px;
}

.txf-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--txv-shadow-lg);
}

.txf-btn-submit:active {
    transform: translateY(0);
}

.txf-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--txv-space-sm);
    padding: var(--txv-space-md) var(--txv-space-2xl);
    background: var(--txv-white);
    color: var(--txv-primary);
    border: 2px solid var(--txv-primary);
    border-radius: var(--txv-radius-md);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--txv-transition);
    min-width: 180px;
}

.txf-btn-back:hover {
    background: var(--txv-primary);
    color: var(--txv-white);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .txf-section-body {
        padding: var(--txv-space-md);
    }
    
    .txf-attachment-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .txf-attachment-info {
        flex-direction: column;
    }
    
    .txf-attachment-actions {
        justify-content: center;
    }
    
    .txf-filename-display {
        max-width: 100%;
    }
    
    .txf-action-bar {
        flex-direction: column;
    }
    
    .txf-btn-submit,
    .txf-btn-back {
        width: 100%;
        min-width: unset;
    }
    
    .txf-toggle-pills {
        justify-content: center;
    }
}

/* ===== RTL SPECIFIC OVERRIDES ===== */
[dir="rtl"] .txf-pill-label svg {
    order: 1;
}

[dir="rtl"] .txf-btn-back svg {
    transform: scaleX(-1);
}

/* ===============================
   FORCE RTL/LTR (CSS ONLY)
   Put at END of your main css
   =============================== */

/* 1) لو الصفحة عربية (lang=ar) أو عليها كلاس RTL */
html:lang(ar),
body:lang(ar),
html[lang="ar"],
body[lang="ar"],
body.rtl,
html.rtl,
[dir="rtl"] {
    direction: rtl !important;
    unicode-bidi: plaintext;
    text-align: right;
}

    /* 2) إجبار الـRTL على كونتينر الصفحات (لو عندك wrapper زي txv-page) */
    html:lang(ar) .txv-page,
    body:lang(ar) .txv-page,
    html[lang="ar"] .txv-page,
    body[lang="ar"] .txv-page,
    body.rtl .txv-page,
    html.rtl .txv-page,
    [dir="rtl"] .txv-page {
        direction: rtl !important;
        text-align: right;
    }

    /* 3) الحقول تكتب صح في RTL */
    html:lang(ar) input,
    html:lang(ar) textarea,
    html:lang(ar) select,
    html[lang="ar"] input,
    html[lang="ar"] textarea,
    html[lang="ar"] select,
    body.rtl input,
    body.rtl textarea,
    body.rtl select,
    [dir="rtl"] input,
    [dir="rtl"] textarea,
    [dir="rtl"] select {
        direction: rtl !important;
        text-align: right;
    }

        /* 4) استثناءات: الأرقام/التليفون/الإيميل خليهم LTR حتى في صفحة عربية */
        html:lang(ar) input[type="tel"],
        html:lang(ar) input[type="email"],
        html:lang(ar) input[type="number"],
        html:lang(ar) input[type="url"],
        html[lang="ar"] input[type="tel"],
        html[lang="ar"] input[type="email"],
        html[lang="ar"] input[type="number"],
        html[lang="ar"] input[type="url"],
        body.rtl input[type="tel"],
        body.rtl input[type="email"],
        body.rtl input[type="number"],
        body.rtl input[type="url"],
        [dir="rtl"] input[type="tel"],
        [dir="rtl"] input[type="email"],
        [dir="rtl"] input[type="number"],
        [dir="rtl"] input[type="url"],
        #PhoneNumberPhone {
            direction: ltr !important;
            text-align: left !important;
        }

    /* 5) Bootstrap helpers (لو عندك حاجات لسه بتعمل text-left) */
    html:lang(ar) .text-left,
    html[lang="ar"] .text-left,
    body.rtl .text-left,
    [dir="rtl"] .text-left {
        text-align: right !important;
    }

    html:lang(ar) .float-left,
    html[lang="ar"] .float-left,
    body.rtl .float-left,
    [dir="rtl"] .float-left {
        float: right !important;
    }

/* 6) إصلاح الدروب داون اللي عندك (كان فيه left inline) */
.txv-page .list-items {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
}

html:lang(ar) .txv-page .list-items,
html[lang="ar"] .txv-page .list-items,
body.rtl .txv-page .list-items,
[dir="rtl"] .txv-page .list-items {
    inset-inline-end: 0 !important;
    inset-inline-start: auto !important;
}


/* =========================
   TXF Dropdown (Single/Multi)
   ========================= */
.txf-dropdown {
    position: relative;
    width: 100%;
}

.txf-dropdown-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    background: var(--txv-white);
    font-family: var(--txv-font-family);
    font-size: var(--txv-font-size-base);
    color: var(--txv-gray-700);
    cursor: pointer;
    transition: border-color var(--txv-transition-fast), box-shadow var(--txv-transition-fast);
}

    .txf-dropdown-btn:hover {
        border-color: var(--txv-primary);
    }

    .txf-dropdown.is-open .txf-dropdown-btn,
    .txf-dropdown-btn:focus {
        outline: none;
        border-color: var(--txv-primary);
        box-shadow: 0 0 0 4px rgba(20, 63, 82, 0.10);
    }

.txf-dropdown-text {
    flex: 1;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--txv-gray-700);
}

.txf-dropdown-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.txf-dropdown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--txv-radius-full);
    background: var(--txv-gray-100);
    color: var(--txv-primary);
    font-size: var(--txv-font-size-xs);
    font-weight: 700;
}

.txf-hidden {
    display: none !important;
}

.txf-dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--txv-gray-500);
    transition: transform var(--txv-transition-fast);
}

.txf-dropdown.is-open .txf-dropdown-arrow {
    transform: rotate(180deg);
}

/* Panel */
.txf-dropdown-panel {
    position: absolute;
    z-index: 999;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--txv-white);
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-md);
    box-shadow: var(--txv-shadow-lg);
    overflow: hidden;
    display: none;
}

.txf-dropdown.is-open .txf-dropdown-panel {
    display: contents;
}

.txf-dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--txv-gray-100);
    background: var(--txv-white);
}

.txf-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--txv-gray-200);
    border-radius: var(--txv-radius-sm);
    font-size: var(--txv-font-size-sm);
    font-family: var(--txv-font-family);
}

    .txf-search-input:focus {
        outline: none;
        border-color: var(--txv-primary);
        box-shadow: 0 0 0 3px rgba(20, 63, 82, 0.08);
    }

.txf-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 260px;
    overflow: auto;
}

.txf-dropdown-item {
    border-radius: 10px;
    padding: 8px 10px;
    transition: background var(--txv-transition-fast);
}

    .txf-dropdown-item:hover {
        background: var(--txv-gray-50);
    }

.txf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.txf-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--txv-primary);
}

.txf-checkbox-text {
    flex: 1;
    color: var(--txv-gray-800);
    font-size: var(--txv-font-size-sm);
}

/* RTL tweaks */
[dir="rtl"] .txf-dropdown-arrow svg {
    transform: scaleX(-1);
}
/* FIX: old txf-dropdown-list rule was hiding items */
.txf-dropdown-panel .txf-dropdown-list {
    display: block !important;
    position: static !important;
    inset: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 6px !important;
    max-height: 260px;
    overflow: auto;
}

