/* Adilet.kz Modern Minimal Design */

:root {
    /* Primary Dark Red Colors - Professional */
    --primary-color: #8B0000;
    --primary-dark: #6B0000;
    --primary-light: #A52A2A;
    --primary-hover: #730C0B;

    /* Accent Colors */
    --secondary-color: #FFD700;
    --secondary-dark: #FFC700;
    --accent-color: #8B0000;

    /* Text Colors - Modern Hierarchy */
    --text-dark: #343235;
    --text-gray: #6b7280;
    --text-light-gray: #9ca3af;
    --text-muted: #d1d5db;

    /* Background Colors - Clean */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    --bg-header: #730C0B;

    /* Border Colors - Subtle */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Modern Shadows - Elevation System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius - Modern Rounded */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Transitions - Smooth */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    position: relative;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Proxima Nova','Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
.header-main {
    background: var(--bg-header);
    position: relative;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
    z-index: 1000;
    overflow: visible;
}

.header-top {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.header-top .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}

.header-top .container > .d-flex {
    max-width: 100%;
    width: 100%;
    overflow: visible;
    flex-wrap: nowrap;
    position: relative;
}

.header-top .d-flex > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
}

.header-top .d-flex > div:last-child {
    flex: 0 0 auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1050;
    overflow: visible;
}

/* Secondary Navigation Bar */
.header-secondary {
    background: #5C0A0A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.navbar-secondary {
    width: 100%;
}

.nav-secondary-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-secondary-item {
    margin: 0;
}

.nav-secondary-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    display: inline-block;
    transition: all 0.2s ease;
    border-radius: 0;
}

.nav-secondary-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.nav-secondary-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* All Services Button */
.btn-all-services {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-all-services:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.btn-all-services.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Navigation links without background */
.btn-nav-link {
    background-color: transparent !important;
    font-weight: 500 !important;
}

.btn-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-nav-link.active {
    background-color: transparent !important;
    font-weight: 500 !important;
}

/* Hide "Register my firm" button on mobile */
@media (max-width: 768px) {
    a[href*="register/firm"],
    a[href*="register_firm"],
    .header-submenu a[href*="register/firm"],
    .header-submenu a[href*="register_firm"],
    .header-submenu-right a[href*="register/firm"],
    .header-submenu-right a[href*="register_firm"],
    .btn-all-services[href*="register/firm"],
    .btn-all-services[href*="register_firm"],
    .btn-nav-link[href*="register/firm"],
    .btn-nav-link[href*="register_firm"],
    .header-submenu a:has(.bi-plus-circle),
    .header-submenu-right a:has(.bi-plus-circle),
    .header-submenu .btn-all-services:has(.bi-plus-circle),
    .header-submenu-right .btn-all-services:has(.bi-plus-circle) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
}

/* Solve Situation Button */
.btn-solve-situation {
    background-color: #F2C93E !important;
    color: #343235 !important;
}

.btn-solve-situation:hover {
    background-color: #E5B82E !important;
    color: #343235 !important;
}

.btn-solve-situation.active {
    background-color: #F2C93E !important;
    color: #343235 !important;
    font-weight: 500 !important;
}

/* Services Dropdown */
.services-dropdown {
    position: relative;
}

.services-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 700px;
    max-width: 800px;
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 1060;
    overflow: hidden;
}

.services-dropdown-menu.show {
    display: block !important;
}

.services-dropdown-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.services-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-close-btn:hover {
    color: #000;
}

.services-dropdown-title-section {
    margin-bottom: 0.5rem;
}

.services-dropdown-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.services-search-wrapper {
    position: relative;
    width: 100%;
}

.services-search {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.services-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
    outline: none;
    background-color: white;
}

.services-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-size: 1rem;
    z-index: 0;
}

.services-dropdown-body {
    padding: 1.5rem 1.75rem;
    max-height: 500px;
    overflow-y: auto;
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.service-card {
    background: #f5f7fa;
    border: none;
    border-radius: 12px;
    padding: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    text-align: left;
}

.service-card:hover {
    background: #e8ecf1;
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    flex-shrink: 0;
}

.service-icon.bg-blue {
    background: transparent;
}

.service-icon.bg-green {
    background: transparent;
}

.service-icon.bg-orange {
    background: transparent;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

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

.service-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.service-description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
}

.service-card.hidden {
    display: none;
}

/* Scrollbar for services dropdown */
.services-dropdown-body::-webkit-scrollbar {
    width: 8px;
}

.services-dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.services-dropdown-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.services-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Services dropdown backdrop (disabled for dropdown mode) */
.services-dropdown-backdrop {
    display: none !important;
}

/* Header Control Buttons */
.btn-header-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-header-control:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.btn-header-control.btn-logout {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.logout-icon {
    font-size: 1.5em;
    line-height: 1;
}

/* Login/Register Combined Button */
.btn-login-register {
    background-color: #730C0B;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-login-register:hover {
    background-color: #730C0B;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-login-register:focus {
    background-color: #730C0B;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.btn-login-register a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Login link hover effect */
.btn-login-register a[data-bs-target="#loginModal"]:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.btn-login-register a[data-bs-target="#loginModal"]:focus {
    outline: none;
    color: rgba(255, 255, 255, 0.9);
}

/* Register link hover effect */
.btn-login-register a#registerDropdown:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.btn-login-register a#registerDropdown:focus {
    outline: none;
    color: rgba(255, 255, 255, 0.9);
}

/* Style dropdown menu for register */
.btn-login-register .dropdown-menu {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.btn-login-register .dropdown-menu .dropdown-item {
    color: #333;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.btn-login-register .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #730C0B;
}

.btn-login-register .dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #730C0B;
    outline: none;
}

.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 0;
}

.navbar-brand-logo:hover {
    opacity: 0.9;
}

/* Second Header Menu */
.header-submenu {
    background: #5C0A0A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: calc(100% + 100px);
    min-height: 50px;
    display: flex;
    align-items: center;
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
}

.header-submenu .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.nav-link-submenu {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.nav-link-submenu:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    border-radius: 8px;
}

.nav-link-submenu.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-radius: 8px;
}

.nav-link-submenu.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.header-submenu .dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.header-submenu .dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.header-submenu .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-register-firm {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
}

.btn-register-firm:hover {
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
}

/* Location Selector Dropdown - now uses btn-header-control class */

/* Header Top Dropdowns - General Styles */
.header-top .dropdown {
    position: relative !important;
    z-index: 1050;
    overflow: visible;
}

.header-top > .container > .d-flex > div:last-child {
    position: relative;
    z-index: 1050;
}

.header-top > .container > .d-flex > div:last-child .dropdown {
    position: relative !important;
    z-index: 1050;
}

/* All dropdown menus in header-top (except services dropdown) */
.header-top .dropdown-menu:not(.services-dropdown-menu) {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    min-width: 180px !important;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1051 !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: translate3d(0, 0, 0) !important;
    display: none;
}

.header-top .dropdown-menu:not(.services-dropdown-menu).show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* City dropdown specific */
#cityDropdown + .dropdown-menu,
.city-selector-dropdown .dropdown-menu {
    max-height: 50vh;
    min-width: 200px !important;
}

.header-top .dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.header-top .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.header-top .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Lawyers Dropdown Full Width */
.lawyers-dropdown-full {
    position: static;
}

.dropdown-menu-full {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 50vh;
    margin-top: 0.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    overflow-y: auto;
}

.specializations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    gap: 1.5rem;
}

.specialization-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    min-width: 200px;
}

.specialization-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding: 0;
    line-height: 1.2;
}

.specialization-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    align-items: flex-start;
}

.specialization-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.25rem 0;
    border-radius: 0;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.specialization-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive for specializations grid */
@media (max-width: 1200px) {
    .specializations-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
    }
}

@media (max-width: 768px) {
    .specializations-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .specializations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .specialization-group {
        min-width: 100%;
    }
}

/* Register Firm Page Styles */
.register-firm-page {
    min-height: 70vh;
}

.register-firm-info {
    padding: 2rem;
}

.register-firm-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.register-firm-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.register-firm-stats {
    margin-bottom: 3rem;
}

