/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Override body font for RTL/Persian */
[dir="rtl"] body,
body[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* ===== NAVIGATION ===== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    padding: .8rem 0;
    z-index: 1000;
    position: relative;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

/* Standard mobile logo size - consistent across all pages */
.navbar-brand img.d-md-none,
.navbar-brand .logo-mobile {
    height: 45px !important;
    max-width: 180px !important;
    width: auto;
    object-fit: contain;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* RTL: Icon on right, text on left */
[dir="rtl"] .nav-link,
html[dir="rtl"] .nav-link {
    flex-direction: row-reverse;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Active dropdown item styling */
.dropdown-item.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: bold;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: auto;
    height: 100%;
    position: relative;
    z-index: 1;
    padding-bottom: 4rem; /* Space for footer */
}

/* Add extra padding on mobile for bottom navigation */
@media (max-width: 767.98px) {
    .main-content {
        padding-bottom: 6rem; /* Extra space for mobile bottom nav */
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    margin-bottom: 4rem;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-description {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--secondary-color);
}

.input-group .form-control {
    border-left: none;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color), #34d399) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    margin-top: 4rem;
    position: static !important;
    bottom: auto !important;
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.6 !important;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    margin-right: 0.5rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard .main-content {
    margin-top: 0;
    padding: 1rem;
    height: 100%;
}

.dashboard .card {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.dashboard .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.dashboard .list-group-item:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.dashboard-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.dashboard-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.dashboard-title h2 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 700;
}

.dashboard-title i {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(37, 99, 235, 0.15);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hide menu when scrolling down */
.mobile-bottom-nav.hidden {
    transform: translateY(100%);
    box-shadow: none;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 60px;
    position: relative;
}

.mobile-nav-item:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
}

.mobile-nav-item.active {
    color: #667eea;
    font-weight: 600;
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.mobile-nav-item:hover i {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.mobile-nav-item.dropdown .dropdown-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    padding: 0.5rem 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 60px;
    position: relative;
}

.mobile-nav-item.dropdown .dropdown-toggle:hover {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
}

.mobile-nav-item.dropdown .dropdown-toggle i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.mobile-nav-item.dropdown .dropdown-toggle::after {
    display: none !important;
}

.mobile-nav-item.dropdown .dropdown-toggle span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.dropdown-menu-up {
    bottom: 100%;
    top: auto;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 150px;
}

.dropdown-menu-up .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-menu-up .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

.dropdown-menu-up .dropdown-item i {
    font-size: 0.9rem;
}

/* Adjust main content to account for mobile bottom nav */
@media (max-width: 767px) {
    .main-content {
        margin-bottom: auto;
        
    }
    
    .footer {
        margin-bottom: 0;
        padding-bottom: 80px !important; /* Space for mobile bottom nav */
    }
    
    /* Hide footer on mobile for non-home pages */
    .footer.hide-footer-mobile {
        display: none !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    

    
    .navbar-toggler {
        display: block !important;
        margin-left: auto;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        padding: 2rem 1rem;
        overflow-y: auto;
    }
    
    /* Force mobile hamburger menu to always be LTR */
    [dir="rtl"] .navbar-collapse {
        direction: ltr !important;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    /* Mobile menu header styling */
    .navbar-collapse .d-md-none {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .navbar-collapse .btn-close {
        width: 10px;
        margin-right: 13px;
        border: none;
        font-size: 1.5rem;
        color: #6c757d ;
        padding: 0.25rem;
        line-height: 1;
    }
    
    .navbar-collapse .btn-close:hover {
        color: #495057;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
    }
    
    .navbar-nav {
        text-align: left;
    }
    
    /* Force mobile menu nav to be LTR */
    [dir="rtl"] .navbar-collapse .navbar-nav {
        flex-direction: column !important;
        text-align: left !important;
        direction: ltr !important;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
        border-top: 1px solid #e2e8f0;
        border-radius: var(--border-radius);
        position: relative;
    }
    
    .navbar-nav .nav-item:first-child {
        border-top: none;
    }
    
    .navbar-nav .nav-item:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-radius: var(--border-radius);
    }
    
    /* Active navigation link styling */
    .navbar-nav .nav-link.active {
        color: #667eea !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-radius: var(--border-radius);
        position: relative;
    }
    
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        color: #667eea !important;
    }
    
    /* Ensure mobile menu is hidden by default on larger screens */
    @media (min-width: 768px) {
        .navbar-collapse {
            position: static;
            right: auto;
            width: auto;
            max-width: none;
            height: auto;
            background: transparent;
            box-shadow: none;
            z-index: auto;
            transition: none;
            padding: 0;
            overflow-y: visible;
        }
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 100px;
    }
    

}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-light)) 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== STEP-BY-STEP FORM STYLING ===== */
.step-content {
    min-height: 400px;
    padding: 0.5rem 0;
}

.step-content h5 {
    color: var(--dark-color);
    font-weight: 600;
    border-bottom: 2px solid var(--success-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.step-content .form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-content .form-control-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.step-content .form-control-lg:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
    outline: none;
}

.step-content .input-group-text {
    background-color: var(--light-color);
    border: 2px solid var(--border-color);
    color: var(--success-color);
    font-weight: 600;
}

.step-content .form-check {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.step-content .form-check:hover {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.05);
}

.step-content .form-check-input:checked + .form-check-label {
    color: var(--success-color);
    font-weight: 600;
}

.step-content .form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.progress {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #ffffff, #e8f5e8);
    transition: width 0.3s ease;
}

/* Pricing fields now use default Bootstrap styling to match other form fields */

/* ===== TRAVEL PAGE HEADER ===== */
.travel-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.travel-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* ===== SEARCH FORM STYLING ===== */
.search-form-container {
    margin-bottom: 2rem;
}

.search-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    position: relative;
}

.search-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.search-form-card .form-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.search-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
}

/* ===== ENHANCED TRAVEL CARD STYLING ===== */
.travel-card-enhanced {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.travel-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.travel-card-enhanced:hover::before {
    transform: scaleX(1);
}

.travel-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15) !important;
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

/* Travel Header */
.travel-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
}

.route-info {
    display: flex;
    align-items: flex-start;
}

.route-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.transportation-icon {
    font-size: 1.5rem;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.transportation-icon i {
    font-size: 1rem;
}

.card-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    text-align: left;
}

.departure-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 0.5rem;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Weight Info */
.weight-info {
    text-align: left;
}

.weight-text {
    display: flex;
    align-items: center;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.weight-text i {
    color: #667eea;
    font-size: 1.1rem;
}

.travel-card-enhanced:hover .weight-text {
    color: #667eea;
}

.travel-card-enhanced:hover .weight-text i {
    color: #5a67d8;
}

/* Traveler Rating Section */
.traveler-rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

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

.rating-stars-display {
    display: flex;
    gap: 2px;
    font-size: 1rem;
}

.rating-stars-display i {
    transition: all 0.2s ease;
}

.rating-text-display {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    text-align: center;
}

.rating-new {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.travel-card-enhanced:hover .rating-text-display {
    color: #667eea;
}

.travel-card-enhanced:hover .rating-stars-display i.text-warning {
    color: #f59e0b !important;
    transform: scale(1.1);
}

/* ===== NO RESULTS STYLING ===== */
.no-results-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 3rem 0;
}

.no-results-content {
    text-align: center;
    max-width: 500px;
}

.no-results-content i {
    color: #667eea;
    opacity: 0.6;
}

.no-results-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results-text {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Item Types Section */
.item-types-section {
    margin-top: 1.5rem;
}

.item-types-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.item-types-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.item-types-text {
    min-height: 20px;
}

.item-types-list {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.no-items-text {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

.item-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.item-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--item-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.item-type-card:hover::before {
    transform: scaleX(1);
}

.item-type-card i {
    font-size: 1.5rem;
    color: var(--item-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.item-type-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.item-price {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 700;
    margin-top: 0.25rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    display: block;
}

.item-type-card:hover {
    border-color: var(--item-color);
    background: rgba(var(--item-color), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-type-card:hover i {
    transform: scale(1.1);
}

.travel-card:hover .item-type-card {
    border-color: #cbd5e1;
}

/* Responsive Design for Travel Cards */
@media (max-width: 768px) {
    .travel-page-header {
        padding: 3rem 0 2rem 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .search-form-card {
        border-radius: 16px;
    }
    
    .route-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .route-title {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .departure-date {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        text-align: left;
    }
    
    .weight-info {
        text-align: left;
    }
    
    .traveler-rating-section {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .item-types-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .item-type-card {
        padding: 0.75rem;
        flex-direction: row;
        text-align: left;
    }
    
    .item-type-card i {
        margin-right: 0.75rem;
        margin-bottom: 0;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .travel-page-header {
        padding: 2rem 0 1.5rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .travel-header {
        padding-bottom: 0.75rem;
    }
    
    .weight-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .item-types-title {
        font-size: 0.9rem;
    }
    
    .search-form-card {
        border-radius: 12px;
    }
    
    .search-select {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-search {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===== PASSWORD FIELD IMPROVEMENTS ===== */
.input-group .btn.btn-outline-secondary {
    border-left: none !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    background: white !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.input-group .btn.btn-outline-secondary:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    border-color: #adb5bd !important;
}

.input-group .btn.btn-outline-secondary:focus {
    box-shadow: none !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

/* Specific targeting for password toggle button */
#togglePassword {
    border-left: none !important;
    border-top: 1px solid #dee2e6 !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    background: white !important;
    color: #6c757d !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
}

/* ===== REMEMBER ME CHECKBOX IMPROVEMENTS ===== */
.remember-me-container {
    display: flex !important;
    justify-content: flex-start !important;
}

.remember-me-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.remember-me-label:hover {
    border-color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

.remember-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 4px !important;
    background-color: white !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
}

.remember-checkbox:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.remember-checkbox:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

.remember-checkbox:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25) !important;
}

.remember-text {
    font-weight: 500 !important;
    color: #495057 !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease !important;
}

.remember-me-label:hover .remember-text {
    color: #2563eb !important;
}

.remember-checkbox:checked + .remember-text {
    color: #2563eb !important;
}

.remember-checkbox:checked ~ .remember-text {
    color: #2563eb !important;
}

/* ===== TRAVEL DETAILS PAGE THEME ===== */
.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

.modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

/* ===== FORM PAGE STYLING ===== */
.form-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 100%;
    padding: 2rem 0;
}

.form-container {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== PROFILE PAGE STYLING ===== */
.avatar-selection {
    margin-bottom: 2rem;
}

.avatar-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.avatar-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.avatar-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.avatar-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.avatar-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.avatar-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.2;
}

.rating-display {
    display: flex;
    gap: 2px;
}

.rating-display i {
    font-size: 1rem;
}

/* Profile form styling */
.profile-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.profile-form .form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Verification card styling */
.verification-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

/* Responsive avatar grid */
@media (max-width: 768px) {
    .avatar-option {
        padding: 1rem 0.5rem;
    }
    
    .avatar-icon {
        font-size: 2rem;
    }
    
    .avatar-name {
        font-size: 0.9rem;
    }
    
    .avatar-description {
        font-size: 0.8rem;
    }
}

/* ===== GENERAL CHECKBOX IMPROVEMENTS ===== */
.form-check {
    margin-bottom: 15px;
    padding: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    margin-right: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-check-input:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-check-label {
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.form-check-label:hover {
    border-color: var(--success-color);
    background: rgba(25, 135, 84, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.form-check-input:checked + .form-check-label {
    border-color: var(--success-color);
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.form-check-label i {
    font-size: 18px;
    margin-right: 8px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.form-check-input:checked + .form-check-label i {
    color: var(--success-color);
}

/* Terms and conditions checkbox styling */
#termsCheck + .form-check-label {
    padding: 15px 20px;
    border-radius: 12px;
  font-size: 14px;
    line-height: 1.5;
}

#termsCheck + .form-check-label i {
    font-size: 16px;
    margin-right: 10px;
}

/* Item type checkboxes specific styling */
#clothesCheck + .form-check-label,
#documentsCheck + .form-check-label,
#valuablesCheck + .form-check-label {
    min-height: 60px;
    justify-content: flex-start;
    text-align: left;
}

/* Responsive checkbox styling */
@media (max-width: 768px) {
    .form-check-label {
        padding: 10px 14px;
  font-size: 14px;
}

    .form-check-label i {
    font-size: 16px;
        margin-right: 6px;
    }
    
    .form-check-input {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    #clothesCheck + .form-check-label,
    #documentsCheck + .form-check-label,
    #valuablesCheck + .form-check-label {
        min-height: 50px;
    }
}

@media (max-width: 992px) {
    .form-check-label {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .form-check-label i {
        font-size: 17px;
        margin-right: 7px;
    }
}

/* ===== CITY AUTOCOMPLETE STYLING ===== */
.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--success-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    direction: ltr;
    text-align: left;
}

/* Ensure destination suggestions are hidden by default but can be shown */
#destinationSuggestions {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Show destination suggestions when active */
#destinationSuggestions.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 500;
    direction: ltr;
    text-align: left;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    font-weight: 600;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Position relative for input groups with suggestions */
.input-group {
  position: relative;
}

/* ===== TRANSPORTATION OPTION STYLING ===== */
.transport-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 120px;
}

.transport-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.transport-option.border-primary {
    border-color: #0d6efd !important;
    background-color: #f8f9fa !important;
}

.transport-option .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    gap: 0.75rem;
}

.transport-option .card-body > div {
    flex: 1;
}

.transport-option i {
    transition: color 0.3s ease;
}

.transport-option:hover i {
    color: #0d6efd !important;
}

.transport-option .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transport-option .card-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ===== MOBILE STEP FORM IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .step-content {
        min-height: 300px;
        padding: 1.5rem 0;
    }
    
    .step-content h5 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .step-content .form-control-lg {
        padding: 0.75rem 0.875rem;
        font-size: 16px !important; /* Prevent iOS zoom on input focus */
    }
    
    .step-content .form-check {
        padding: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    /* Make transportation options more compact on mobile */
    .transport-option {
        height: 100px;
    }
    
    .transport-option .card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .transport-option i {
        font-size: 1.5rem !important;
    }
    
    .transport-option .card-title {
        font-size: 0.9rem;
        margin-right: 0.25rem;
    }
    
    .transport-option .card-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .step-content {
        min-height: 250px;
        padding: 1rem 0;
    }
    
    .step-content h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .step-content .form-control-lg {
        padding: 0.7rem 0.8rem;
        font-size: 16px !important; /* Prevent iOS zoom on input focus */
    }
    
    .step-content .form-check {
        padding: 0.6rem;
        margin-bottom: 0.2rem;
    }
}

/* Profile Page Styling */
.profile-section {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-value {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #495057;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.edit-form {
    background-color: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rating-display {
    display: flex;
    align-items: center;
    flex-direction: row;
}

/* ===== RTL SUPPORT ===== */
/* Force Admin pages to always use LTR */
.admin-container,
.admin-container *,
.admin-navbar,
.admin-navbar *,
[data-admin="true"],
[data-admin="true"] * {
    direction: ltr !important;
    text-align: left !important;
}

/* Admin pages override - force English styling */
html.admin-page,
html.admin-page body,
body.admin-page {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Force navbar to always be LTR (left-to-right) regardless of page direction */
[dir="rtl"] .navbar,
[dir="rtl"] .navbar .container-fluid,
[dir="rtl"] .navbar-collapse {
    direction: ltr !important;
}

/* Desktop navbar: reverse order in RTL (right-to-left) */
@media (min-width: 992px) {
    [dir="rtl"] .navbar-nav {
        flex-direction: row-reverse !important;
    }
}

/* Mobile navbar: keep LTR order */
@media (max-width: 991.98px) {
    [dir="rtl"] .navbar-nav {
        flex-direction: column !important;
    }
}

/* Keep navbar margins working as LTR */
[dir="rtl"] .navbar .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .navbar .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* RTL margin adjustments for non-navbar elements */
[dir="rtl"]:not(.navbar):not(.navbar *) .me-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"]:not(.navbar):not(.navbar *) .ms-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3,
[dir="rtl"] .me-4,
[dir="rtl"] .me-5 {
    margin-left: var(--bs-spacer) !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3,
[dir="rtl"] .ms-4,
[dir="rtl"] .ms-5 {
    margin-right: var(--bs-spacer) !important;
    margin-left: 0 !important;
}

[dir="rtl"] .pe-1,
[dir="rtl"] .pe-2,
[dir="rtl"] .pe-3,
[dir="rtl"] .pe-4,
[dir="rtl"] .pe-5 {
    padding-left: var(--bs-spacer) !important;
    padding-right: 0 !important;
}

[dir="rtl"] .ps-1,
[dir="rtl"] .ps-2,
[dir="rtl"] .ps-3,
[dir="rtl"] .ps-4,
[dir="rtl"] .ps-5 {
    padding-right: var(--bs-spacer) !important;
    padding-left: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

/* Persian/Farsi font support - Using Vazirmatn (Google Fonts - reliable) */
/* Universal font application for all RTL elements */
html[dir="rtl"],
html[lang="fa-IR"],
html[dir="rtl"] *,
html[lang="fa-IR"] *,
body[dir="rtl"],
body[lang="fa-IR"],
body[dir="rtl"] *,
body[lang="fa-IR"] *,
[dir="rtl"],
[dir="rtl"] *,
[lang="fa-IR"],
[lang="fa-IR"] * {
    font-family: 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}


/* Ensure specific elements also use Persian font in RTL */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] div,
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] label,
[dir="rtl"] .btn,
[dir="rtl"] .form-control,
[dir="rtl"] .card,
[dir="rtl"] .card-title,
[dir="rtl"] .card-body,
[dir="rtl"] .card-text,
[dir="rtl"] .card-header,
[dir="rtl"] .navbar-brand,
[dir="rtl"] .nav-link,
[dir="rtl"] .dropdown-menu,
[dir="rtl"] .dropdown-item,
[dir="rtl"] .modal,
[dir="rtl"] .modal-title,
[dir="rtl"] .modal-body,
[dir="rtl"] .alert,
[dir="rtl"] .badge,
[dir="rtl"] .list-group,
[dir="rtl"] .list-group-item,
[dir="rtl"] .table,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .pagination,
[dir="rtl"] .hero-section,
[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .hero-content,
[dir="rtl"] .feature-card,
[dir="rtl"] .feature-title,
[dir="rtl"] .feature-description,
[dir="rtl"] .travel-card,
[dir="rtl"] .profile-form,
[dir="rtl"] .dashboard {
    font-family: 'Shabnam', 'Vazirmatn', 'Vazir', 'Tahoma', 'Arial', sans-serif !important;
}

/* Preserve Font Awesome font-family for icons - Must come after Persian font rules to override */
[dir="rtl"] .fa,
[dir="rtl"] .fas,
[dir="rtl"] .far,
[dir="rtl"] .fab,
[dir="rtl"] .fal,
[dir="rtl"] .fad,
[dir="rtl"] .fak,
[dir="rtl"] [class*="fa-"],
[dir="rtl"] [class^="fa-"],
[dir="rtl"] i[class*="fa"],
html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .far,
html[dir="rtl"] .fab,
html[dir="rtl"] i[class*="fa"],
body[dir="rtl"] .fa,
body[dir="rtl"] .fas,
body[dir="rtl"] .far,
body[dir="rtl"] .fab,
body[dir="rtl"] i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* Also preserve Font Awesome for elements with icon classes in specific contexts */
[dir="rtl"] .nav-link i[class*="fa"],
[dir="rtl"] .btn i[class*="fa"],
[dir="rtl"] a i[class*="fa"],
[dir="rtl"] button i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* LTR remains default */
[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.rating-display i {
    margin-right: 2px;
}

.profile-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.profile-form .form-label {
    color: #495057;
    font-weight: 600;
}

.verification-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Profile section hover effects */
.profile-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Edit button styling */
.btn-outline-primary.btn-sm {
    border-width: 1px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.btn-outline-primary.btn-sm:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .profile-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .edit-form {
        padding: 1rem;
    }
    
    .profile-value {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-outline-primary.btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Multi-step request form styles */
.item-type-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.item-type-card:hover {
    border-color: #5D8434;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 132, 52, 0.2);
}

.item-type-card.border-success {
    border-color: #5D8434 !important;
    background-color: rgba(93, 132, 52, 0.1) !important;
}

.step-content {
    min-height: 400px;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(135deg, #5D8434 0%, #86A91B 100%);
}

/* Request confirmation page styles */
.card-header.bg-success {
    background: linear-gradient(135deg, #5D8434 0%, #86A91B 100%) !important;
}

.bg-success {
    background-color: #5D8434 !important;
}

.text-success {
    color: #5D8434 !important;
}

.btn-success {
    background-color: #5D8434;
    border-color: #5D8434;
}

.btn-success:hover {
    background-color: #86A91B;
    border-color: #86A91B;
}

.btn-outline-success {
    color: #5D8434;
    border-color: #5D8434;
}

.btn-outline-success:hover {
    background-color: #5D8434;
    border-color: #5D8434;
}

/* Override col-md-4 width to remove fixed width constraint */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Payment Modal z-index fix - Ensure modal appears above backdrop */
.modal[id^="paymentModal_"] {
    z-index: 9999 !important;
    position: fixed !important;
}

.modal[id^="paymentModal_"].show {
    z-index: 9999 !important;
    display: block !important;
}

.modal[id^="paymentModal_"].fade.show {
    z-index: 9999 !important;
}

body .modal[id^="paymentModal_"] {
    z-index: 9999 !important;
}

body .modal-backdrop {
    z-index: 9998 !important;
}

body .modal-backdrop.show {
    z-index: 9998 !important;
    display: none ;
}

.modal[id^="paymentModal_"] .modal-dialog {
    z-index: 9999 !important;
    position: relative;
    margin: 1.75rem auto;
}

.modal[id^="paymentModal_"] .modal-content {
    z-index: 9999 !important;
    position: relative;
}

/* Ensure modal is above everything when shown */
body.modal-open .modal[id^="paymentModal_"] {
    z-index: 9999 !important;
}

body.modal-open .modal-backdrop {
    z-index: 9998 !important;
}