.stat-item {
    margin-bottom: 2.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.register-firm-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.register-firm-footer p {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

/* Make register-firm-info elements smaller on mobile */
@media (max-width: 768px) {
    .register-firm-info {
        padding: 1.5rem 1rem;
    }
    
    .register-firm-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .register-firm-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .register-firm-stats {
        margin-bottom: 2rem;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    .register-firm-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .register-firm-footer p {
        font-size: 0.9rem;
    }
}

.register-firm-form {
    padding: 2rem;
    background: var(--bg-white);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.firm-registration-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.firm-registration-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

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

.radio-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-group .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
}

.radio-group .form-check-label {
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.btn-submit-firm {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-submit-firm:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    color: white;
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.header-top .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

.header-top .navbar-nav .nav-item {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-top .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
}

.header-top .navbar-nav .nav-item {
    margin: 0;
}

.header-top .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.navbar {
    background: var(--bg-header) !important;
    box-shadow: none;
    padding: 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.navbar-brand:hover {
    color: white !important;
    opacity: 0.9;
}

.navbar-brand::before {
    content: "";
    display: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* Hide text when logo image is loaded */
.navbar-brand img.logo-img[src]:not([src=""]) {
    display: inline-block;
}

.navbar-brand img.logo-img[src]:not([src=""]) ~ .logo-text {
    display: none;
}

/* Show text as fallback when logo fails to load */
.navbar-brand img.logo-img[style*="display: none"] ~ .logo-text,
.navbar-brand:not(:has(img.logo-img[src])) .logo-text {
    display: inline;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    margin: 0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.nav-link-logo {
    display: flex;
    align-items: center;
}

.nav-link-logo:hover,
.nav-link-logo:focus,
.nav-link-logo:active,
.nav-link-logo.active {
    background-color: transparent !important;
    color: white !important;
}

.navbar-logo-img {
    height: 28px;
    width: auto;
    display: block;
    vertical-align: middle;
    pointer-events: none;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-radius: 8px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.bg-success {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

.border-success {
    border-color: var(--primary-color) !important;
}

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

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 500;
}

.btn-warning:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--text-dark);
}

/* Interest buttons */
.btn-interest {
    --bs-btn-color: #1f1f1f;
    --bs-btn-bg: #F2C93E;
    --bs-btn-border-color: #F2C93E;
    --bs-btn-hover-color: #1f1f1f;
    --bs-btn-hover-bg: #e5b924;
    --bs-btn-hover-border-color: #e5b924;
    --bs-btn-focus-shadow-rgb: 242, 201, 62;
    --bs-btn-active-color: #1f1f1f;
    --bs-btn-active-bg: #ddb124;
    --bs-btn-active-border-color: #ddb124;
    --bs-btn-disabled-color: #1f1f1f;
    --bs-btn-disabled-bg: #F2C93E;
    --bs-btn-disabled-border-color: #F2C93E;
    color: #1f1f1f;
    background-color: #F2C93E;
    border-color: #F2C93E;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Language Switcher */
.language-switcher {
    position: relative !important;
    z-index: 1050;
    overflow: visible;
}

.btn-language-switcher {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn-language-switcher:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-language-switcher:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.btn-language-switcher i {
    font-size: 1.125rem;
}

.language-dropdown-menu {
    min-width: 160px;
    margin-right: 1rem;
    margin-left: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.language-dropdown-menu li {
    padding: 0.25rem 0.5rem;
}

.language-dropdown-menu li:hover {
    padding: 0.25rem 0.5rem;
}

.language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 0.9375rem;
    color: #374151;
}

.language-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.language-item.active {
    background: #fee2e2;
    color: #8b0000;
    font-weight: 500;
}

.language-label {
    flex: 1;
}

.language-check {
    color: #8b0000;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.btn-language-dropdown {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    min-width: auto;
    height: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-language-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Location selector hover handled by .btn-header-control:hover */

.btn-language-dropdown:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-language-dropdown i {
    font-size: 1.2rem;
}

.language-switcher .dropdown-menu {
    min-width: 180px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    margin-top: 0.5rem !important;
    padding: 0.75rem !important;
    z-index: 1052 !important;
    position: absolute !important;
    overflow: visible;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: translate3d(0, 0, 0) !important;
    display: none;
}

.language-switcher .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure dropdown is clickable */
.language-switcher .dropdown-menu,
.language-switcher .dropdown-menu * {
    pointer-events: auto !important;
}

.language-switcher .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--text-dark);
}

.language-switcher .dropdown-item.active {
    background-color: #f0f0f0;
    color: var(--primary-color);
    font-weight: 600;
}

.language-switcher .dropdown-item.active i {
    color: var(--primary-color);
}

.language-switcher .language-form {
    margin: 0;
    padding: 0;
}

.language-switcher .language-form button {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 0;
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
}

/* City Selector Dropdown - uses header-top .dropdown-menu styles */
.city-selector-dropdown {
    position: relative !important;
    z-index: 1050;
}

.city-selector-dropdown .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.city-selector-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--text-dark);
}

.city-selector-dropdown .dropdown-item.active {
    background-color: #f0f0f0;
    color: var(--primary-color);
    font-weight: 600;
}

.city-selector-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border: 1px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

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

.card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--bg-header);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 0;
    position: relative;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

/* Header Search Section */
.header-search-section {
    background: var(--bg-header);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.search-input-wrapper::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    top: 50%;
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-gray);
}

.search-btn {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
}

.search-btn:hover {
    background: var(--secondary-dark);
}

.location-selector {
    color: white;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    cursor: pointer;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.location-selector option {
    background: var(--bg-header);
    color: white;
}

/* Specialty Listings - Design Tokens */
:root {
    /* Specialty Component Design Tokens */
    --specialty-letter-size: 3.5rem;
    --specialty-letter-weight: 700;
    --specialty-letter-color: #730C0B; /* Dark red */
    --specialty-divider-width: 2px;
    --specialty-divider-color: #D1D9E4; /* Light gray */
    --specialty-divider-opacity: 0.5;
    --specialty-name-size: 1.1rem;
    --specialty-name-weight: 600;
    --specialty-name-color: #1f2937; /* Near-black */
    --specialty-count-size: 1rem;
    --specialty-count-weight: 700;
    --specialty-count-color: #8B0000; /* Dark red */
    --specialty-subtopic-size: 0.9rem;
    --specialty-subtopic-color: #8590A2; /* Light gray */
    --specialty-spacing-xs: 0.45rem; /* 12px */
    --specialty-spacing-sm: 1rem; /* 16px */
    --specialty-spacing-md: 1.5rem; /* 24px */
    --specialty-item-gap: 2rem;
}

/* Specialty Section Container */
.specialty-section {
    padding: 3rem 0;
}

.specialty-title {
    font-size: 1.625rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    padding-bottom: 2rem;
}

.specialty-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .specialty-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .specialty-columns {
        grid-template-columns: 1fr;
    }
}

/* Letter Group Container - Groups all specialties under one letter */
.specialty-letter-group {
    margin-bottom: var(--specialty-item-gap);
}

/* Specialty Group - Horizontal Block Layout */
.specialty-group {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

/* Large Letter - Left Section, Aligned to Top */
.specialty-letter {
    font-size: 44px;
    font-weight: var(--specialty-letter-weight);
    color: #730C0B;
    line-height: 1;
    text-align: left;
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    padding-right: var(--specialty-spacing-md);
    flex-shrink: 0;
    width: 60px; /* Fixed width to align dividers across columns */
    box-sizing: border-box;
}

/* Vertical Divider - Full Height of Letter Group */
.specialty-divider {
    width: var(--specialty-divider-width);
    background-color: var(--specialty-divider-color);
    opacity: var(--specialty-divider-opacity);
    flex-shrink: 0;
    margin-right: var(--specialty-spacing-md);
    align-self: stretch;
    min-height: 100%;
}

/* Content Section - Right Side, Contains Multiple Specialty Items */
.specialty-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows flex item to shrink below content size */
    justify-content: flex-start;
}

/* Individual Specialty Item within Content Column */
.specialty-content .specialty-item {
    margin-bottom: var(--specialty-spacing-md);
}

.specialty-content .specialty-item:last-child {
    margin-bottom: 0;
}

/* Header with Name and Count */
.specialty-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--specialty-spacing-xs);
    margin-bottom: var(--specialty-spacing-xs);
}

/* Ensure specialty items within content have proper spacing */
.specialty-content .specialty-item {
    margin-bottom: var(--specialty-spacing-md);
}

.specialty-content .specialty-item:last-child {
    margin-bottom: 0;
}

/* Specialty Name - Bold, Near-Black */
.specialty-name {
    font-size: var(--specialty-name-size);
    font-weight: var(--specialty-name-weight);
    color: var(--specialty-name-color);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1.4;
}

.specialty-name:hover {
    color: var(--specialty-letter-color);
}

/* Count - Dark Red, in Parentheses */
.specialty-count {
    font-size: var(--specialty-count-size);
    font-weight: var(--specialty-count-weight);
    color: var(--specialty-count-color);
    white-space: nowrap;
}

/* Sub-items List - Light Gray Bullet Points */
.specialty-subtopics {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 0;
}

.specialty-subtopics li {
    color: var(--specialty-subtopic-color);
    font-size: var(--specialty-subtopic-size);
    margin-bottom: var(--specialty-spacing-xs);
    position: relative;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --specialty-letter-size: 3rem;
        --specialty-name-size: 1.125rem;
        --specialty-spacing-md: 1rem;
    }
    
    .specialty-group {
        gap: var(--specialty-spacing-sm);
    }
    
    .specialty-letter {
        padding-right: var(--specialty-spacing-sm);
        width: 50px; /* Fixed width for alignment on tablets */
    }
    
    .specialty-divider {
        margin-right: var(--specialty-spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --specialty-letter-size: 2.5rem;
        --specialty-name-size: 1rem;
        --specialty-spacing-md: 0.75rem;
        --specialty-spacing-sm: 0.75rem;
    }
    
    .specialty-letter {
        width: 45px; /* Fixed width for alignment on mobile */
    }
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    border-radius: 1rem;
}

.feature-card:hover {
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Tariff Cards */
.tariff-card {
    border: 2px solid var(--border-color);
    height: 100%;
}

.tariff-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.tariff-card.vip {
    border-color: var(--secondary-color);
    background: linear-gradient(to bottom, #fffbf0 0%, #ffffff 100%);
}

.tariff-card.vip:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.tariff-card .card-header {
    background: var(--secondary-color);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

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

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

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* List Groups */
.list-group-item {
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.list-group-item:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.list-group-item-action {
    cursor: pointer;
}

/* Footer */
.footer {
    background: white;
    color: var(--text-dark);
    padding: 3rem 0 1.5rem;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-dark);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-logo {
    margin-bottom: 1rem;
    display: block;
}

.footer-logo img {
    height: 26px;
    width: auto;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}


.fade-in {
}

/* Scenario Categories Grid */
/* New Scenario Categories Design */
.scenario-help-page {
    padding: 1rem 0;
}

.help-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.scenario-categories-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.scenario-category-card-new {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.scenario-category-card-new:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.category-title-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.category-scenarios-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.scenario-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid transparent;
}

.scenario-item:hover {
    background: #fff5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.scenario-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
}

.scenario-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.scenario-item:hover i {
}

.category-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.more-scenarios-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.more-scenarios-link:hover {
    color: #6b0000;
    text-decoration: underline;
}

/* Lawyer Help Card */
.lawyer-help-card {
    background: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
}

.lawyer-help-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.lawyer-help-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lawyer-help-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.lawyer-help-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 1rem;
    flex: 1;
}

.btn-lawyer-help {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    display: block;
    margin-top: auto;
}

.btn-lawyer-help:hover {
    background: #6b0000;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .scenario-categories-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scenario-categories-grid-new {
        grid-template-columns: 1fr;
    }
    
    .help-title {
        font-size: 2rem;
    }
}

/* Old styles kept for backward compatibility */
.scenario-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .scenario-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .scenario-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .scenario-categories-grid {
        grid-template-columns: 1fr;
    }
}

.scenario-category-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: left;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.scenario-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0;
    padding-left: 0;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.count-circle {
    background: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.count-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-select-category {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.btn-select-category:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* Lawyer Detail Page */
.lawyer-profile-header {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.lawyer-photo-detail {
    position: relative;
    width: 200px;
}

.lawyer-photo-detail img {
    width: 200px;
    height: 270px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.lawyer-photo-placeholder {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
}

.rating-display {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.rating-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
}

.lawyer-name-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.specializations-list {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.lawyer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.pricing-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.price-line {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.price-line strong {
    color: var(--primary-color);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.share-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.share-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
}

.share-icon.facebook {
    background: #1877f2;
}

.share-icon.twitter {
    background: #1da1f2;
}

.share-icon.whatsapp {
    background: #25d366;
}

.share-icon.telegram {
    background: #0088cc;
}

.share-icon:hover {
    color: white;
}

.lawyer-about-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.lawyer-contact-sidebar-detail {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    position: sticky;
    display: flex;
    flex-direction: column;
}

.contact-item-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-item-detail i {
    color: var(--primary-color);
    width: 24px;
    font-size: 1.1rem;
}

.contact-item-detail a {
    color: var(--text-dark);
    text-decoration: none;
}

.contact-item-detail a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.nav-tabs .nav-link {
    color: var(--text-gray);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #e0e0e0;
}

/* Chat Styles */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.message-bubble {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.message-sent .message-bubble {
    margin-left: auto;
}

.message-received .message-bubble {
    margin-right: auto;
}

/* Lawyer Card Listing */
.lawyer-card-listing {
    background: #f5f5f5;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.lawyer-card-listing:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lawyer-photo-container {
    position: relative;
    margin-right: 1.5rem;
}

.lawyer-photo-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    background: white;
}

.rating-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    text-align: center;
}

.rating-score {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.rating-count {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.lawyer-card-content {
    padding: 0;
}

.lawyer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.badge-top {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.specializations {
    font-size: 14px;
    color: #8590A2;
    line-height: 1.4;
}

.lawyer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.pricing-info {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.price-item {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.price-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.lawyer-contact-sidebar {
    min-width: 200px;
    padding-left: 1.5rem;
    border-left: 1px solid #e0e0e0;
}

.btn-show-contacts {
    width: 100%;
    margin-bottom: 1rem;
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-show-contacts:hover {
    background: var(--primary-dark);
}

.contact-info {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.contact-item {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.filter-bar .btn {
    white-space: nowrap;
}

/* Lawyers Catalog Page Styles */
.filters-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.filters-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
}

.filter-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-reset-filters {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-reset-filters:hover {
    background: var(--primary-dark);
}

.btn-reset-filters i {
    font-size: 0.9rem;
}

/* Submenu Navigation */
.lawyers-submenu {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.submenu-item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    position: relative;
}

.submenu-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.submenu-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Catalog Title and Intro */
.lawyers-catalog-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.lawyers-catalog-intro {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Lawyer Catalog Cards - Compact Design with Header Colors */
.lawyers-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lawyer-card-catalog {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.lawyer-card-catalog:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.lawyer-card-content-wrapper {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 2rem;
    align-items: start;
}

/* Left Section: Photo & Rating */
.lawyer-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lawyer-photo-square {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e5e5;
    border: none;
}

.lawyer-photo-placeholder {
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: none;
}

.lawyer-photo-placeholder i {
    font-size: 3rem;
}

.lawyer-rating-display {
    text-align: center;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.reviews-count {
    font-size: 0.875rem;
    color: #8B0000;
}

/* Legal Firm Card Styles - Clinic Style Design */
.firms-catalog-clinic-style {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.firm-card-clinic-style {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.firm-card-clinic-style:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.firm-card-content-clinic {
    display: grid;
    grid-template-columns: 150px 1fr 250px;
    gap: 2rem;
    align-items: start;
}

/* Left Section: Logo, Rating, Reviews */
.firm-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.firm-logo-clinic {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.firm-logo-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    background: white;
}

.firm-logo-placeholder-clinic {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.firm-logo-placeholder-clinic i {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.4;
}

.firm-rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.firm-rating-value-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.firm-reviews-link {
    font-size: 0.875rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.firm-reviews-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Middle Section: Name and Description */
.firm-info-clinic {
    flex: 1;
    min-width: 0;
}

.firm-name-clinic {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.firm-description-clinic {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Right Section: Address and Working Hours */
.firm-right-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.firm-address-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.firm-address-info i {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.firm-working-hours {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.firm-working-hours i {
    color: #e91e63;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.working-hours-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.opening-status {
    color: #495057;
}

.working-hours-list {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.working-hours-list div {
    padding: 0.25rem 0;
}

/* Actions Section */
.firm-actions-clinic {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.firm-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.btn-call-clinic {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
    width: 100%;
}

.btn-call-clinic:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.btn-lawyers-clinic,
.btn-website-clinic {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: 100%;
}

.btn-lawyers-clinic:hover,
.btn-website-clinic:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-call-clinic i,
.btn-lawyers-clinic i,
.btn-website-clinic i {
    font-size: 1rem;
}

.empty-state-clinic {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-state-clinic i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-clinic p {
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 992px) {
    .firm-card-content-clinic {
        grid-template-columns: 120px 1fr 200px;
        gap: 1.5rem;
    }
    
    .firm-logo-image,
    .firm-logo-placeholder-clinic {
        width: 100px;
        height: 100px;
    }
    
    .firm-rating-value-large {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .firm-card-content-clinic {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .firm-left-section {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
    }
    
    .firm-logo-clinic {
        justify-content: flex-start;
    }
    
    .firm-rating-section {
        align-items: flex-start;
    }
    
    .firm-right-section {
        margin-top: 0.5rem;
    }
}

.lawyer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.badge-rating,
.badge-reviews {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

.badge-rating {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.badge-rating i {
    color: #ffc107;
    font-size: 0.875rem;
}

.badge-reviews {
    background: #e7f3ff;
    border-color: #0d6efd;
    color: #084298;
}

.badge-reviews i {
    color: #0d6efd;
    font-size: 0.875rem;
}

/* Review Section */
.reviews-section {
    padding: 1.5rem 0;
}

.review-form-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rating-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-options .form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-options .form-check-modern input[type="radio"] {
    width: auto;
    margin: 0;
}

.reviews-list {
    margin-top: 2rem;
}

.review-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.review-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.review-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.review-rating i.bi-star {
    color: #dee2e6;
}

.review-rating span {
    color: #6c757d;
    font-size: 0.875rem;
}

.review-comment {
    color: #495057;
    line-height: 1.6;
}

.review-document {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.required-field {
    color: #dc3545;
    margin-left: 0.25rem;
}

.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Middle Section: Main Info */
.lawyer-info-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lawyer-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.lawyer-name-catalog {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.badge-top {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lawyer-specializations-list {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.lawyer-experience {
    color: #000;
    font-size: 0.9rem;
}

.lawyer-availability {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.5;
}

.lawyer-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pricing-item {
    color: #000;
    font-size: 0.9rem;
}

.price-value {
    color: #8B0000;
    font-weight: 600;
}

/* Right Section: Action & Contact */
.lawyer-action-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.btn-profile {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-profile:hover {
    background: #6b0000;
    color: white;
    text-decoration: none;
}

.lawyer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    color: #000;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive - Compact Cards */
@media (max-width: 991px) {
    .filters-card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .lawyer-card-catalog {
        padding: 1.25rem;
    }
    
    .lawyer-card-content-wrapper {
        grid-template-columns: 120px 1fr 180px;
        gap: 1.5rem;
    }
    
    .lawyer-photo-square {
        width: 100px;
        height: 100px;
    }
    
    .rating-value {
        font-size: 1.75rem;
    }
    
    .lawyer-name-catalog {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .lawyer-card-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lawyer-photo-section {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .lawyer-photo-square {
        width: 100px;
        height: 100px;
    }
    
    .lawyer-rating-display {
        text-align: left;
        margin-left: 1rem;
    }
    
    .lawyer-action-section {
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .lawyer-card-catalog {
        padding: 1rem;
    }
    
    .lawyer-card-content-wrapper {
        gap: 1rem;
    }
    
    .lawyer-name-catalog {
        font-size: 1.1rem;
    }
    
    .lawyer-photo-square {
        width: 80px;
        height: 80px;
    }
    
    .rating-value {
        font-size: 1.5rem;
    }
}

.lawyer-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

/* Ensure breadcrumb and content have same alignment */
main {
    width: 100%;
    max-width: 100%;
}

main .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
}

.breadcrumb {
    padding-left: 15px;
    padding-right: 15px;
}

main .container .row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: calc(100% + 30px);
    overflow-x: hidden;
    box-sizing: border-box;
}

main .container .row > [class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    word-wrap: break-word;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-gray);
}

/* Step Indicator - Horizontal (for scenario pages) */
.step-indicator-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem;
    width: 100%;
}

.step-indicator-horizontal .step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.375rem !important;
    min-width: 140px !important;
    flex: 0 0 auto;
}

.step-indicator-horizontal .step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.step-indicator-horizontal .step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #730C0B, #a01513);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.step-indicator-horizontal .step.active .step-number {
    background: linear-gradient(135deg, #730C0B 0%, #a01513 100%);
    color: white;
    border-color: #730C0B;
    box-shadow: 0 6px 20px rgba(115, 12, 11, 0.4);
    transform: scale(1.05);
}

.step-indicator-horizontal .step.active .step-number::before {
    opacity: 0.3;
}

.step-indicator-horizontal .step.completed .step-number {
    background: #730C0B;
    color: white;
    border-color: #730C0B;
}

.step-indicator-horizontal .step-label {
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    font-size: 0.8125rem;
}

.step-indicator-horizontal .step.active .step-label {
    color: #730C0B;
    font-weight: 600;
}

.step-indicator-horizontal .step.completed .step-label {
    color: #374151;
}

.step-arrow-horizontal {
    font-size: 1.75rem;
    color: #d1d5db;
    font-weight: 300;
    margin-top: 0;
    align-self: center;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.step.active ~ .step-arrow-horizontal,
.step-arrow-horizontal:has(+ .step.active) {
    color: #730C0B;
}

/* Scenario Page Styles */
.scenario-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.scenario-step-header {
    background: #730C0B;
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
}

.scenario-step-header h5 {
    color: white;
    margin: 0;
    font-size: 1.125rem;
}

.scenario-step-header i {
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

/* Responsive adjustments for step indicators */
@media (max-width: 768px) {
    .step-indicator-horizontal {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    
    .step-indicator-horizontal .step {
        min-width: 120px !important;
        flex: 0 0 auto !important;
    }
    
    .step-arrow-horizontal {
        font-size: 1.25rem;
        align-self: center !important;
    }
    
    .step-indicator-vertical {
        gap: 0.5rem;
    }
    
    .step-arrow-vertical {
        font-size: 1.5rem;
        margin: 0.25rem 0;
    }
    
    .document-order-title {
        font-size: 2rem;
    }
    
    .document-order-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .scenario-title {
        font-size: 1.75rem;
    }
    
    .language-checkboxes {
        flex-wrap: wrap;
    }
}

/* Document Order Page Styles - Compact Design */
.document-order-header-compact {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid #730C0B;
}

.document-order-title-compact {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

.document-order-intro-compact {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.process-steps-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-compact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

.step-compact.active {
    color: #730C0B;
    font-weight: 600;
}

.step-number-compact {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-compact.active .step-number-compact {
    background: #730C0B;
    color: white;
}

.step-separator-compact {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0 0.25rem;
}

.process-steps {
    margin: 0.75rem 0 1rem;
    display: flex;
    justify-content: center;
}

.step-indicator-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* General step styles - can be overridden by specific selectors */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.375rem;
    border: 3px solid #e5e7eb;
}

.step.active .step-number {
    background: #730C0B;
    color: white;
    border-color: #730C0B;
    box-shadow: 0 4px 12px rgba(115, 12, 11, 0.3);
}

.step-label {
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    font-size: 0.95rem;
}

.step.active .step-label {
    color: #730C0B;
    font-weight: 600;
}

.step-arrow-vertical {
    font-size: 1.75rem;
    color: #d1d5db;
    font-weight: 300;
    line-height: 1;
    margin: 0.25rem 0;
}

/* Compact Category Cards */
.document-category-section-compact {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.document-categories-compact {
    margin-top: 0.5rem;
}

.document-category-card-compact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
    text-align: left;
}

.document-category-card-compact:hover {
    border-color: #730C0B;
    background: #fff5f5;
}

.document-category-card-compact:has(input:checked) {
    border-color: #730C0B;
    background: #fff5f5;
    box-shadow: 0 2px 8px rgba(115, 12, 11, 0.15);
}

.document-category-radio {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.document-category-radio:checked {
    border-color: #730C0B;
    background: white;
}

.document-category-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #730C0B;
}

.document-category-radio:hover {
    border-color: #730C0B;
}

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

.category-title-compact {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
    display: block;
    line-height: 1.4;
}

.document-category-card-compact:has(input:checked) .category-title-compact {
    color: #730C0B;
}

.category-description-compact {
    font-weight: 400;
    font-size: 0.8125rem;
    color: #6b7280;
    display: block;
    line-height: 1.5;
}

.form-label-compact {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    display: block;
}

/* Compact File Upload */
.file-upload-wrapper-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1.5px dashed #d1d5db;
}

.file-upload-btn-compact {
    white-space: nowrap;
    border: 1.5px solid #730C0B;
    color: #730C0B;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.file-upload-btn-compact:hover {
    background: #730C0B;
    color: white;
}

.file-name-compact {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Compact Cost Options */
.cost-options-compact {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.cost-options-compact .form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #d1d5db;
    cursor: pointer;
    margin-top: 0.25rem;
}

.cost-options-compact .form-check-input:checked {
    background-color: #730C0B;
    border-color: #730C0B;
}

.cost-options-compact .form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-size: 0.8125rem;
    margin-left: 0.375rem;
}

.cost-amount-input-compact {
    display: inline-flex;
    align-items: center;
    margin-top: 0.375rem;
    gap: 0.25rem;
}

.cost-amount-input-compact input {
    width: 120px;
    padding: 0.375rem 0.5rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.cost-amount-input-compact input:focus {
    outline: none;
    border-color: #730C0B;
    box-shadow: 0 0 0 2px rgba(115, 12, 11, 0.1);
}

/* Compact User Info */
.user-info-display-compact {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.8125rem;
}

.user-info-display-compact i {
    color: #730C0B;
    font-size: 1.125rem;
}

/* Compact Form Inputs */
#documentOrderForm .form-control,
#documentOrderForm select,
#documentOrderForm textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    background: white;
}

#documentOrderForm .form-control:focus,
#documentOrderForm select:focus,
#documentOrderForm textarea:focus {
    outline: none;
    border-color: #730C0B;
    box-shadow: 0 0 0 2px rgba(115, 12, 11, 0.1);
    background: white;
}

#documentOrderForm textarea {
    min-height: 60px;
    resize: vertical;
}

/* Compact Benefits Sidebar */
.benefits-sidebar-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
}

.benefits-title-compact {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
}

.benefits-title-compact i {
    color: #730C0B;
}

.benefit-item-compact {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.625rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    font-size: 0.8125rem;
}

.benefit-item-compact:last-child {
    margin-bottom: 0;
}

.benefit-icon-compact {
    color: #730C0B;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefit-item-compact strong {
    color: #1f2937;
    display: block;
    margin-bottom: 0.125rem;
}

/* Compact Form Footer */
.form-footer-compact {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 0.75rem;
}

.terms-text-compact {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.terms-text-compact a {
    color: #730C0B;
    text-decoration: none;
    font-weight: 600;
}

.terms-text-compact a:hover {
    text-decoration: underline;
}

.btn-compact {
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#documentOrderForm .btn-success {
    background: linear-gradient(135deg, #730C0B 0%, #a01513 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(115, 12, 11, 0.3);
}

#documentOrderForm .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 12, 11, 0.4);
}

/* Responsive */
@media (max-width: 991px) {
    .benefits-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .step-indicator {
        gap: 1rem;
    }
    
    .step-arrow {
        display: none;
    }
}

/* Chat Styles - New Design */
.secure-deal-banner {
    background: #ffc107;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.secure-deal-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.secure-deal-info i {
    font-size: 1.5rem;
    color: #fff;
}

.secure-deal-text {
    display: flex;
    flex-direction: column;
    color: #000;
}

.secure-deal-text strong {
    font-size: 1rem;
    font-weight: 600;
}

.secure-deal-text small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.secure-deal-steps {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

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

.secure-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.secure-step-text {
    font-size: 0.85rem;
    color: #000;
    max-width: 150px;
    line-height: 1.3;
}

.chat-container {
    min-height: calc(100vh - 200px);
    background: #fff;
}

.chat-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 0;
}


.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
}

.lawyer-profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lawyer-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.lawyer-avatar img,
.lawyer-avatar i {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 80px;
    color: #ccc;
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #28a745;
    border: 3px solid white;
}

.lawyer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.lawyer-info {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lawyer-last-seen {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.service-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.service-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: white;
    border: none;
    border-right: 1px solid #000;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-transform: uppercase;
}

.service-tab:last-child {
    border-right: none;
}

.service-tab:hover {
    background: #f8f9fa;
}

.service-tab.active {
    background: #28a745;
    color: white;
}

.service-buttons {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-buttons-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.btn-service {
    width: 100%;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-consultation,
.btn-document {
    background: #28a745;
    color: white;
}

.btn-consultation:hover,
.btn-document:hover {
    background: #218838;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.warning-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.warning-icon {
    flex-shrink: 0;
    color: #2196F3;
    font-size: 1.5rem;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.warning-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.warning-text:last-child {
    margin-bottom: 0;
}

.warning-text .highlight {
    background: #ffc107;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    background: white;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f9fafb;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 1.5rem;
    display: flex;
}

.message-sent {
    justify-content: flex-end;
}

.message-received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-sent .message-content {
    background: #e3f2fd;
}

.message-text {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.message-file {
    margin-top: 0.5rem;
}

.message-file a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.message-file a:hover {
    text-decoration: underline;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-align: right;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-gray);
    width: 100%;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-input-area {
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    background: white;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.chat-input-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-action-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.chat-action-btn:hover {
    color: var(--primary-color);
}

.chat-form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-send {
    background: #e0e0e0;
    color: var(--text-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
}

.btn-send:hover {
    background: #d0d0d0;
}

.file-attach-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.file-attach-label:hover {
    color: var(--primary-color);
}

/* Responsive Chat */
@media (max-width: 991px) {
    .chat-sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .chat-main {
        height: auto;
        min-height: 500px;
    }
    
    .cabinet-content-section .chat-sidebar {
        height: auto;
        max-height: 300px;
    }
    
    .cabinet-content-section .chat-main {
        height: auto;
        min-height: 500px;
    }
    
    .secure-deal-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-tabs {
        flex-wrap: wrap;
    }
}

/* Scenario List Page */
.scenario-list-page {
    padding: 2rem 0;
}

.scenario-list-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scenario-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.scenario-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.scenario-card-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.scenario-card-content {
    flex: 1;
    padding-right: 1rem;
}

.scenario-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.scenario-card-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.scenario-card-arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.scenario-card:hover .scenario-card-arrow {
}

/* Lawyer Help Card in List */
.lawyer-help-card-list {
    background: #2c2c2c;
    border-color: #2c2c2c;
}

.lawyer-help-card-list:hover {
    border-color: #2c2c2c;
}

.lawyer-help-content-list {
    padding: 1.5rem;
    color: white;
}

.lawyer-help-title-list {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.lawyer-help-description-list {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

/* Ask Lawyer Section */
.ask-lawyer-section {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn-ask-lawyer {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.btn-ask-lawyer:hover {
    background: #6b0000;
    color: white;
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-ask-lawyer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-ask-lawyer-icon {
    font-size: 2rem;
    color: white;
}

.btn-ask-lawyer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-ask-lawyer-main {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: block;
}

.btn-ask-lawyer-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Scenario List */
@media (max-width: 1200px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-list-title {
        font-size: 1.75rem;
    }
    
    .ask-lawyer-section {
        justify-content: center;
    }
    
    .btn-ask-lawyer {
        width: 100%;
        justify-content: center;
    }
}

/* Modern Auth Components */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.auth-wrapper {
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.auth-wrapper-large {
    max-width: 900px;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 3rem;
    border: 1px solid #f0f0f0;
    max-width: 100%;
}

.auth-card-large {
    padding: 3rem 4rem;
    max-width: 1000px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #730C0B;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.auth-form {
    margin: 0 auto 1.5rem;
    width: 30%;
    max-width: 600px;
}
.docorder-form {
    margin: 0 auto 1.5rem;
}

.auth-form-lawyer {
    margin-bottom: 1.5rem;
}

.auth-form.signup-client-form {
    margin-left: auto;
    margin-right: auto;
}

.form-group-modern {
    margin-bottom: 2.5rem;
}

.form-group-modern user {
    margin-bottom: 1.8rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.form-label-modern i {
    color: #730C0B;
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.form-control-modern,
.form-group-modern input[type="text"],
.form-group-modern input[type="email"],
.form-group-modern input[type="password"],
.form-group-modern input[type="tel"],
.form-group-modern input[type="number"],
.form-group-modern textarea,
.form-group-modern select,
.form-group-modern input[type="file"],
.auth-form .form-control,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="number"],
.auth-form textarea,
.auth-form select,
.auth-form input[type="file"] {
    width: 100%;
    padding: 0.275rem 0.55rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: #fafafa;
    color: #1f2937;
    transition: all 0.2s ease;
    min-height: 20px;
    font-weight: 400;
}

.form-control-modern::placeholder,
.form-group-modern input::placeholder,
.form-group-modern textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-group-modern textarea {
    padding: 0.875rem 1.25rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group-modern select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control-modern:focus,
.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus,
.auth-form .form-control:focus,
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: #730C0B;
    box-shadow: 0 0 0 4px rgba(115, 12, 11, 0.08);
    background-color: #fff;
}

.form-control-modern:hover,
.form-group-modern input:hover,
.form-group-modern textarea:hover,
.form-group-modern select:hover,
.auth-form .form-control:hover,
.auth-form input:hover,
.auth-form textarea:hover,
.auth-form select:hover {
    border-color: #d1d5db;
    background-color: #fff;
}


.form-help-text {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.required-field {
    color: #dc3545;
    font-weight: 600;
    margin-left: 0.25rem;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: "⚠";
    font-size: 0.9rem;
}

.btn-auth-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #730C0B 0%, #8B0E0D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    margin-top: 2rem;
    min-height: 52px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(115, 12, 11, 0.2);
    transition: all 0.2s ease;
}

.forgot-password-page .btn-auth-primary {
    padding: 0.75rem 1rem;
    margin-top: 1.25rem;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #8B0E0D 0%, #730C0B 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(115, 12, 11, 0.3);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary i {
    font-size: 1.1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.auth-link {
    color: #730C0B;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background-color: #fee;
    color: #c33;
}

.alert-modern i {
    font-size: 1.25rem;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-section .row.g-3:last-child {
    margin-bottom: 0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #730C0B;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid #730C0B;
    line-height: 1.3;
}

.form-section-title i {
    font-size: 1.625rem;
}

.form-check-modern {
    display: flex;
    align-items: center;
    padding: 0.35rem;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-modern:hover {
    background: #f5f5f5;
    border-color: #730C0B;
}

.form-check-modern input[type="checkbox"],
.auth-form .form-check-input {
    margin-right: 0.875rem;
    width: 1.375rem;
    height: 1.375rem;
    cursor: pointer;
    accent-color: #730C0B;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 4px;
}

.form-check-modern input[type="checkbox"]:checked,
.auth-form .form-check-input:checked {
    background-color: #730C0B;
    border-color: #730C0B;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-modern:has(input[type="checkbox"]:checked) {
    background: #fff5f5;
    border-color: #730C0B;
}

.form-check-label-modern {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    user-select: none;
}

.form-check-label-modern i {
    color: #730C0B;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Step-by-step registration styles */
.step-progress-container {
    margin-bottom: 2rem;
}

.step-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e8e8e8;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #730C0B 0%, #8B0E0D 100%);
    border-radius: 2px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1rem;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: #e8e8e8;
    z-index: 0;
}

.step-indicator.completed:not(:last-child)::after {
    background-color: #10b981;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.step-number i {
    font-size: 1.2rem;
}

.step-indicator.active .step-number {
    background-color: #730C0B;
    color: white;
}

.step-indicator.completed .step-number {
    background-color: #10b981;
    color: white;
    font-size: 0.9rem;
}

.step-indicator.completed .step-number::before {
    content: '';
    display: none;
}

.step-indicator.completed .step-number i {
    font-size: 1.2rem !important;
    display: inline-block;
}

.step-label {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

.step-indicator.active .step-label {
    color: #730C0B;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #10b981;
    font-weight: 500;
}

/* Order Summary Card */
.order-summary-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343235;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.summary-label {
    font-weight: 500;
    color: #6c757d;
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-label i {
    font-size: 1.1rem;
}

.summary-value {
    flex: 1;
    text-align: right;
    color: #343235;
    word-break: break-word;
}

/* Success Alert Large */
.success-alert-large {
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: none;
    background: #d1f2eb;
}

.success-icon-large {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-content-large h3 {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-content-large p {
    color: #343235;
    margin: 0;
}

/* Cost Amount Input */
.cost-amount-input-compact {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.cost-amount-input-compact input {
    width: 100%;
    max-width: 200px;
}

/* Phone management styles */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.phone-type-select {
    flex: 0 0 140px;
    min-width: 140px;
    white-space: nowrap;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

.btn-remove-phone {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-phone:hover {
    background: #c82333;
}

.btn-add-phone {
    background: #f8f9fa;
    color: #730C0B;
    border: 2px dashed #730C0B;
    border-radius: 8px;
    padding: 0.25rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.btn-add-phone:hover {
    background: #730C0B;
    color: white;
}

.language-checkboxes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: stretch;
}

.language-checkboxes .form-check-modern {
    flex: 0 0 auto;
    min-width: auto;
    margin-bottom: 0;
    white-space: nowrap;
    padding: 0.625rem 1rem;
    min-height: auto;
}

.language-checkboxes .form-check-modern input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.625rem;
}

.language-checkboxes .form-check-label-modern {
    font-size: 0.95rem;
    margin: 0;
    cursor: pointer;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.form-navigation .btn-outline-secondary {
    padding: 0.875rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.form-navigation .btn-outline-secondary:hover {
    background-color: #f5f5f5;
    border-color: #730C0B;
    color: #730C0B;
}

.form-navigation .btn-auth-primary {
    margin-top: 0;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

/* Responsive adjustments for auth */
@media (max-width: 768px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .auth-card-large {
        padding: 2rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .form-section-title {
        font-size: 1.1rem;
    }
    
    .auth-container {
        padding: 1rem 0;
    }
    
    .step-indicators {
        flex-wrap: wrap;
    }
    
    .step-indicator {
        flex: 0 0 33.333%;
        margin-bottom: 1rem;
    }
    
    .step-indicator:not(:last-child)::after {
        display: none;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation .btn-auth-primary {
        max-width: 100%;
        width: 100%;
    }
    
    .phone-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-type-select {
        flex: 1;
    }
    
    .language-checkboxes {
        flex-wrap: wrap;
    }
    
    .language-checkboxes .form-check-modern {
        min-width: 150px;
    }
    
    .form-check-modern {
        min-height: auto;
    }
    
}

/* ============================================
   MINIMAL DESIGN STYLES
   ============================================ */

/* Questions Minimal */
.questions-minimal {
    max-width: 900px;
}

.questions-title-minimal {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.question-item-minimal {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    transition: background 0.2s;
}

.question-item-minimal:hover {
    background: #f9fafb;
    margin: 0 -1rem;
    padding: 1.25rem 1rem;
    border-radius: 8px;
}

.question-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.question-title-minimal {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.question-meta-minimal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.question-text-minimal {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.question-footer-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.question-author-minimal {
    color: #374151;
}

.question-answers-minimal {
    color: #6b7280;
}

.question-link-minimal {
    color: #730C0B;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.question-link-minimal:hover {
    text-decoration: underline;
}

.badge-minimal {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: #e5e7eb;
    color: #374151;
}

.badge-vip {
    background: #fef3c7;
    color: #92400e;
}

.question-date-minimal {
    color: #9ca3af;
    font-size: 0.8125rem;
}

/* Question Detail Minimal */
.question-detail-minimal {
    max-width: 800px;
}

.breadcrumb-minimal {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-minimal a {
    color: #730C0B;
    text-decoration: none;
}

.question-card-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.question-content-minimal {
    color: #374151;
    line-height: 1.7;
    margin-top: 1rem;
}

.question-file-minimal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.question-file-minimal a {
    color: #730C0B;
    text-decoration: none;
}

.answers-section-minimal {
    margin-top: 2rem;
}

.answers-title-minimal {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.answer-item-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f9fafb;
}

.answer-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.answer-author-minimal {
    color: #1f2937;
    font-weight: 600;
}

.answer-date-minimal {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.answer-content-minimal {
    color: #374151;
    line-height: 1.6;
}

.answer-form-minimal {
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.answer-form-title-minimal {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Question Form Minimal */
.question-form-minimal {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.form-title-minimal {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.form-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.form-group-minimal {
    margin-bottom: 1.25rem;
}

.form-label-minimal {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-minimal input[type="text"],
.form-minimal input[type="file"],
.form-minimal select,
.form-minimal textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.form-minimal input:focus,
.form-minimal select:focus,
.form-minimal textarea:focus {
    outline: none;
    border-color: #730C0B;
}

.form-control-minimal {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.form-control-minimal:focus {
    outline: none;
    border-color: #730C0B;
}

.form-error-minimal {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions-minimal {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Buttons Minimal */
.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-minimal {
    background: #730C0B;
    color: white;
    border-color: #730C0B;
}

.btn-primary-minimal:hover {
    background: #a01513;
    border-color: #a01513;
    color: white;
}

.btn-secondary-minimal {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-secondary-minimal:hover {
    background: #4b5563;
    border-color: #4b5563;
    color: white;
}

.btn-outline-minimal {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline-minimal:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

/* Cabinet Minimal */
.cabinet-minimal {
    max-width: 1000px;
}

.cabinet-header-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cabinet-title-minimal {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cabinet-actions-minimal {
    display: flex;
    gap: 0.5rem;
}

/* Stats Minimal */
.stats-section-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.stats-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item-minimal {
    text-align: center;
}

.stat-value-minimal {
    font-size: 1.75rem;
    font-weight: 700;
    color: #730C0B;
    display: block;
}

.stat-label-minimal {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.firm-stats-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    background: #f9fafb;
    margin-bottom: 1rem;
}

.section-title-minimal {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.subsection-title-minimal {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.firm-lawyers-minimal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.lawyer-stat-item-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.lawyer-stat-item-minimal:last-child {
    border-bottom: none;
}

.lawyer-stat-name-minimal {
    font-weight: 500;
    color: #374151;
}

.lawyer-stat-numbers-minimal {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Tabs Minimal */
.tabs-minimal {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab-minimal {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-minimal:hover {
    color: #374151;
}

.tab-minimal.active {
    color: #730C0B;
    border-bottom-color: #730C0B;
}

.tab-content-minimal {
    margin-top: 1rem;
}

.tab-pane-minimal {
    display: none;
}

.tab-pane-minimal.active {
    display: block;
}

.request-tabs-dropdown {
    display: none;
}

/* Request Items Minimal */
.request-item-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    transition: box-shadow 0.2s;
}

.request-item-minimal:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.request-header-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.request-id-minimal {
    font-weight: 600;
    color: #730C0B;
}

.request-category-minimal {
    color: #374151;
    font-weight: 500;
}

.request-date-minimal {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-left: auto;
}

.request-content-minimal {
    margin-bottom: 0.75rem;
}

.request-info-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.request-description-minimal {
    color: #374151;
    line-height: 1.6;
    margin: 0.5rem 0;
    font-size: 0.9375rem;
}

.request-actions-minimal {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.request-meta-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.request-status-minimal {
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.status-success-minimal {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-info-minimal {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-warning-minimal {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-success-minimal {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning-minimal {
    background: #fef3c7;
    color: #92400e;
}

/* Lawyers List Minimal */
.lawyers-list-minimal {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.lawyers-title-minimal {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.lawyer-item-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.lawyer-info-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lawyer-details-minimal {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Stats Detail Minimal */
.stats-detail-minimal {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.actions-breakdown-minimal {
    margin-bottom: 1.5rem;
}

.action-item-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

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

.action-type-minimal {
    color: #374151;
    font-weight: 500;
}

.action-count-minimal {
    color: #730C0B;
    font-weight: 600;
}

.activity-journal-minimal {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.journal-item-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

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

.journal-action-minimal {
    color: #374151;
    font-weight: 500;
    min-width: 150px;
}

.journal-date-minimal {
    color: #9ca3af;
    min-width: 120px;
}

.journal-user-minimal {
    color: #6b7280;
}

/* Empty State Minimal */
.empty-state-minimal {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.empty-state-minimal a {
    color: #730C0B;
    text-decoration: none;
    font-weight: 500;
}

.empty-state-minimal a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid-minimal {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cabinet-header-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tabs-minimal {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-minimal {
        white-space: nowrap;
    }
}

/* ========================================
   MODERN MINIMAL DESIGN SYSTEM
   Clean, Professional, Red-themed
   ======================================== */

/* Typography - Modern Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* Links - Clean Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Form Controls - Modern Inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Modern Buttons - Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Alert Messages - Modern */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background: #fefce8;
    border-color: #fde047;
    color: #854d0e;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Modern Card Variants */
.card-modern {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Utility Classes - Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-dark { color: var(--text-dark); }
.text-gray { color: var(--text-gray); }
.text-muted { color: var(--text-light-gray); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Background Utilities */
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-gray { background-color: var(--bg-gray); }
.bg-primary { background-color: var(--primary-color); color: white; }

/* Border Utilities */
.border { border: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-0 { border: none; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Flexbox Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Grid Utilities */
.d-grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Position Utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Width & Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Modern Loading States */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-gray) 0%,
        var(--border-light) 50%,
        var(--bg-gray) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Transitions & Animations */
.transition-all {
    transition: var(--transition);
}

.transition-fast {
    transition: var(--transition-fast);
}

.transition-slow {
    transition: var(--transition-slow);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Focus Visible - Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}


/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }

    body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-main {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-submenu {
        width: calc(100% + 40px);
    }

    .footer {
        width: calc(100% + 40px);
        margin-left: 10px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Future dark mode implementation */
}

/* ========================================
   MODERN CABINET DESIGN
   Clean, Professional Cabinet UI
   ======================================== */

/* Modern Cabinet Container */
.modern-cabinet {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Cabinet Hero Section */
.cabinet-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.cabinet-hero-content {
    flex: 1;
}

.cabinet-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.cabinet-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.btn-cabinet-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-cabinet-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Cabinet Tabs */
.cabinet-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.cabinet-tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -2px;
    position: relative;
}

.cabinet-tab i {
    font-size: 1.1rem;
}

.cabinet-tab:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.cabinet-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cabinet-tab.active .tab-badge {
    background: var(--primary-color);
    color: white;
}

/* Cabinet Panes */
.cabinet-tab-content {
    min-height: 400px;
}

.cabinet-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.cabinet-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Requests Grid */
.requests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Request Card Modern */
.request-card-modern {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.request-card-modern:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

/* Card Header */
.request-card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.request-meta-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.request-id-badge {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    padding: 0.375rem 0.75rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: var(--radius);
}

.request-category-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.375rem 0.875rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.vip-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.request-date-modern {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Card Body */
.request-card-body-modern {
    padding: 1.25rem;
}

.request-description-modern {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Card Footer */
.request-card-footer-modern {
    padding: 1.25rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

/* Lawyer Selected Section */
.lawyer-selected-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lawyer-selected-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-weight: 600;
    font-size: 0.875rem;
}

.lawyer-selected-header i {
    font-size: 1.1rem;
}

.lawyer-selected-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.lawyer-selected-actions {
    display: flex;
    gap: 0.75rem;
}

/* Interested Lawyers Section */
.interested-lawyers-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interested-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.interested-header i {
    font-size: 1.1rem;
}

.interested-lawyers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.interested-lawyer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.interested-lawyer-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.interested-lawyer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.interested-lawyer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.975rem;
}

.interested-lawyer-details {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-select-lawyer {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.btn-select-lawyer:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* No Interest Section */
.no-interest-section {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    color: #92400E;
    font-weight: 500;
    font-size: 0.9rem;
}

.no-interest-section i {
    font-size: 1.25rem;
}

/* Status Sections */
.status-section-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
}

.status-info-modern {
    background: #DBEAFE;
    border: 1px solid #93C5FD;
    color: #1E40AF;
}

.status-pending-modern {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.status-section-modern i {
    font-size: 1.5rem;
}

.status-success-modern {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* Status Badges in Header */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.status-in-progress {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

/* Document Order Info */
.document-order-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-order-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.document-order-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.document-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.document-file-info i {
    color: var(--primary-color);
}

.document-file-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.document-file-info a:hover {
    text-decoration: underline;
}

.document-cost-info {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

.document-cost-info strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
}

/* Request Actions in Cabinet */
.request-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.request-actions-dropdown {
    position: relative;
}

.btn-action-menu {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.btn-action-menu:hover {
    color: var(--text-dark);
}

.request-actions-dropdown .dropdown-menu {
    min-width: 180px;
}

.request-actions-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.request-actions-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 16px;
}

.request-actions-dropdown .dropdown-item.text-danger {
    color: #dc3545;
}

.request-actions-dropdown .dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white;
}

.status-badge.status-archived {
    background: #e5e7eb;
    color: #6b7280;
}

/* Modern Buttons */
.btn-modern {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-modern {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Empty State Modern */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state-modern i {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1.5rem;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.empty-state-modern p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem 0;
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-cabinet {
        padding: 1.5rem 0;
    }

    .cabinet-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cabinet-hero-title {
        font-size: 1.75rem;
    }

    .cabinet-hero-subtitle {
        font-size: 0.95rem;
    }

    .cabinet-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .cabinet-tab {
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
    }

    .request-card-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .request-date-modern {
        margin-left: 0;
    }

    .lawyer-selected-actions {
        flex-direction: column;
        width: 100%;
    }

    .lawyer-selected-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .interested-lawyer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-select-lawyer {
        width: 100%;
        justify-content: center;
    }

    .empty-state-modern {
        padding: 3rem 1.5rem;
    }

    .empty-state-modern i {
        font-size: 3rem;
    }

    .empty-state-modern h3 {
        font-size: 1.25rem;
    }

    .empty-state-modern p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cabinet-hero-title {
        font-size: 1.5rem;
    }

    .request-meta-modern {
        gap: 0.5rem;
    }

    .request-id-badge,
    .request-category-tag {
        font-size: 0.8125rem;
        padding: 0.3125rem 0.625rem;
    }
}

/* ========================================
   BREADCRUMB NAVIGATION
   Modern Breadcrumb Component
   ======================================== */

.breadcrumb-modern {
    margin-bottom: 2rem;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.breadcrumb-link i {
    font-size: 0.95rem;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    color: var(--border-light);
    font-size: 0.75rem;
}

.breadcrumb-item.active {
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Responsive Breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-modern,
    .breadcrumb-list {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .breadcrumb-modern,
    .breadcrumb-list {
        display: none !important;
    }
}

/* New Lawyers List Format Styles */
.main-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: visible;
}

/* Page Title Section */
.page-title {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.center-wrap-column {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.center-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-crumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.page-crumbs a {
    color: #8b0000;
    text-decoration: none;
}

.page-crumbs a:hover {
    text-decoration: underline;
}

.page-crumbs .split {
    color: #9ca3af;
}

.page-crumbs .last-child {
    color: #374151;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Page Specialization - Full Width Background */
.page-specialization {
    background: white;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * ((100vw - 100%) / 2));
    margin-right: calc(-1 * ((100vw - 100%) / 2));
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
}

/* Block Description */
.block-description {
    background: white;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.block-description article {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
}

.block-description p {
    margin-bottom: 1rem;
}

.block-description p:last-child {
    margin-bottom: 0;
}

/* Hide center-wrap-column and article in block-description on mobile */
@media (max-width: 768px) {
    .block-description {
        padding-top: 0;
    }
    
    .block-description .center-wrap-column,
    .block-description article {
        display: none;
    }
}

/* Block Filters */
.block-filters {
    background: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
}

.filters-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.block-filters .sort {
    margin-bottom: 0;
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.radio-wrap {
    display: flex;
    gap: 0;
}

.radio-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
}

.radio-item:hover {
    border-color: #8b0000;
}

.radio-item.checked {
    background: #8b0000;
    border-color: #8b0000;
    color: white;
}

.radio-item input[type="radio"] {
    display: none;
}

.item-title.unselectable {
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.radio-item.checked .item-title {
    color: white;
}

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

.filters .input-wrap {
    position: relative;
}

.ui-selectbox {
    position: relative;
}

.ui-selectbox-text {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    font-size: 0.875rem;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ui-selectbox-text .value {
    flex: 1;
}

.ui-selectbox-text .bi-chevron-down {
    flex-shrink: 0;
    opacity: 0.6;
}

.ui-selectbox-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.ui-selectbox.active .ui-selectbox-wrap {
    display: block;
}

.ui-selectbox-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.ui-selectbox-list li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ui-selectbox-list li:hover {
    background: #f3f4f6;
}

.ui-selectbox-list li.selected {
    background: #fff5f5;
    color: #8b0000;
    font-weight: 500;
}

.filters .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    user-select: none;
}

.filters .button:hover {
    border-color: #8b0000;
    color: #8b0000;
}

.filters .button.active {
    background: #8b0000;
    border-color: #8b0000;
    color: white;
}

.filters .button input[type="checkbox"] {
    display: none;
}

/* Block Specialists */
.block-specialists {
    margin-bottom: 2rem;
}

.center-wrap-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* User Card */
.user-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 150px 1fr 280px;
    grid-auto-rows: 1fr;
    gap: 24px;
    transition: all 0.3s ease;
    align-items: stretch;
    overflow: visible;
}

.user-card:hover {
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
}

.user-card.sponsored-card {
    background-color: #FAE8BB !important;
    border-color: #8b0000;
}

.user-card.sponsored-card:hover {
    background-color: #FAE8BB !important;
    background: #FAE8BB !important;
    border-color: #8b0000;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
}


.block-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-top: 10px;
    align-self: stretch;
}

.block-user .image {
    position: relative;
    width: 150px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-user .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-user .image img.default {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.block-user .image .rating-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.block-user .image .rating-display .rating-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.block-user .image .rating-display .rating-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    pointer-events: auto;
}

.block-user .rating-reviews-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    text-align: center;
}

.block-user .rating {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.block-user .reviews {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.block-user .reviews:hover {
    color: #8b0000;
    text-decoration: underline;
}

.block-user-description {
    flex: 1;
    min-width: 0;
    padding-right: 24px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    position: relative;
}

.block-user-description::after {
    content: '';
    position: absolute;
    right: 0;
    top: -24px;
    bottom: -24px;
    width: 1px;
    background-color: #d1d5db;
    pointer-events: none;
}

.name-block {
    margin-bottom: 12px;
}

.name-block .surname {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
}

.name-block .surname:hover {
    color: #8b0000;
    text-decoration: none;
}

.name-block .string {
    display: inline;
}

.sticker {
    display: inline-block;
    padding: 4px 8px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

.sticker.top {
    background: #dc2626;
}

.reputation-badge {
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(146, 64, 14, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.reputation-badge:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.reputation-badge i {
    font-size: 12px;
    color: #f59e0b;
}

.reputation-badge .reputation-value {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.specializations {
    font-size: 14px;
    color: #8590A2;
    line-height: 1.4;
    margin-bottom: 12px;
}

.description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: #374151;
}

.description div {
    line-height: 1.4;
}

.description span {
    color: #8b0000;
    font-weight: 600;
}

.block-user-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    align-self: stretch;
    padding: 40px 20px 38px 20px;
}

.block-user-contacts .button.primary {
    width: 100%;
    padding: 5px 30px;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
}

.block-user-contacts .button.primary:hover {
    background: #a00000;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2);
}

.block-user-contacts .button.primary i {
    margin-right: 6px;
    font-size: 16px;
}

.block-user-contacts .email {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-user-contacts .email i {
    font-size: 16px;
    color: #8b0000;
    flex-shrink: 0;
}

.block-user-contacts .email:hover {
    color: #8b0000;
    text-decoration: underline;
}

.block-user-contacts .email:hover i {
    color: #8b0000;
}

.block-user-contacts .address {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.block-user-contacts .address i {
    font-size: 16px;
    color: #8b0000;
    flex-shrink: 0;
    margin-top: 2px;
}

.block-user-contacts .phones {
    display: none;
}

/* Phone preview styles */
.seller-phones__preview {
    align-items: center;
    display: flex;
    gap: 8px;
}

.seller-phones__prefix {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-phones__prefix i {
    font-size: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.seller-phones__show-button {
    background: transparent;
    border: none;
    color: #1c73ad;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.seller-phones__show-button:hover {
    color: #155a8a;
}

.seller-phones__full {
    margin-top: 8px;
}

.seller-phones__link {
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seller-phones__link i {
    font-size: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.seller-phones__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.seller-phones__link:hover i {
    color: var(--primary-dark);
}

/* Pagination Wrapper */
.lawyer-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
    padding: 2rem 0;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-per-page label {
    font-weight: 500;
    color: #374151;
    margin: 0;
    white-space: nowrap;
}

.pagination-per-page .form-select {
    width: auto;
    min-width: 80px;
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-per-page .form-select:hover {
    border-color: #8b0000;
}

.pagination-per-page .form-select:focus {
    border-color: #8b0000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Bootstrap Pagination Customization */
.lawyer-pagination-wrapper .pagination-controls .pagination {
    margin: 0;
    flex-wrap: wrap;
}

.lawyer-pagination-wrapper .pagination-controls .pagination .page-item .page-link {
    color: #8b0000;
    border-color: #e5e7eb;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lawyer-pagination-wrapper .pagination-controls .pagination .page-item .page-link:hover {
    color: white;
    background-color: #8b0000;
    border-color: #8b0000;
}

.lawyer-pagination-wrapper .pagination-controls .pagination .page-item.active .page-link {
    background-color: #8b0000;
    border-color: #8b0000;
    color: white;
}

.lawyer-pagination-wrapper .pagination-controls .pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .lawyer-pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-per-page {
        justify-content: center;
        width: 100%;
    }
    
    .lawyer-pagination-wrapper .pagination-controls {
        justify-content: center;
        width: 100%;
    }
    
    .lawyer-pagination-wrapper .pagination-controls .pagination {
        justify-content: center;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
    }
}

/* Move Up Button */
.move-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8b0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.move-up:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.move-up svg {
    width: 50px;
    height: 50px;
}

.move-up svg circle {
    fill: transparent;
}

.move-up svg path {
    fill: currentColor;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Content Wrap */
.content-wrap {
    padding-bottom: 2rem;
    overflow-x: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .user-card {
        grid-template-columns: 120px 1fr 180px;
        gap: 20px;
    }
    
    .block-user-description {
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 1.5rem 0;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    .user-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .block-user {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .block-user .image {
        width: 100px;
        height: 100px;
    }
    
    .block-user-description {
        width: 100%;
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
    
    .block-user-description::after {
        display: none;
    }

    .block-user-description .specializations {
        display: none;
    }
    
    .block-user-contacts .email,
    .block-user-contacts .address {
        display: none;
    }
    
    .header-submenu {
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .header-submenu .container {
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .radio-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .block-filters .sort {
        margin-bottom: 0;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .move-up {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Article Text Container - Read More/Less */
.article-text-container {
    margin-bottom: 1rem;
}

.article-text-content {
    line-height: 1.7;
    color: #374151;
}

.article-short {
    display: inline;
}

.article-short-text {
    display: inline;
}

.article-full-text {
    display: block;
}

.article-full-text p {
    margin-bottom: 1em;
}

.read-more-link,
.read-more-link-firm {
    color: #8b0000;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline;
    white-space: nowrap;
    vertical-align: baseline;
}

.read-more-link:hover,
.read-more-link-firm:hover {
    color: #a00000;
    text-decoration: underline;
}

.read-more-link .read-more-text,
.read-more-link .read-less-text,
.read-more-link-firm .read-more-text,
.read-more-link-firm .read-less-text {
    display: inline;
}

/* Hide read-less-text when it has hidden-element class inside article-short */
.article-short .read-less-text.hidden-element {
    display: none !important;
}

.specializations .firm-description-short,
.specializations .firm-description-full {
    display: inline;
}

/* FAQ Accordion Styles */
.block.block-list {
    padding: 3rem 0;
    background: #730C0B;
    position: relative;
    width: calc(100% + 100px);
    margin-left: -50px;
    margin-right: -50px;
    padding-left: 50px;
    padding-right: 50px;
}

.block-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2.5rem;
    text-align: center;
}

.items-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.items-wrap .item {
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.items-wrap .item:hover {
    box-shadow: none;
}

.items-wrap .item-title {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 0.6;
    user-select: none;
    transition: all 0.3s ease;
    background: transparent;
}

.items-wrap .item-title svg {
    width: 14px;
    height: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: #ffffff;
}

.items-wrap .item.active .item-title svg {
    transform: rotate(180deg);
}

.items-wrap .item-title:hover {
    color: #ffffff;
}

.items-wrap .item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
    background: transparent;
}

.items-wrap .item.active .item-content {
    max-height: 510px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.items-wrap .item-title .unselectable {
    user-select: none;
    font-size: 16px;
    line-height: 1.2;
}

.items-wrap .item-content.unselectable {
    user-select: none;
    font-size: 14px;
}

@media (max-width: 768px) {
    .block-title {
        font-size: 1.5rem;
    }
    
    .items-wrap .item-title {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .items-wrap .item-content {
        font-size: 0.9rem;
    }
    
    .items-wrap .item.active .item-content {
        padding: 0 1.25rem 1rem 1.25rem;
    }
}

/* Welcome Block for Cabinets */
.welcome-block-cabinet {
    background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.welcome-header-cabinet {
    margin-bottom: 1.5rem;
}

.welcome-title-cabinet {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.welcome-title-cabinet i {
    font-size: 1.5rem;
}

.welcome-subtitle-cabinet {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.welcome-top-cabinet {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.welcome-top-cabinet .welcome-header-cabinet {
    margin-bottom: 0;
    flex: 1 1 260px;
}

.welcome-top-cabinet .welcome-summary-cabinet {
    flex: 1 1 320px;
}

.welcome-summary-cabinet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.summary-item-cabinet {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item-cabinet:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.summary-icon-cabinet {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: white;
}

.summary-messages-cabinet {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.summary-requests-cabinet {
    background: rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.summary-reviews-cabinet {
    background: rgba(251, 191, 36, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.summary-activity-cabinet {
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.summary-content-cabinet {
    flex: 1;
    min-width: 0;
}

.summary-value-cabinet {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-label-cabinet {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.summary-action-cabinet {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.summary-action-cabinet:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(4px);
}

.summary-action-cabinet i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-block-cabinet {
        padding: 1.5rem;
    }
    
    .welcome-title-cabinet {
        font-size: 1.5rem;
    }
    
    .welcome-summary-cabinet {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .summary-item-cabinet {
        padding: 0.875rem;
    }
    
    .summary-value-cabinet {
        font-size: 1.375rem;
    }
}

/* ===========================================
   LAWYER CABINET STYLES
   =========================================== */
.cabinet-lawyer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.cabinet-lawyer-wrapper .welcome-block-cabinet {
  margin-bottom: 24px;
}

.firm-invitation-alert {
  margin-bottom: 16px;
  border-left: 4px solid #0dcaf0;
}

.firm-invitation-alert .alert-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #055160;
}

.firm-invitation-alert.alert-success {
  border-left-color: #198754;
}

.firm-invitation-alert.alert-success .alert-heading {
  color: #0f5132;
}

.cabinet-lawyer-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  min-height: 600px;
}

/* Left Sidebar */
.cabinet-lawyer-sidebar {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cabinet-lawyer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet-menu-dropdown {
  display: none;
  margin-bottom: 12px;
}

.cabinet-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.cabinet-menu-item:hover {
  background: #f3f4f6;
  color: #8b0000;
}

.cabinet-menu-item.active {
  background: #8b0000;
  color: white;
}

.cabinet-menu-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.menu-badge {
  margin-left: auto;
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.cabinet-menu-item.active .menu-badge {
  background: rgba(255, 255, 255, 0.3);
}

.cabinet-lawyer-firm-link {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-firm-cabinet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-firm-cabinet:hover {
  background: #e5e7eb;
  color: #8b0000;
}

/* Right Content */
.cabinet-lawyer-content {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px;
}

.cabinet-content-section {
  display: none;
}

.cabinet-content-section.active {
  display: block;
}

.cabinet-content-section.active .chat-container {
  display: block !important;
  min-height: calc(100vh - 250px);
  width: 100%;
}

.cabinet-content-section.active .chat-container .row {
  display: flex !important;
  min-height: calc(100vh - 250px) !important;
  height: calc(100vh - 250px) !important;
  margin: 0 !important;
}

.cabinet-content-section.active .chat-container .row > [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

.cabinet-content-section.active .chat-sidebar {
  display: block !important;
  height: calc(100vh - 250px) !important;
  min-height: calc(100vh - 250px) !important;
  overflow-y: auto;
}

.cabinet-content-section.active .chat-main {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 250px) !important;
  min-height: calc(100vh - 250px) !important;
  width: 100% !important;
  flex: 1;
}

.cabinet-content-section.active .chat-messages-area {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 400px !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto;
  padding: 2rem;
  background: #f9fafb;
}

.cabinet-content-section.active .chat-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 400px !important;
  width: 100% !important;
  height: 100% !important;
  color: #6b7280 !important;
}

.cabinet-content-section.active .chat-empty .empty-icon {
  display: block !important;
  font-size: 4rem !important;
  margin-bottom: 1rem !important;
  opacity: 0.5 !important;
}

.cabinet-content-section.active .chat-empty p {
  display: block !important;
  font-size: 1.1rem !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

.cabinet-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.cabinet-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.cabinet-subsection {
  margin-bottom: 32px;
}

.cabinet-subsection-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

/* Request Items */
.request-item-cabinet {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.request-header-cabinet {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.request-id-cabinet {
  font-weight: 600;
  color: #6b7280;
}

.request-category-cabinet {
  color: #374151;
  font-weight: 500;
}

.request-content-cabinet {
  margin-bottom: 12px;
}

.request-info-cabinet {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
}

.request-description-cabinet {
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

.request-actions-cabinet {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.request-meta-cabinet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

/* Empty State */
.empty-state-cabinet {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state-cabinet i {
  font-size: 20px;
  display: block;
}

.empty-state-cabinet p {
  font-size: 16px;
  margin: 0;
}

/* Profile Tabs */
.profile-tabs-cabinet {
  border-bottom: 2px solid #e9ecef;
}

.profile-tabs-cabinet .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.profile-tabs-cabinet .nav-link:hover {
  border-bottom-color: #dee2e6;
  color: #8b0000;
}

.profile-tabs-cabinet .nav-link.active {
  color: #8b0000;
  border-bottom-color: #8b0000;
  background: transparent;
}

.profile-tabs-cabinet .nav-link i {
  margin-right: 0.5rem;
}

.profile-tab-content-cabinet {
  margin-top: 24px;
}

/* Profile Data Display */
.profile-data-section-cabinet {
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-data-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-data-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-data-item.full-width {
  grid-column: 1 / -1;
}

.profile-data-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.profile-data-item label i {
  color: #8b0000;
  font-size: 16px;
}

.profile-data-value {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.services-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.service-check-item i {
  font-size: 18px;
}

/* Profile Documents */
.profile-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.profile-document-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-document-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.profile-document-item label i {
  color: #8b0000;
  font-size: 16px;
}

.profile-document-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.profile-photo-display {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  object-fit: contain;
}

.profile-photo-placeholder-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9ca3af;
}

.profile-photo-placeholder-display i {
  font-size: 48px;
}

/* Chat Container in Cabinet - use chat-container styles */
.cabinet-content-section .chat-container {
  min-height: calc(100vh - 250px);
  background: #fff;
  margin-top: 0;
}

.cabinet-content-section .chat-sidebar {
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  height: calc(100vh - 250px);
  overflow-y: auto;
}

.cabinet-content-section .chat-main {
  height: calc(100vh - 250px);
  display: flex;
  flex-direction: column;
}

.chats-list-cabinet {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.chat-item-cabinet {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  background: white;
  position: relative;
}

.chat-item-cabinet:hover {
  background: #f3f4f6;
}

.chat-item-cabinet.active {
  background: #e8f0fe;
  border-left: 3px solid #8b0000;
}

.chat-item-header {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  flex: 1;
}

.chat-item-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-info-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.chat-info-btn:hover {
  background: #e5e7eb;
  color: #8b0000;
}

.chat-client-avatar,
.chat-lawyer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-client-name,
.chat-lawyer-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chat-client-name strong,
.chat-lawyer-name strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
}

.unread-badge {
  background: #8b0000;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.chat-preview-message {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.chat-request-badge {
  background: #e5e7eb;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}

.chat-date-small {
  font-size: 12px;
  color: #9ca3af;
}

/* Message file styles - reuse from style.css */
.message-file a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.message-item-cabinet.received .message-file-cabinet a {
  background: #e5e7eb;
  color: #1f2937;
}

/* Profile Edit Form */
.profile-edit-form-cabinet {
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #e5e7eb;
}

.profile-form-actions-cabinet {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* Chat Input Form */
.chat-input-form-cabinet {
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  background: white;
}

.chat-input-wrapper-cabinet {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-wrapper-cabinet .form-control {
  flex: 1;
}

.file-name-display-cabinet {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 4px;
}

/* Statistics */
.stats-grid-cabinet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card-cabinet {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.stat-value-cabinet {
  font-size: 32px;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 8px;
}

.stat-label-cabinet {
  font-size: 14px;
  color: #6b7280;
}

.actions-list-cabinet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item-cabinet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.action-type-cabinet {
  color: #374151;
  font-weight: 500;
}

.action-count-cabinet {
  color: #8b0000;
  font-weight: 600;
}

/* Journal */
.journal-list-cabinet {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-item-cabinet {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-left: 3px solid #8b0000;
  border-radius: 4px;
}

.journal-icon-cabinet {
  color: #8b0000;
  font-size: 12px;
  margin-top: 4px;
}

.journal-content-cabinet {
  flex: 1;
}

.journal-action-cabinet {
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.journal-meta-cabinet {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

/* Lawyer Cabinet Responsive */
@media (max-width: 1024px) {
  .cabinet-lawyer-container {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .cabinet-lawyer-container {
    display: block;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cabinet-lawyer-sidebar,
  .cabinet-menu-dropdown,
  .cabinet-lawyer-menu {
    display: none !important;
  }

  .cabinet-lawyer-content {
    display: block !important;
    padding: 16px;
    width: 100%;
  }

  .cabinet-menu-item i {
    font-size: 16px;
  }

  .cabinet-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cabinet-section-title {
    font-size: 20px;
  }

  .request-tabs-dropdown {
    display: block;
  }

  #requestTabs {
    display: none;
  }

  /* Force requests only on mobile */
  .cabinet-content-section {
    display: none !important;
  }

  #section-requests {
    display: block !important;
  }

  .profile-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .stats-grid-cabinet {
    grid-template-columns: 1fr;
  }
  
  .profile-data-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-documents-grid {
    grid-template-columns: 1fr;
  }

  .profile-data-section-cabinet {
    padding: 16px;
  }

  .request-actions-cabinet {
    flex-wrap: wrap;
  }

  .request-meta-cabinet {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cabinet-content-section .chat-container {
    min-height: auto;
  }

  .cabinet-content-section .chat-sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .cabinet-content-section .chat-main {
    height: auto;
    min-height: 360px;
  }

  .chat-item-actions {
    position: static;
    margin-top: 6px;
  }
}

/* ===========================================
   TOAST NOTIFICATION STYLES
   =========================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.toast-notification {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid #8b0000;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-4px);
}

.toast-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b0000 0%, #a00000 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Toast Responsive */
@media (max-width: 768px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast-notification {
    max-width: 100%;
  }
}

/* ===========================================
   CHART CARD STYLES
   =========================================== */
.chart-card-cabinet {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}

.chart-card-cabinet h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.chart-container-cabinet {
  height: 300px;
  position: relative;
}

.chart-container-cabinet canvas {
  max-height: 100%;
}

/* ===========================================
   FIRM CABINET STYLES
   =========================================== */
.cabinet-firm-centered {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.firm-info-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.firm-logo-section-cabinet {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.firm-logo-section-cabinet .firm-photo-item-cabinet {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e9ecef;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 1/1 !important;
}

.firm-logo-section-cabinet .firm-photo-item-cabinet .firm-logo-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firm-logo-large {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.firm-logo-placeholder-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.5;
  border: 2px solid #e9ecef;
}

.firm-header-info-cabinet {
  width: 100%;
}

.firm-name-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.firm-rating-badge {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.firm-rating-value-cabinet {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.firm-reviews-count-cabinet {
  font-size: 0.95rem;
  color: #6c757d;
  font-weight: 500;
}

.firm-status-badge .badge {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.firm-details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.firm-detail-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.firm-detail-item-cabinet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.2s;
}

.firm-detail-item-cabinet:hover {
  background: #e9ecef;
}

.firm-detail-item-cabinet i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.firm-detail-item-cabinet > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.firm-detail-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.firm-detail-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-word;
}

.firm-detail-value a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.firm-detail-value a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.firm-description-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.firm-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.firm-section-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.firm-description-text,
.firm-specialization-text,
.firm-services-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.firm-description-block,
.firm-specialization-block,
.firm-services-block {
  margin-bottom: 1.5rem;
}

.firm-services-block {
  margin-bottom: 0;
}

/* Firm Cabinet Responsive */
@media (max-width: 768px) {
  .firm-info-card {
    padding: 1.5rem;
  }
  
  .firm-detail-row {
    grid-template-columns: 1fr;
  }
  
  .firm-name-large {
    font-size: 1.5rem;
  }
  
  .firm-logo-large,
  .firm-logo-placeholder-large {
    width: 100px;
    height: 100px;
  }
}

/* Pending Invitations */
.pending-invitations-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 24px;
}

.pending-invitations-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.add-lawyer-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
}

.lawyers-list-firm {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
}

.lawyer-info-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lawyer-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.lawyer-avatar-placeholder-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

/* Reviews Management Styles */
.reviews-management-section {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
}

.pending-reviews-section,
.approved-reviews-section,
.rejected-reviews-section {
  padding-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
}

.rejected-reviews-section {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.reviews-list-management {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card-management {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s;
}

.review-card-management:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-card-management.review-approved {
  border-left: 4px solid #28a745;
  background: #f0f9f4;
}

.review-card-management.review-rejected {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
}

.review-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.review-lawyer-info,
.review-user-info {
  flex: 1;
  min-width: 200px;
}

.review-date {
  color: #6c757d;
  font-size: 0.85rem;
}

.review-rating-management {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.review-rating-management i {
  font-size: 1.1rem;
}

.review-comment-management {
  color: #495057;
  line-height: 1.6;
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.review-document-management {
  margin-top: 0.75rem;
}

.review-actions-management {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.review-actions-management .btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  .review-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .review-lawyer-info,
  .review-user-info {
    min-width: auto;
  }
  
  .review-actions-management {
    flex-direction: column;
  }
  
  .review-actions-management .btn {
    width: 100%;
  }
}

.firm-edit-form-cabinet {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.firm-edit-form-cabinet .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.firm-edit-form-cabinet .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s;
}

.firm-edit-form-cabinet .form-control:focus {
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
  outline: none;
}

.btn-primary-minimal {
  background-color: #8b0000;
  color: white;
  border: 1px solid #8b0000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-primary-minimal:hover {
  background-color: #6b0000;
  border-color: #6b0000;
  color: white;
}

/* Photos Management Styles */
.photos-management-section {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
}

.upload-photo-card,
.logo-upload-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.logo-preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  object-fit: contain;
  background: white;
  padding: 0.5rem;
}

.logo-placeholder-box {
  width: 200px;
  height: 200px;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.logo-placeholder-box i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.photos-gallery-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.photo-item-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.photo-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.photo-item-image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: #f8f9fa;
}

.photo-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-item-card:hover .photo-overlay {
  opacity: 1;
}

.photo-view-btn,
.photo-delete-btn {
  padding: 0.5rem;
  border-radius: 4px;
}

.photo-item-info {
  padding: 0.75rem;
  background: white;
  border-top: 1px solid #e9ecef;
}

.no-photos-message {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
}

@media (max-width: 768px) {
  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .logo-preview-img,
  .logo-placeholder-box {
    width: 150px;
    height: 150px;
  }
}

/* Charts Styles */
.charts-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.chart-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.chart-card canvas {
  max-height: 300px;
  flex: 1;
}

@media (max-width: 768px) {
  .chart-card {
    padding: 1rem;
  }
  
  .chart-card canvas {
    max-height: 250px;
  }
}

/* ===========================================
   CLIENT CABINET STYLES
   =========================================== */
.cabinet-client-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.cabinet-client-wrapper .welcome-block-cabinet {
  margin-bottom: 24px;
}

.cabinet-client-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  min-height: 600px;
}

/* Left Sidebar */
.cabinet-client-sidebar {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cabinet-client-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Right Content */
.cabinet-client-content {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 24px;
}

.cabinet-client-content .cabinet-content-section {
  display: none !important;
}

.cabinet-client-content .cabinet-content-section.active {
  display: block !important;
}

/* Profile Info Card */
.profile-info-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
}

/* Client Cabinet Responsive */
@media (max-width: 1024px) {
  .cabinet-client-container {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .cabinet-client-container {
    grid-template-columns: 1fr;
  }

  .cabinet-client-sidebar {
    position: static;
  }

  .cabinet-client-menu {
    flex-direction: row;
    overflow-x: auto;
  }

  .cabinet-content-section .chat-sidebar {
    height: auto;
    max-height: 300px;
  }

  .cabinet-content-section .chat-main {
    height: auto;
    min-height: 500px;
  }
}

/* ===========================================
   FIRM DETAIL PAGE STYLES
   =========================================== */
.firm-detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

/* Ensure breadcrumb is also centered */
nav.breadcrumb {
  max-width: 1400px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.firm-detail-page .row {
  gap: 30px;
  margin-left: 0;
  margin-right: 0;
}

/* Center firm-row content in the window */
.firm-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  gap: 30px;
}

.firm-row > .col-lg-7 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
}

.firm-row > .col-lg-7 > * {
  width: 100%;
  max-width: 100%;
}

/* Breadcrumb */
.firm-detail-page .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.firm-detail-page .breadcrumb-item a {
  color: #6b7280;
  text-decoration: none;
}

.firm-detail-page .breadcrumb-item a:hover {
  color: #8b0000;
}

/* Firm Header Row - Inline Layout */
.firm-header-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.firm-logo-section-container {
  flex: 1;
  min-width: 0;
}

.firm-photos-gallery {
  flex: 0 0 500px;
  max-width: 500px;
  position: sticky;
  top: 20px;
}

/* Logo Section */
.firm-logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.firm-logo-square {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.firm-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firm-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #9ca3af;
}

.firm-logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.firm-name-short {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.firm-type {
  font-size: 14px;
  color: #6b7280;
}

/* Firm Name */
.firm-name-main {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* City */
.firm-city-info {
  font-size: 16px;
  color: #6b7280;
}

/* Rating Section */
.firm-rating-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.firm-rating-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.firm-reviews-link {
  font-size: 14px;
  color: #8b0000;
  text-decoration: none;
}

.firm-reviews-link:hover {
  text-decoration: underline;
  color: #a00000;
}

.firm-reviews-link.no-reviews {
  color: #6b7280;
  cursor: default;
}

/* Info Box (Address and Hours) */
.firm-info-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.firm-info-box-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
}

.firm-info-box-item i {
  color: #6b7280;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.firm-info-box-item span {
  flex: 1;
}

/* Specialty Filter */
.firm-specialty-filter {
  width: auto;
  display: inline-block;
  max-width: 400px;
  padding: 0 20px;
}

.firm-specialty-filter .form-select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 10px 16px;
  font-size: 14px;
  color: #6b7280;
  width: auto;
  min-width: 250px;
}

.firm-specialty-filter .form-select:focus {
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* Tabs */
.firm-detail-page .nav-tabs {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 0;
}

.firm-detail-page .nav-tabs .nav-link {
  color: #6b7280;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.2s;
}

.firm-detail-page .nav-tabs .nav-link:hover {
  border-bottom-color: #e5e7eb;
  color: #1f2937;
}

.firm-detail-page .nav-tabs .nav-link.active {
  color: #a00000;
  border-bottom-color: #A00000;
  background: transparent;
}

/* Photo Gallery */
.firm-main-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  margin-bottom: 12px;
}

.firm-main-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.firm-main-photo-image:hover {
  transform: scale(1.02);
}

.firm-photos-thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.firm-photo-thumbnail {
  width: calc((100% - 32px) / 5);
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: #f9fafb;
  position: relative;
}

.firm-photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firm-photo-thumbnail:hover {
  border-color: #d1d5db;
}

.firm-photo-thumbnail.active {
  border-color: #2563eb;
}

.firm-photo-thumbnail.more-photos {
  background: rgba(37, 99, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-photos-overlay {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.firm-photo-thumbnail.more-photos:hover {
  background: rgba(37, 99, 235, 1);
  border-color: #2563eb;
}

/* Lawyers List */
.lawyer-card-firm-detail {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.lawyer-card-firm-detail:hover {
  border-color: #8b0000;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
}

.lawyer-photo-firm-detail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-photo-firm-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-photo-placeholder-firm-detail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #9ca3af;
}

.lawyer-name-firm-detail {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.lawyer-name-link-firm-detail {
  color: #1f2937;
  text-decoration: none;
}

.lawyer-name-link-firm-detail:hover {
  color: #8b0000;
  text-decoration: none;
}

.lawyer-specialization-firm-detail {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.lawyer-meta-firm-detail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-badge-firm-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
}

.meta-badge-firm-detail i {
  color: #8b0000;
  font-size: 12px;
}

/* About Section */
.firm-about-section {
  padding: 0;
}

.firm-about-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.firm-description-full,
.firm-specialization-full,
.firm-services-full {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
}

.empty-state-firm-detail {
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Firm Detail Responsive */
@media (max-width: 991px) {
  .firm-header-row {
    flex-direction: column;
  }

  .firm-photos-gallery {
    position: static;
    margin-top: 30px;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .firm-logo-section-container {
    flex: 1 1 100%;
  }

  .firm-logo-section {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .firm-name-main {
    font-size: 24px;
  }

  .firm-photo-thumbnail {
    width: calc((100% - 24px) / 5);
  }

  .lawyer-card-firm-detail .row {
    flex-direction: column;
    text-align: center;
  }

  .lawyer-photo-firm-detail {
    margin: 0 auto;
  }
}

/* ===========================================
   INLINE STYLE REPLACEMENTS
   =========================================== */
/* Replace inline style="display: none;" */
.hidden-element {
  display: none;
}

/* Replace inline style="display: inline;" */
.inline-element {
  display: inline;
}

/* Replace icon font-size in alerts */
.alert-icon-large {
  font-size: 1.5rem;
}

/* Replace placeholder icon styling in user cards */
.user-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

.user-card-placeholder-icon {
  font-size: 48px;
  color: #9ca3af;
}

/* Replace profile photo max-width styling */
.profile-photo-preview {
  max-width: 200px;
  border-radius: 8px;
}

/* Replace no-photos icon styling */
.no-photos-icon-large {
  font-size: 3rem;
  color: #dee2e6;
}

/* Replace white-space pre-wrap */
.text-pre-wrap {
  white-space: pre-wrap;
}

/* Hidden element utility */
.hidden-element {
  display: none;
}

/* Icon size utility classes */
.icon-size-lg {
  font-size: 1.5rem;
}

.icon-size-sm {
  font-size: 0.75rem;
}

/* Placeholder container for images */
.placeholder-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
}

/* Large placeholder icon (48px) */
.icon-size-xl {
  font-size: 48px;
  color: #9ca3af;
}

/* Footer separator */
.footer-hr {
  border-color: rgba(0,0,0,0.1);
}

/* Max-width utility class */
.max-w-30 {
  max-width: 30%;
}

/* Flex row with gap utility */
.flex-row-gap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Admin utilities */
.w-auto {
  width: auto !important;
}

.w-300 {
  width: 300px;
}

.w-400 {
  width: 400px;
}

.btn-dropdown-unstyled {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: 0.375rem 1rem;
}

.scrollable-box {
  max-height: 200px;
  overflow-y: auto;
}

.img-preview-sm {
  max-width: 200px;
}

.img-preview-md {
  max-width: 300px;
}

/* Table column widths */
.col-w-25 {
  width: 25%;
}

.col-w-30 {
  width: 30%;
}

.col-w-10 {
  width: 10%;
}

.col-w-5 {
  width: 5%;
}

/* Empty state icon */
.empty-state-icon {
  font-size: 3rem;
  opacity: 0.3;
}

/* Readonly input background */
.input-readonly-bg {
  background-color: #f8f9fa;
}

/* OG image preview */
.og-image-preview {
  max-width: 200px;
  max-height: 200px;
}

/* =====================================================
   PROFILE PAGE STYLES
   ===================================================== */

.profile-page-minimal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.profile-header-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-title-minimal {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.profile-actions-minimal {
  display: flex;
  gap: 0.75rem;
}

.profile-form-minimal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-section-minimal {
  padding: 1.5rem 0;
}

.section-title-minimal {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.form-check-group-minimal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.form-check-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-check-modern input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}

.form-check-label-modern i {
  color: var(--primary-color);
}

.current-file-preview {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.profile-form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
  .profile-page-minimal {
    padding: 1rem;
  }
  
  .profile-form-minimal {
    padding: 1.5rem;
  }
  
  .profile-header-minimal {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* =====================================================
   QUESTIONS LIST PAGE STYLES
   ===================================================== */

.questions-platform-modern {
  max-width: 1400px;
  margin: 0 auto;
}

.vote-section {
  min-width: 60px;
}

.vote-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  color: #6c757d;
  font-size: 1.2rem;
}

.vote-btn:hover:not(:disabled) {
  color: #8b0000;
}

.vote-btn.active {
  color: #8b0000;
}

.vote-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vote-score {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0.25rem 0;
  min-height: 1.5rem;
}

.question-card {
  transition: box-shadow 0.2s;
}

.question-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.question-title a {
  color: #212529;
}

.question-title a:hover {
  color: #8b0000;
}

.question-tags .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Content Layout */
.questions-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

/* Sidebar */
.questions-sidebar-modern {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-bottom: 20px;
}

.sidebar-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item-modern {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.stat-item-modern.stat-full-width {
  grid-column: 1 / -1;
}

.stat-value-modern {
  font-size: 28px;
  font-weight: 700;
  color: #8b0000;
  line-height: 1;
}

.stat-label-modern {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  transition: all 0.2s;
}

.topic-item:hover {
  background: #f3f4f6;
  color: #8b0000;
  text-decoration: none;
}

.topic-count {
  background: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* Recent Questions */
.recent-questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-question-item {
  display: block;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.recent-question-item:hover {
  background: #f3f4f6;
  border-left-color: #8b0000;
  text-decoration: none;
  color: #1f2937;
}

.recent-question-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.recent-question-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* Top Authors */
.top-authors-periods {
  display: ruby-text;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.period-btn {
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500;
}

.period-btn:hover {
  background: #f3f4f6;
  border-color: #8b0000;
  color: #8b0000;
  text-decoration: none;
}

.period-btn.active {
  background: #8b0000;
  border-color: #8b0000;
  color: white;
}

.top-authors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-author-item {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s;
}

.top-author-item:hover {
  background: #f3f4f6;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar i {
  font-size: 24px;
  color: #9ca3af;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.author-stats {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Most Commented */
.most-commented-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.most-commented-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s;
  gap: 12px;
}

.most-commented-item:hover {
  background: #f3f4f6;
  color: #8b0000;
  text-decoration: none;
}

.most-commented-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.comments-badge {
  background: #8b0000;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.category-item:hover {
  background: #f3f4f6;
  border-left-color: #8b0000;
  text-decoration: none;
  color: #1f2937;
}

.category-item.active {
  background: #fee2e2;
  border-left-color: #8b0000;
  color: #8b0000;
  font-weight: 600;
}

/* Questions page responsive */
@media (max-width: 992px) {
  .questions-content {
    grid-template-columns: 1fr;
  }

  .questions-sidebar-modern {
    position: static;
    max-height: none;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-right: 0.5rem;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle i {
  font-size: 1.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 1050;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
  left: 0;
}

/* Prevent mobile menu from flashing on desktop */
@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu.active,
  .mobile-menu-overlay,
  .mobile-menu-overlay.active {
    display: none !important;
    left: -100%;
    opacity: 0;
    visibility: hidden;
  }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header .navbar-brand-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-body {
  padding: 1rem 0;
}

.mobile-menu-section {
  margin-bottom: 1.5rem;
}

.mobile-menu-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-gray);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.mobile-menu-item.active {
  background: rgba(139, 0, 0, 0.05);
  border-left-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-menu-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

button.mobile-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

.mobile-language-switcher form {
  margin: 0;
}

.mobile-language-item {
  width: 100%;
}

.mobile-language-item .language-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-language-item .language-check {
  margin-left: auto;
  color: var(--primary-color);
}

.mobile-city-item {
  width: 100%;
}

.mobile-city-item .city-text {
  flex: 1;
  white-space: nowrap;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: none;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 1070;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.mobile-sidebar.active {
  left: 0;
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sidebar-logo {
  width: 120px;
  height: 32px;
  background: transparent;
}

.mobile-sidebar-close {
  width: 32px;
  height: 32px;
  background: transparent;
}

.mobile-sidebar-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-sidebar-location {
  width: 100%;
  min-height: 48px;
  background: transparent;
}

.mobile-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-sidebar-menu-item {
  width: 100%;
  min-height: 48px;
  background: transparent;
}

.mobile-sidebar-button-highlighted {
  width: 100%;
  min-height: 48px;
  background: transparent;
}

.mobile-sidebar-user {
  width: 100%;
  min-height: 64px;
  background: transparent;
}

.mobile-sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-sidebar-button {
  width: 100%;
  min-height: 48px;
  background: transparent;
}

/* Header Mobile Responsive */
@media (max-width: 991px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }
  
  .header-main {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .header-top .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-sidebar-overlay {
    display: block;
  }
  
  .mobile-sidebar {
    display: block;
  }
  
  .header-top .d-flex > div:first-child {
    flex: 1;
    min-width: 0;
  }
  
  .navbar-brand-logo {
    margin-right: 0.5rem;
  }
  
  .navbar-logo-img {
    max-height: 32px;
  }
  
  .header-controls {
    gap: 0.5rem;
  }
  
  .btn-header-control {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .btn-header-control .city-text {
    display: inline;
    white-space: nowrap;
  }
  
  .btn-header-control i {
    margin: 0;
  }
  
  .header-submenu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .header-submenu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .header-submenu .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .header-submenu-inner {
    min-width: max-content;
  }
  
  .header-submenu-left,
  .header-submenu-right {
    flex-shrink: 0;
  }
  
  .header-submenu .btn-all-services {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Hide "Register my firm" link on mobile */
  .header-submenu a[href*="register/firm"],
  .header-submenu a[href*="register_firm"],
  .header-submenu-right a[href*="register/firm"],
  .header-submenu-right a[href*="register_firm"],
  .header-submenu .btn-all-services[href*="register/firm"],
  .header-submenu .btn-all-services[href*="register_firm"],
  .header-submenu .btn-nav-link[href*="register/firm"],
  .header-submenu .btn-nav-link[href*="register_firm"],
  .header-submenu a:has(.bi-plus-circle),
  .header-submenu-right a:has(.bi-plus-circle),
  .header-submenu .btn-all-services:has(.bi-plus-circle),
  .header-submenu-right .btn-all-services:has(.bi-plus-circle) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
  }
  
  /* Stack submenu items on very small screens */
  @media (max-width: 576px) {
    .header-submenu-inner {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .header-submenu-left,
    .header-submenu-right {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
  }
}

@media (max-width: 576px) {
  .header-top {
    padding: 0.5rem 0;
    min-height: 60px;
  }
  
  .header-top .container {
    padding-left: 0.75rem;
  }
  
  .navbar-logo-img {
    max-height: 28px;
  }
  
  .mobile-menu-toggle {
    padding: 0.375rem 0.5rem;
    font-size: 1.25rem;
  }
  
  .btn-header-control {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .btn-header-control .city-text {
    display: inline;
    white-space: nowrap;
  }
  
  .btn-header-control span:not(.city-text) {
    display: none;
  }
  
  .btn-login-register {
    display: none;
  }
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.5rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .footer .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .footer .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
  
  .footer .row > div:last-child {
    margin-bottom: 1rem;
  }
  
  .footer-logo {
    margin-bottom: 1.25rem;
  }
  
  .footer-logo img {
    max-width: 120px;
  }
  
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-top: 0;
  }
  
  .footer ul {
    font-size: 0.9rem;
    padding-left: 0;
  }
  
  .footer ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }
  
  .footer .footer-hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer .text-center {
    padding: 0.75rem 0;
  }
  
  .footer .text-center p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 2rem 1rem 1.25rem;
  }
  
  .footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 1.75rem;
  }
  
  .footer h5 {
    font-size: 0.9375rem;
    margin-bottom: 0.875rem;
  }
  
  .footer ul {
    font-size: 0.875rem;
  }
  
  .footer ul li {
    margin-bottom: 0.625rem;
  }
  
  .footer p {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
  
  .footer .mt-3 {
    margin-top: 1rem !important;
  }
  
  .footer .footer-hr {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
  
  .footer .text-center {
    padding: 0.625rem 0;
  }
  
  .footer .text-center p {
    font-size: 0.75rem;
  }
  
  .footer .text-center .mx-2 {
    margin-left: 0.375rem !important;
    margin-right: 0.375rem !important;
  }
}

/* Container Mobile Responsive */
@media (max-width: 991px) {
  main .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  main .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Forms Mobile Responsive */
@media (max-width: 768px) {
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    border-radius: 6px !important;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

/* Cards Mobile Responsive */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
}

/* Tables Mobile Responsive */
@media (max-width: 768px) {
  .table-responsive {
    border: none;
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Utilities for Mobile */
@media (max-width: 991px) {
  .d-mobile-none {
    display: none !important;
  }
  
  .d-mobile-block {
    display: block !important;
  }
  
  .d-mobile-flex {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .d-desktop-none {
    display: none !important;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  * {
    max-width: 100%;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Additional Mobile Optimizations */

/* Buttons and Links */
@media (max-width: 768px) {
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
  
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  a {
    word-break: break-word;
  }
}

/* Modals Mobile */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
}

/* Dropdowns Mobile */
@media (max-width: 768px) {
  .dropdown-menu {
    max-width: calc(100vw - 2rem);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .services-dropdown-menu {
    width: calc(100vw - 2rem);
    max-width: 400px;
  }
}

/* Alerts Mobile */
@media (max-width: 768px) {
  .alert {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
  }
}

/* Pagination Mobile */
@media (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .page-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Breadcrumbs Mobile */
@media (max-width: 768px) {
  .breadcrumb,
  nav.breadcrumb,
  nav[aria-label="breadcrumb"],
  .breadcrumb-modern,
  .breadcrumb-minimal,
  .firm-detail-page .breadcrumb {
    display: none !important;
  }
}

/* Search and Filters Mobile */
@media (max-width: 768px) {
  .search-form,
  .filter-form {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .search-form .form-control,
  .filter-form .form-control,
  .search-form .form-select,
  .filter-form .form-select {
    width: 100%;
  }
}

/* Grid Layouts Mobile */
@media (max-width: 768px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

}

/* Spacing Adjustments Mobile */
@media (max-width: 768px) {
  .mt-5, .my-5 {
    margin-top: 2rem !important;
  }
  
  .mb-5, .my-5 {
    margin-bottom: 2rem !important;
  }
  
  .pt-5, .py-5 {
    padding-top: 2rem !important;
  }
  
  .pb-5, .py-5 {
    padding-bottom: 2rem !important;
  }
}

/* Text Sizes Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  h6 {
    font-size: 0.875rem;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
}

/* Move-up Button Mobile */
@media (max-width: 768px) {
  .move-up {
    width: 44px;
    height: 44px;
    bottom: 1rem;
    right: 1rem;
  }
  
  .move-up svg {
    width: 44px;
    height: 44px;
  }
}

/* FAQ Section Mobile */
@media (max-width: 991px) {
  .block.block-list {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .block.block-list {
    width: calc(100% + 40px);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .block-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .item-title {
    font-size: 0.95rem;
    padding: 1rem;
  }
  
  .item-content {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
  }
}

/* City Selection Modal Styles */
#citySelectionModal .modal-dialog {
  max-width: 640px;
  margin: 44px auto;
}

#citySelectionModal .modal-content {
  border: none;
  border-radius: 7px;
  box-shadow: 6px 9px 14px rgba(41, 106, 150, 0.17);
  padding: 0;
  position: relative;
  background: transparent;
}

#citySelectionModal .modal-content .modal-header,
#citySelectionModal .modal-content .modal-body,
#citySelectionModal .modal-content .modal-footer {
  padding: 0;
  border: none;
}

#citySelectionModal .form-location {
  width: 100%;
  max-width: 640px;
  padding: 38px 40px 65px 40px;
  margin: 0;
  position: relative;
  background: #fff;
  border: none;
  border-radius: 7px;
  text-align: center;
}

#citySelectionModal .block-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #343235;
  margin-bottom: 2rem;
  text-align: center;
}

#citySelectionModal .location-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: left;
}

#citySelectionModal .location-wrap .item {
  break-inside: avoid;
  cursor: pointer;
}

#citySelectionModal .location-wrap .item:hover {
  background-color: transparent;
}

#citySelectionModal .location-wrap .item.selected {
  background-color: transparent;
}

#citySelectionModal .location-wrap .item.selected .city-selector-modal-item {
  color: #8B0000;
  font-weight: 600;
}

#citySelectionModal .city-selector-modal-item {
  display: block;
  padding-right: 30px;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #343235;
  text-align: left;
  break-inside: avoid;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

#citySelectionModal .city-selector-modal-item:hover {
  color: #8B0000;
}

#citySelectionModal .city-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  box-shadow: none;
}

#citySelectionModal .city-modal-close:hover {
  opacity: 1;
}

#citySelectionModal .city-modal-close:focus {
  box-shadow: none;
  outline: none;
}

#citySelectionModal .city-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mobile Responsive for City Modal */
@media (max-width: 768px) {
  #citySelectionModal .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
  }
  
  #citySelectionModal .form-location {
    padding: 30px 20px 50px 20px;
  }
  
  #citySelectionModal .location-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  #citySelectionModal .block-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  #citySelectionModal .location-wrap {
    grid-template-columns: 1fr;
  }
}

/* Geo Confirmation Modal */
#geoConfirmationModal .modal-dialog {
  max-width: none;
  width: 351px;
  margin: 32px auto;
}

#geoConfirmationModal .modal-content {
  width: 351px;
  height: auto;
  padding: 22px 35px;
  border: none;
  border-radius: 10px;
  box-shadow: 6px 9px 14px rgba(41, 106, 150, 0.17);
  text-align: center;
}

#geoConfirmationModal .modal-header {
  border: none;
  padding: 0 0 10px 0;
}

#geoConfirmationModal .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d2d2d;
  text-align: center;
}

#geoConfirmationModal .modal-body {
  border: none;
  padding: 0 6px 14px 6px;
  text-align: center;
  color: #4a4a4a;
  font-size: 14px;
}

#geoConfirmationModal .modal-footer {
  border: none;
  padding: 0;
  flex-direction: row-reverse;
}

#geoConfirmationModal .btn {
  font-size: 14px;
  font-weight: 600;
}

#geoConfirmationModal .btn-primary {
  padding: 3px 40px;
  margin-bottom: 3px;
  max-width: 131px;
  background-color: #6f0f0f;
  border-color: #6f0f0f;
  color: #fff;
}

#geoConfirmationModal .btn-primary:hover,
#geoConfirmationModal .btn-primary:focus {
  background-color: #590c0c;
  border-color: #590c0c;
  color: #fff;
}

#geoConfirmationModal .btn-outline-secondary {
  padding: 3px 38px;
  max-width: 231px;
  color: #6f0f0f;
  border: 1px solid #6f0f0f;
  background: #fff;
}

#geoConfirmationModal .btn-outline-secondary:hover,
#geoConfirmationModal .btn-outline-secondary:focus {
  color: #590c0c;
  border-color: #590c0c;
  background: #fff;
}

#geoConfirmationModal .btn-close {
  position: absolute;
  right: 14px;
  top: 14px;
}

/* AI Chat Modal Styles */
/* AI Modal Backdrop - Enhanced gradient backdrop */
.modal-backdrop.show {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 50%, rgba(240, 147, 251, 0.5) 100%);
    backdrop-filter: blur(8px);
}

/* When AI modal is open, enhance the backdrop */
#aiChatModal.show + .modal-backdrop,
body.modal-open:has(#aiChatModal.show) .modal-backdrop {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 50%, rgba(240, 147, 251, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.ai-chat-modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.3), 0 0 0 1px rgba(138, 43, 226, 0.1);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.ai-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.ai-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(240, 147, 251, 0.9) 100%);
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

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

.ai-chat-header .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ai-chat-header .modal-title i {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

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

.ai-chat-header .btn-close {
    filter: invert(1) brightness(1.2);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ai-chat-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.ai-chat-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-container-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 400px;
    max-height: calc(70vh - 120px);
    gap: 0;
}

.ai-chat-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0; /* Allows flex item to shrink below content size */
    order: 1;
}

.ai-chat-sidebar {
    width: 320px;
    min-width: 320px;
    border-left: 1px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    display: none; /* Hidden by default, shown when lawyers are found */
    flex-direction: column;
    overflow: hidden;
    order: 2;
    flex-shrink: 0;
}

.ai-chat-sidebar.show {
    display: flex;
}

.ai-chat-lawyers-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.ai-chat-lawyers-sidebar-header {
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 0.75rem;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    z-index: 10;
}

.ai-chat-lawyers-sidebar-header h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-lawyers-sidebar-header h6 i {
    color: var(--secondary-color);
}

.ai-chat-lawyer-list-item {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius);
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ai-chat-lawyer-list-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateX(2px);
}

.ai-chat-lawyer-list-item-sponsored {
    background-color: #FAE8BB !important;
    border-color: #8b0000;
}

.ai-chat-lawyer-list-item-sponsored:hover {
    background-color: #FAE8BB !important;
    border-color: #8b0000;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.15);
}

.ai-chat-lawyer-list-photo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.ai-chat-lawyer-list-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    flex-shrink: 0;
}

.ai-chat-lawyer-list-photo-placeholder i {
    font-size: 1.5rem;
}

.ai-chat-lawyer-list-info {
    flex: 1;
    min-width: 0;
}

.ai-chat-lawyer-list-name-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ai-chat-lawyer-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ai-chat-lawyer-list-name:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.ai-chat-vip-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ai-chat-lawyer-list-category {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.4rem;
    display: block;
}

.ai-chat-lawyer-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.ai-chat-lawyer-list-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-chat-lawyer-list-rating i {
    color: #ffc107;
    font-size: 0.8rem;
}

.ai-chat-lawyer-list-rating-value {
    font-weight: 600;
    color: var(--text-dark);
}

.ai-chat-lawyer-list-experience {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-chat-lawyer-list-experience i {
    font-size: 0.75rem;
}

.ai-chat-lawyer-list-price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #28a745;
    font-weight: 500;
}

.ai-chat-lawyer-list-price i {
    font-size: 0.75rem;
}

.ai-chat-lawyer-list-item-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.ai-chat-lawyer-list-profile-btn {
    width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ai-chat-lawyer-list-profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive: Stack sidebar below on smaller screens */
@media (max-width: 991px) {
    .ai-chat-container-wrapper {
        flex-direction: column;
    }
    
    .ai-chat-main-content {
        order: 1;
    }
    
    .ai-chat-sidebar {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(102, 126, 234, 0.2);
        max-height: 300px;
        order: 2;
    }
    
    .ai-chat-lawyers-sidebar {
        padding: 0.75rem;
    }
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    min-height: 0; /* Allows flex item to shrink */
    max-height: 500px;
}

.ai-chat-message {
    display: flex;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-message-user {
    justify-content: flex-end;
}

.ai-chat-message-bot {
    justify-content: flex-start;
}

.ai-chat-message-text {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    word-wrap: break-word;
    line-height: 1.5;
}

.ai-chat-message-user .ai-chat-message-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-chat-message-user .ai-chat-message-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

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

.ai-chat-message-bot .ai-chat-message-text {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: var(--text-dark);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    position: relative;
}

.ai-chat-message-bot .ai-chat-message-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.ai-chat-typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    justify-content: flex-start;
}

.typing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: typing 1.4s infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.typing-dot:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.typing-dot:nth-child(2) {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #667eea 100%);
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

.ai-chat-quick-replies {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.ai-chat-quick-reply-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    white-space: nowrap;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transition: all 0.3s ease;
}

.ai-chat-quick-reply-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-chat-lawyers {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    max-height: 400px;
    overflow-y: auto;
}

.ai-chat-lawyers-header {
    margin-bottom: 0.5rem;
}

.ai-chat-lawyers-header h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-lawyers-header h6 i {
    color: var(--secondary-color);
}

.ai-chat-lawyer-card {
    background-color: #d4edda !important;
    background: #d4edda !important;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.ai-chat-lawyer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ai-chat-lawyer-card:hover {
    background-color: #d4edda !important;
    background: #d4edda !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.ai-chat-lawyer-card:hover::before {
    transform: scaleX(1);
}

.ai-chat-lawyer-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-chat-lawyer-photo-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.ai-chat-lawyer-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.2s ease;
    display: block;
}

.ai-chat-lawyer-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    border: 3px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

.ai-chat-lawyer-photo-placeholder i {
    font-size: 2rem;
}

.ai-chat-lawyer-photo-link:hover .ai-chat-lawyer-photo,
.ai-chat-lawyer-photo-link:hover .ai-chat-lawyer-photo-placeholder {
    transform: scale(1.05);
}

.ai-chat-lawyer-info {
    flex: 1;
}

.ai-chat-lawyer-name-link {
    text-decoration: none;
    color: inherit;
}

.ai-chat-lawyer-name-link:hover {
    text-decoration: none;
}

.ai-chat-lawyer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.35rem 0;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.ai-chat-lawyer-name-link:hover .ai-chat-lawyer-name {
    color: var(--primary-color);
}

.ai-chat-lawyer-category {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.ai-chat-lawyer-card-body {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-chat-lawyer-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ai-chat-lawyer-rating-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.ai-chat-rating-icon {
    color: #fbbf24;
    font-size: 1rem;
}

.ai-chat-lawyer-stars {
    display: flex;
    gap: 2px;
    color: var(--secondary-color);
}

.ai-chat-lawyer-rating-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.ai-chat-lawyer-rating-max {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.ai-chat-lawyer-reviews-count {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-left: 0.25rem;
}

.ai-chat-lawyer-experience,
.ai-chat-lawyer-location {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.ai-chat-lawyer-price,
.ai-chat-lawyer-price-range {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-lawyer-price-range i {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-chat-lawyer-price-range strong {
    color: #667eea;
    font-weight: 700;
}

.ai-chat-lawyer-specialization {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.ai-chat-lawyer-specialization i {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ai-chat-lawyer-specialization-text {
    flex: 1;
    line-height: 1.4;
}

.ai-chat-lawyer-experience {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-lawyer-experience i {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-chat-lawyer-experience strong {
    color: var(--text-dark);
    font-weight: 600;
}

.ai-chat-lawyer-location {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ai-chat-lawyer-location i {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ai-chat-lawyer-location-text {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}

.ai-chat-lawyer-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.ai-chat-lawyer-profile-btn {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-chat-lawyer-profile-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.ai-chat-lawyer-profile-btn:active {
    transform: translateY(0);
}

.ai-chat-footer {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.ai-chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.ai-chat-send-btn {
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-chat-send-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ai-chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
}

.ai-chat-send-btn:active::before {
    width: 300px;
    height: 300px;
}

.ai-chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AI Chat Send Scenario Button */
.ai-chat-send-scenario-container {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.ai-chat-send-scenario-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.ai-chat-send-scenario-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
}

.ai-chat-send-scenario-btn:active {
    transform: translateY(0);
}

.ai-chat-send-scenario-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AI Chat Trigger Button */
.ai-chat-trigger-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin: 0;
    width: fit-content;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: 1000;
}

.ai-chat-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ai-chat-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background-position: right center;
}

.ai-chat-trigger-btn:hover::before {
    left: 100%;
}

.ai-chat-trigger-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.ai-chat-trigger-btn i {
    font-size: 1.25rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ai-chat-modal-content {
        max-height: 95vh;
    }
    
    .ai-chat-messages {
        max-height: 400px;
        padding: 1rem;
    }
    
    .ai-chat-message-text {
        max-width: 85%;
    }
    
    .ai-chat-lawyers {
        max-height: 300px;
        padding: 0.75rem;
    }
    
    .ai-chat-lawyer-card {
        padding: 0.75rem;
    }
    
    .ai-chat-lawyer-card-header {
        gap: 0.75rem;
    }
    
    .ai-chat-lawyer-photo,
    .ai-chat-lawyer-photo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .ai-chat-lawyer-photo-placeholder i {
        font-size: 1.5rem;
    }
    
    .ai-chat-lawyer-name {
        font-size: 1rem;
    }
    
    .ai-chat-lawyer-card-body {
        gap: 0.5rem;
    }
    
    .ai-chat-lawyer-specialization {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    .ai-chat-lawyer-experience,
    .ai-chat-lawyer-location,
    .ai-chat-lawyer-price-range {
        font-size: 0.85rem;
    }
    
    .ai-chat-lawyer-profile-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .ai-chat-trigger-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .ai-chat-trigger-btn i {
        font-size: 1rem;
    }
}

/* AI Chat Section - Textarea Form */
.ai-chat-section {
    display: flex;
    width: 100%;
    flex: 1 1;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ai-chat-header-section {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 3rem 1rem 0;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.ai-chat-title {
    text-align: center;
    font-size: 2.125rem;
    font-weight: 600;
    line-height: 1.25;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    margin: 0;
}

.ai-chat-form-wrapper {
    width: 100%;
    border-radius: 1.5rem;
    background: white;
    padding: 1rem 0 4rem;
}

@media (min-width: 768px) {
    .ai-chat-form-wrapper {
        border-radius: 4rem;
        padding: 1rem 0 4rem;
    }
}

.ai-chat-benefits {
    width: 100%;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .ai-chat-benefits {
        padding: 3rem 0 4rem;
    }
}

.ai-chat-benefits-title {
    margin: 0 0 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.ai-chat-benefits-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

@media (min-width: 992px) {
    .ai-chat-benefits-grid {
        gap: 1.5rem;
    }
}

.ai-chat-benefit-card {
    background: transparent;
    border-radius: 0;
    padding: 1rem 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
}

.ai-chat-benefit-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 1.85rem;
}

.ai-chat-benefit-heading {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.ai-chat-benefit-text {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: 1rem;
}

.ai-chat-form-container {
    margin: 0 auto;
    width: 100%;
    max-width: 42rem;
}

.ai-chat-form {
    width: 100%;
    border-radius: 1rem;
    background: white;
    transition: all 0.7s ease-in-out;
}

.ai-chat-input-container {
    position: relative;
    flex: 1 1;
    overflow: hidden;
    border-radius: 1rem;
    background: white;
    padding: 0.5rem 1rem 0 0.25rem;
}

@media (min-width: 768px) {
    .ai-chat-input-container {
        padding: 0.5rem 0.25rem 0 0.25rem;
    }
}

.ai-chat-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 0 0.25rem 0 0.25rem;
    width: 33%;
}

.ai-chat-progress-bar {
    position: relative;
    flex: 1;
    height: 0.35rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.ai-chat-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #f97316 0%, #4dec70 100%);
    transition: width 0.2s ease;
}

.ai-chat-progress-label {
    font-size: 0.75rem;
    color: #6b7280;
    min-width: 3rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ai-chat-progress-bar.over-limit .ai-chat-progress-fill,
.ai-chat-progress-fill.over-limit {
    background:  linear-gradient(135deg, #f97316 0%, #4dec70 100%);
}

.ai-chat-progress-label.over-limit {
    color: #b91c1c;
}

.ai-chat-textarea {
    width: 100%;
    resize: none;
    overflow-y: auto;
    max-height: 15rem;
    scroll-padding-bottom: 2.5rem;
    scroll-padding-top: 0.5rem;
    border-radius: 1rem;
    padding: 1rem 0.5rem 3rem 0.5rem;
    background: rgba(249, 250, 251, 0.5);
    font-size: 0.875rem;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    min-height: 44px;
    font-family: inherit;
}

@media (min-width: 768px) {
    .ai-chat-textarea {
        background: transparent;
    }
}

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

.ai-chat-textarea::placeholder {
    color: #6b7280;
}

.ai-chat-textarea-placeholder {
    position: absolute;
    top: 0.85rem;
    left: 1.25rem;
    right: 3.5rem;
    pointer-events: none;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}

.ai-chat-textarea-placeholder::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 4px;
    background: currentColor;
    animation: ai-placeholder-caret 1.1s steps(2, start) infinite;
}

@keyframes ai-placeholder-caret {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.ai-chat-submit-wrapper {
    position: absolute;
    bottom: 0.5rem;
    right: 1.25rem;
}

@media (min-width: 768px) {
    .ai-chat-submit-wrapper {
        right: 0.5rem;
    }
}

.ai-chat-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    color: #1f2937;
    background: white;
    border: none;
    border-radius: 1rem;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease-out;
    touch-action: manipulation;
}

.ai-chat-submit-btn:hover {
    background: white;
    transform: scale(0.99);
}

.ai-chat-submit-btn:active {
    transform: scale(0.95);
}

.ai-chat-submit-btn:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.8;
}

.ai-chat-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ai-chat-send-icon {
    margin-left: 0.25rem;
    margin-top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    color: currentColor;
}

/* AI Chat Scenarios Container */
.ai-chat-scenarios-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 1rem 1rem 1rem;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ai-chat-scenarios-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .ai-chat-scenarios-container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.5rem 0 1rem 0;
    }
}

.ai-chat-scenario-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 0.5;
    position: relative;
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-out;
    touch-action: manipulation;
    flex-shrink: 0;
}

.ai-chat-scenario-btn:hover {
    background: #e5e7eb;
    transform: scale(0.99);
}

.ai-chat-scenario-btn:active {
    transform: scale(0.95);
}

.ai-chat-scenario-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5);
}

.ai-chat-scenario-btn:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.8;
}

/* AI Chat Agreement Text */
.ai-chat-agreement-text {
    padding: 0 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .ai-chat-agreement-text {
        padding: 0;
        text-align: center;
    }
}

.ai-chat-agreement-link {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.ai-chat-agreement-link:hover {
    color: #667eea;
}

/* AI Chat Feedback Widget */
.ai-chat-feedback-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat-feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
}

.ai-chat-feedback-title {
    font-size: 0.875rem;
    color: #1f2937;
    margin: 0;
    text-align: center;
}

.ai-chat-feedback-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-chat-feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    background: white;
    color: #1f2937;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: none;
    gap: 0.5rem;
}

.ai-chat-feedback-btn:hover {
    background: #f9fafb;
    transform: scale(1.05);
}

.ai-chat-feedback-btn:active {
    transform: scale(0.95);
}

.ai-chat-feedback-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.ai-chat-feedback-btn:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.ai-chat-feedback-icon-wrapper {
    position: relative;
    width: 2rem;
    height: 2rem;
}

.ai-chat-feedback-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
    color: currentColor;
}

.ai-chat-feedback-icon-static {
    opacity: 1;
}

.ai-chat-feedback-btn:hover .ai-chat-feedback-icon-static {
    opacity: 0;
}

.ai-chat-feedback-label {
    font-size: 0.875rem;
    color: #1f2937;
}

@media (max-width: 768px) {
    .ai-chat-header-section {
        padding: 3rem 1rem 0;
    }
    
    .ai-chat-title {
        font-size: 1.5rem;
    }
    
    .ai-chat-form-wrapper {
        padding: 1rem 0 5rem;
    }
}

/* Section titles for home page - matching ai-chat-title font-size */
.section-title-home {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.5rem;
}

.section-title-text {
    flex: 1;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.section-header-content {
    flex: 1;
}

.section-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.1);
}

.section-view-all-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.section-view-all-btn i {
    transition: transform 0.2s ease;
}

.section-view-all-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .section-title-home {
        font-size: 1.5rem;
    }
    
    .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Popular Questions and Latest Articles Sections */
.popular-questions-section {
    display: flex;
    width: 100%;
    flex: 1 1;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.popular-questions-section .container {
    width: 100%;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .popular-questions-section .container {
        border-radius: 4rem;
        padding: 1rem 2rem 2rem;
    }
}

.popular-questions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    display: none;
}

.latest-articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    border-top: 1px solid #e5e7eb;
}

/* Question Cards */
.question-card-home {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
    overflow: hidden;
    height: auto;
    background: var(--bg-white);
    box-shadow: none;
    position: relative;
}

.question-card-home:hover {
    border-color: #d1d5db;
}

.question-card-home::before {
    display: none;
}

.question-card-header {
    padding: 1rem 1rem 0.75rem;
    border-bottom: none;
}

.vote-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    border: none;
}

.vote-score-badge i {
    font-size: 0.875rem;
    color: #9ca3af;
}

.badge-pinned {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.question-card-home .card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.question-title-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.question-title-link:hover {
    color: var(--primary-color);
}

.question-description {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.question-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #9ca3af;
}

.meta-item i {
    color: #d1d5db;
    font-size: 0.8125rem;
}

.question-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.question-read-btn:hover {
    background: #f9fafb;
    color: var(--primary-color);
    border-color: #d1d5db;
}

.question-read-btn i {
    font-size: 0.75rem;
}

/* Article Cards */
.article-card-home {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg);
}

.article-card-home:hover {
    transform: translateY(-4px);
}

.article-image-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.article-card-home:hover .article-image {
    transform: scale(1.05);
}

.article-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.article-image-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-gray) 0%, #e5e7eb 100%);
    color: var(--text-light-gray);
    font-size: 3rem;
    border-radius: var(--radius-lg);
}

.article-image-placeholder i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.article-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
    pointer-events: none;
}

.article-title-wrapper {
    margin-bottom: 0.75rem;
}

.article-title-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: color 0.2s ease;
    pointer-events: auto;
}

.article-title-link:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.article-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.article-meta-item i {
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-meta-item time {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .popular-questions-section .col-md-4,
    .latest-articles-section .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .section-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .question-card-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .article-card-content {
        padding: 1rem 1.25rem;
    }
    
    .article-title-link {
        font-size: 1rem;
    }
}

@media (max-width: 1600px) {
    .article-card-home {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .popular-questions-section .col-md-4,
    .latest-articles-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .question-card-home .card-body {
        padding: 1rem;
    }
    
    .question-card-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .article-card-content {
        padding: 0.875rem 1rem;
    }
    
    .article-title-link {
        font-size: 0.9375rem;
        line-height: 1.3;
    }
    
    .article-meta-wrapper {
        gap: 0.75rem;
    }
    
    .article-meta-item {
        font-size: 0.8125rem;
    }
    
    .question-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .question-read-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Banner Section Styles - Articles List
   ============================================ */
section.banner {
    padding: 55px 0;
}

.main-banner {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 30px;
    align-items: start;
}

.banner-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide:hover img {
    transform: scale(1.05);
}

.banner_darker {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}

.banner_txt_hidder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.banner_txt {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner_category {
    display: inline-block;
    background: #0035F2;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    transition: transform 0.3s ease, background 0.3s ease;
}

.banner-slide:hover .banner_category {
    transform: translateY(-2px);
    background: #0025D2;
}

.banner_title {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    transition: transform 0.3s ease;
}

.banner-slide:hover .banner_title {
    transform: translateY(-2px);
}

.banner-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-description span {
    margin-right: 4px;
}

.dop_banners_col {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.dop_banners_col h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid #730C0B;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.dop_banners_col > hr {
    margin: 0 0 20px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.small-banner-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: visible;
    gap: 12px;
}

.small_banner {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small_banner:hover {
    transform: translateY(-3px);
}

.small_banner a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    padding: 0;
    align-items: flex-start;
    height: 58px;
    flex: 1;
}

.small_banner img {
    width: 88px;
    height: 58px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small_banner:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.small_banner .flex-grow {
    flex: 1;
    min-width: 0;
    height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.small_banner h3 {
    font-size: 0.9rem;  
    line-height: 1.3;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #000;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small_banner:hover h3 {
    color: #730C0B;
}

.small_banner_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.small_banner p {
    font-size: 0.55rem;
    color: #666;
    margin: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.small_banner p span {
    white-space: nowrap;
}

.small_banner .article-date {
    font-size: 0.55rem;
    color: #666;
    white-space: nowrap;
    margin-left: auto;
}

.small_banner hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

.small_banner:last-child hr {
    display: none;
}

/* Slider Navigation Styles */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
}

.banner-slider-wrapper:hover .slider-nav {
    opacity: 1;
    pointer-events: auto;
}

.slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-nav i {
    font-size: 1.5rem;
    color: #730C0B;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s ease;
}

.slider-dot.active {
    border-color: #fff;
}

.slider-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.slider-dot:hover {
    border-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 992px) {
    .main-banner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-slider-wrapper {
        height: 480px;
    }

    .banner_title {
        font-size: 1.5rem;
    }

    .dop_banners_col {
        padding: 15px;
        height: 480px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
    }

    .slider-nav i {
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    section.banner {
        padding: 30px 0;
    }

    .banner-slider-wrapper {
        height: 300px;
    }

    .banner_txt_hidder {
        padding: 20px;
    }

    .banner_title {
        font-size: 1.25rem;
    }

    .small_banner img {
        width: 70px;
        height: 46px;
    }

    .small_banner a {
        height: 46px;
    }

    .small_banner .flex-grow {
        height: 46px;
    }

    .small_banner h3 {
        margin: 0 0 3px 0;
        line-height: 1.25;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }

    .slider-nav i {
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 15px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot::after {
        width: 4px;
        height: 4px;
    }
}

.geoConfirmBtn {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #730B0A;
    color: #fff;
    border: 1px solid #730B0A;
    border-radius: 8px;
    transition: background .2s ease;
}

.geoChangeCityBtn {
    width: 100%;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0);
    color: #730B0A;
    border: 1px solid #730B0A;
    border-radius: 8px;
}

/* Document Preparation Slider Styles */
.adlt-docs2-form {
    width: 100%;
    margin: auto;
    font-family: Arial, sans-serif;
    color: #333;
    padding-bottom: 27px;
}

.adlt-docs2-form .adlt-docs2-slider {
    min-height: 448px;
    background-color: #ebf1f9;
    text-align: center;
    position: relative;
    padding: 10px 60px 5px;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
}

.adlt-docs2-slider .adlt-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.adlt-docs2-slider > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    padding: 0 20px;
    line-height: 1.6;
}

.adlt-docs2-link {
    color: #730C0B;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.adlt-docs2-link:hover {
    text-decoration: underline;
}

.adlt-steps {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
    flex-wrap: wrap;
}

.adlt-steps li {
    margin: 0;
    display: flex;
    align-items: center;
}

.adlt-step-arrow {
    color: #999;
    font-size: 14px;
    margin: 0 5px;
}

.adlt-steps .adlt-switch {
    display: inline-block;
    padding: 10px 20px;
    color: #730C0B;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 2px solid transparent;
    white-space: nowrap;
}

.adlt-steps .adlt-switch:hover {
    color: #333;
}

.adlt-steps .adlt-switch.adlt-active {
    color: #333;
    font-weight: 700;
}

.adlt-slides {
    position: relative;
    overflow: hidden;
}

.adlt-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 0 20px;
    box-sizing: border-box;
}

.adlt-slide.adlt-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.adlt-slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.adlt-slide-illustration {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adlt-slide-illustration svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.adlt-illustration-1,
.adlt-illustration-2,
.adlt-illustration-3 {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adlt-slide-text {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    padding-left: 20px;
}

.adlt-bullets {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.adlt-bullets li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.adlt-bullets li:hover {
    background-color: #999;
}

.adlt-bullets li.adlt-active {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.adlt-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.adlt-arrow:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.adlt-arrow.adlt-prev {
    margin-top: 70px;
    left: 250px;
}

.adlt-arrow.adlt-next {
    margin-top: 70px;
    right: 250px;
}

.adlt-arrow i {
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .adlt-docs2-form .adlt-docs2-slider {
        min-height: auto;
        padding: 30px 20px;
    }
    
    .adlt-steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .adlt-step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .adlt-slide-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .adlt-slide-illustration {
        flex: 0 0 auto;
    }
    
    .adlt-slide-text {
        text-align: center;
        padding-left: 0;
    }
    
    .adlt-slides {
        min-height: 300px;
    }
    
    .adlt-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .adlt-arrow.adlt-prev {
        left: 10px;
    }
    
    .adlt-arrow.adlt-next {
        right: 10px;
    }
}

