/* Critical inline styles only */
    
    .hero-accent {
        color: var(--legal-gold);
        position: relative;
        font-weight: 700;
    }
    
    .hero-accent::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold), transparent);
        z-index: -1;
    }
    
    .stats-box {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 1rem;
        backdrop-filter: blur(5px);
    }

    .hero-contact-form {
        border-radius: 10px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }
    
    /* Phone Number Display Styles */
    .phone-display {
        display: inline-block;
        background: rgba(201, 169, 97, 0.2);
        backdrop-filter: blur(10px);
        border: 2px solid var(--legal-gold);
        border-radius: 4px;
        padding: 0.75rem 1.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .phone-display:hover {
        background: var(--legal-gold);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    }
    
    .phone-link {
        color: white !important;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-family: 'Georgia', serif;
    }
    
    .phone-link:hover {
        color: var(--legal-navy) !important;
    }
    
    .phone-number {
        font-family: 'Georgia', serif;
        letter-spacing: 1px;
        font-weight: 700;
        color: white !important;
    }
    
    @media (max-width: 991.98px) {
        .hero {
            padding: 3rem 0 4rem;
        }
        
        .hero-content h1 {
            font-size: 2rem;
        }
        
        .hero-content .lead {
            font-size: 1rem;
        }
        
        .hero-content .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }
        
        .hero-content .d-flex.gap-2 {
            justify-content: center;
        }
        
        .hero-badge {
            margin: 0 auto 1rem;
            display: table;
            padding: 0.75rem 1.5rem;
            font-size: 1.3rem;
        }
        
        .stats-box {
            margin-bottom: 0.5rem;
        }
        
        .hero-contact-form {
            margin-top: 2rem;
        }
        
        .phone-display {
            padding: 0.75rem 1.5rem;
        }
        
        .phone-link {
            font-size: 1.3rem;
        }
        
        .phone-number {
            font-size: 1.3rem;
        }
    }
    
    .search-box {
        background: white;
        border-radius: 8px;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        margin-top: -3rem;
        position: relative;
        z-index: 10;
        border: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .feature-card {
        border: 1px solid rgba(201, 169, 97, 0.2);
        transition: all 0.3s;
        padding: 2rem;
        border-radius: 8px;
        height: 100%;
        background: var(--legal-cream);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(26, 35, 50, 0.15);
        border-color: var(--legal-gold);
    }
    
    .lawyer-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(26, 35, 50, 0.1);
        transition: all 0.3s;
        border: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .lawyer-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(26, 35, 50, 0.2);
        border-color: var(--legal-gold);
    }
    
    .lawyer-img {
        height: 200px;
        object-fit: cover;
    }
    
    .lawyer-rating {
        color: var(--legal-gold);
    }
    
    .lawyer-specialty {
        display: inline-block;
        background: rgba(201, 169, 97, 0.15);
        color: var(--legal-charcoal);
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        font-size: 0.875rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        border: 1px solid rgba(201, 169, 97, 0.3);
        font-weight: 500;
    }
    
    .how-it-works-number {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--legal-gold), #d4b76a);
        color: var(--legal-navy);
        border-radius: 4px;
        font-weight: bold;
        font-size: 1.5rem;
        margin-right: 1.5rem;
        box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
    }
    
    .animated-text {
        animation: fadeIn 1s ease-in;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .process-card {
        transition: all 0.3s ease;
        overflow: hidden;
        border-radius: 12px;
        position: relative;
    }
    
    .process-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }
    
    .process-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--primary);
        transition: all 0.3s ease;
    }
    
    .process-card:hover::before {
        width: 100%;
        height: 5px;
    }
    
    .process-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: rgba(231, 166, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .process-card:hover .process-icon {
        background-color: var(--primary);
    }
    
    .process-card:hover .process-icon i {
        color: white !important;
    }
    
    .process-number {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 30px;
        height: 30px;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1rem;
    }
    
    .process-details {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        opacity: 0;
    }
    
    .process-card:hover .process-details {
        max-height: 200px;
        opacity: 1;
    }
    
    .elite-lawyer-card {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 280px;
        margin-bottom: 15px;
        background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
        border: 1px solid rgba(201, 169, 97, 0.15);
    }
    
    .elite-lawyer-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(201, 169, 97, 0.25);
        border-color: var(--legal-gold);
    }
    
    .elite-lawyer-img-wrapper {
        height: 140px;
        width: 140px;
        position: relative;
        overflow: hidden;
        margin: 15px auto 0;
        border-radius: 50%;
        border: 3px solid #ffffff;
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    }
    
    .elite-lawyer-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.4s ease;
        filter: grayscale(0%);
    }
    
    .elite-lawyer-card:hover .elite-lawyer-img-wrapper img {
        transform: scale(1.08);
        filter: grayscale(0%) brightness(1.05);
    }
    
    .elite-lawyer-rating {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }
    
    .elite-lawyer-specialties {
        padding: 6px 10px;
        margin-top: 3px;
        text-align: center;
        position: absolute;
        bottom: 55px;
        left: 0;
        right: 0;
    }
    
    .elite-specialty {
        display: inline-block;
        background: linear-gradient(135deg, var(--legal-gold) 0%, #d4af37 100%);
        color: #ffffff;
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
        border-radius: 15px;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(201, 169, 97, 0.3);
        letter-spacing: 0.2px;
        text-transform: capitalize;
    }
    
    .elite-lawyer-info {
        padding: 12px 15px;
        background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 2px solid rgba(201, 169, 97, 0.1);
        text-align: center;
    }
    
    .elite-lawyer-info h5 {
        margin-bottom: 3px;
        font-size: 0.85rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--legal-navy);
        font-family: 'Georgia', serif;
        letter-spacing: 0.2px;
    }
    
    .elite-lawyer-info p {
        margin-bottom: 0;
        font-size: 0.7rem;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    
    .elite-lawyer-info p::before {
        content: '\f3c5';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 0.65rem;
        color: var(--legal-gold);
    }
    
    .top-lawyers-section {
        position: relative;
        background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
        padding: 4rem 0;
        overflow: hidden;
        border-top: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .top-lawyers-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.03'%3E%3Cpath d='M30,15 L45,30 L30,45 L15,30 Z' stroke='%23c9a961' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 1;
    }
    
    .top-lawyers-wave {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 50%, var(--legal-gold) 100%);
    }
    
    .top-lawyers-decoration {
        position: absolute;
        border-radius: 4px;
        background: rgba(201, 169, 97, 0.08);
        z-index: 1;
        transform: rotate(45deg);
    }
    
    .top-lawyers-decoration-1 {
        width: 200px;
        height: 200px;
        top: -100px;
        left: -50px;
        animation: float 12s ease-in-out infinite;
    }
    
    .top-lawyers-decoration-2 {
        width: 150px;
        height: 150px;
        bottom: -75px;
        right: -25px;
        animation: float 10s ease-in-out infinite reverse;
    }
    
    .top-lawyers-heading {
        position: relative;
        display: inline-block;
        font-weight: 700;
        font-size: 2.2rem;
        color: var(--legal-navy);
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.8s ease-out;
        text-align: center;
        font-family: 'Georgia', serif;
    }
    
    .top-lawyers-heading::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 100%);
        border-radius: 0;
        animation: headingUnderlineCentered 1s ease-out 0.3s forwards;
    }

    .top-lawyers-heading::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -15px;
        width: 30px;
        height: 30px;
        background-color: rgba(231, 166, 0, 0.1);
        border-radius: 50%;
        z-index: -1;
        animation: pulse 3s infinite;
    }
    
    .top-lawyers-title-accent {
        color: var(--legal-gold);
        position: relative;
        font-weight: 800;
        animation: colorPop 0.5s ease-out 0.5s both;
    }
    
    .top-lawyers-title-accent::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, rgba(201, 169, 97, 0.3), transparent);
        z-index: -1;
        border-radius: 0;
        animation: widthGrow 0.8s ease-out 0.6s both;
    }
    
    .top-lawyers-slider {
        position: relative;
        z-index: 2;
    }
    
    .service-section {
        position: relative;
        background: linear-gradient(135deg, var(--legal-cream) 0%, #ffffff 100%);
        padding: 5rem 0;
        overflow: hidden;
        border-top: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .section-intro {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto 3rem;
        text-align: center;
    }
    
    .service-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(26, 35, 50, 0.1);
        transition: all 0.4s ease;
        position: relative;
        height: 100%;
        border: 2px solid rgba(201, 169, 97, 0.15);
        z-index: 2;
    }
    
    .service-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 45px rgba(26, 35, 50, 0.2);
        border-color: var(--legal-gold);
    }
    
    .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold), var(--legal-silver));
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s ease;
    }
    
    .service-card:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
        background: rgba(201, 169, 97, 0.15);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .service-card:hover .service-icon-wrapper {
        background: var(--legal-gold);
        border-color: var(--legal-navy);
    }
    
    .service-card:hover .service-icon-wrapper i {
        color: var(--legal-navy) !important;
    }
    
    .service-card-body {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-card h4 {
        margin-bottom: 0.75rem;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--legal-navy);
        font-family: 'Georgia', serif;
    }
    
    .service-card p {
        color: var(--legal-silver);
        font-size: 0.85rem;
        margin-bottom: 1rem;
        height: 60px;
        overflow: hidden;
        line-height: 1.4;
    }
    
    .service-link {
        display: inline-block;
        color: var(--legal-gold);
        font-weight: 600;
        position: relative;
        transition: all 0.3s ease;
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .service-link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--legal-gold);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .service-card:hover .service-link::after {
        transform: scaleX(1);
    }
    
    .service-decoration {
        position: absolute;
        width: 150px;
        height: 150px;
        border-radius: 8px;
        background: rgba(201, 169, 97, 0.08);
        z-index: 1;
        transform: rotate(45deg);
    }
    
    .decoration-1 {
        top: -75px;
        left: -75px;
    }
    
    .decoration-2 {
        bottom: -75px;
        right: 10%;
        width: 200px;
        height: 200px;
    }
    
    .view-more-btn {
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: all 0.4s ease;
        border: 2px solid var(--legal-gold);
        color: var(--legal-gold);
        border-radius: 4px;
        font-weight: 600;
    }
    
    .view-more-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: var(--legal-gold);
        z-index: -1;
        transition: all 0.4s ease;
    }
    
    .view-more-btn:hover {
        color: var(--legal-navy);
        border-color: var(--legal-gold);
    }
    
    .view-more-btn:hover::before {
        width: 100%;
    }
    
    /* Revamped How It Works Section - Professional & Compact */
    .how-it-works-section {
        background: linear-gradient(135deg, #ffffff 0%, var(--legal-cream) 50%, #ffffff 100%);
        position: relative;
        padding: 4rem 0;
        overflow: hidden;
        border-top: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .how-it-works-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 50%, var(--legal-gold) 100%);
        animation: shimmer 3s ease-in-out infinite;
    }
    
    @keyframes shimmer {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
    
    .process-timeline {
        position: relative;
        margin: 3rem 0;
    }
    
    .process-cards-wrapper {
        position: relative;
        z-index: 3;
    }
    
    .process-card {
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden;
        border-radius: 8px;
        position: relative;
        background: white;
        border: 2px solid rgba(201, 169, 97, 0.2);
        box-shadow: 0 10px 30px rgba(26, 35, 50, 0.1);
        height: 280px;
        width: 100%;
        aspect-ratio: 1;
    }
    
    .process-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.03) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }
    
    .process-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(26, 35, 50, 0.2);
        border-color: var(--legal-gold);
    }
    
    .process-card:hover::before {
        opacity: 1;
    }
    
    .process-card.active {
        border-color: var(--legal-gold);
        box-shadow: 0 20px 40px rgba(201, 169, 97, 0.25);
    }
    
    .process-icon-wrapper {
        position: relative;
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .process-icon {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.08) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.4s ease;
        border: 2px solid rgba(201, 169, 97, 0.2);
    }
    
    .process-card:hover .process-icon {
        background: linear-gradient(135deg, var(--legal-gold) 0%, #d4b76a 100%);
        transform: scale(1.1);
        border-color: var(--legal-navy);
    }
    
    .process-card:hover .process-icon i {
        color: var(--legal-navy) !important;
    }
    
    .process-number {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--legal-gold) 0%, #d4b76a 100%);
        color: var(--legal-navy);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
        transition: all 0.3s ease;
        border: 2px solid white;
    }
    
    .process-card:hover .process-number {
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(201, 169, 97, 0.6);
    }
    
    .process-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        color: var(--legal-navy);
        font-family: 'Georgia', serif;
    }
    
    .process-card:hover .process-title {
        color: var(--legal-gold);
        transform: translateY(-2px);
    }
    
    .process-description {
        font-size: 0.8rem;
        line-height: 1.4;
        color: var(--legal-silver);
        margin-bottom: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .process-card:hover .process-description {
        color: var(--legal-charcoal);
    }
    
    .process-features {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
    }
    
    .process-card:hover .process-features {
        opacity: 1;
        max-height: 150px;
    }
    
    .process-feature {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--legal-silver);
        transition: all 0.3s ease;
        transform: translateX(-10px);
        opacity: 0;
    }
    
    .process-card:hover .process-feature {
        transform: translateX(0);
        opacity: 1;
        color: var(--legal-charcoal);
    }
    
    .process-card:hover .process-feature:nth-child(1) { transition-delay: 0.1s; }
    .process-card:hover .process-feature:nth-child(2) { transition-delay: 0.2s; }
    .process-card:hover .process-feature:nth-child(3) { transition-delay: 0.3s; }
    
    .process-feature i {
        color: var(--legal-gold);
        font-size: 0.7rem;
        width: 16px;
        text-align: center;
    }
    
    .process-arrow {
        position: absolute;
        top: 50%;
        right: -15px;
        transform: translateY(-50%);
        color: var(--legal-gold);
        font-size: 1.5rem;
        opacity: 0.6;
        z-index: 4;
        transition: all 0.3s ease;
    }
    
    .process-card:hover + .process-arrow {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
    
    /* Mobile Responsive Enhancements */
    @media (max-width: 768px) {
        .how-it-works-section {
            padding: 3rem 0;
        }
        
        .process-card {
            height: 240px;
            margin-bottom: 1rem;
        }
        
        .process-card:hover {
            transform: translateY(-5px) scale(1.02);
        }
        
        .process-arrow {
            display: none;
        }
        
        .process-icon-wrapper {
            width: 60px;
            height: 60px;
            margin: 0 auto 0.75rem;
        }
        
        .process-title {
            font-size: 0.9rem;
            margin-bottom: 0.4rem;
        }
        
        .process-description {
            font-size: 0.75rem;
            line-height: 1.3;
            margin-bottom: 0.5rem;
        }
        
        .process-feature {
            font-size: 0.7rem;
            gap: 0.3rem;
        }
        
            .process-feature i {
        font-size: 0.6rem;
        width: 14px;
    }
    
    /* Service Cards Mobile Optimization */
    @media (max-width: 768px) {
        .service-card {
            margin-bottom: 1rem;
        }
        
        .service-card-body {
            padding: 1rem;
        }
        
        .service-icon-wrapper {
            width: 50px;
            height: 50px;
            margin-bottom: 0.75rem;
        }
        
        .service-icon-wrapper i {
            font-size: 1.5rem !important;
        }
        
        .service-card h4 {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        
        .service-card p {
            font-size: 0.75rem;
            line-height: 1.3;
            margin-bottom: 0.75rem;
        }
        
        .service-link {
            font-size: 0.8rem;
        }
    }
    }
    
    /* Advanced Animations for How It Works */
    @keyframes slideInFromBottom {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes fadeInScale {
        0% {
            opacity: 0;
            transform: scale(0.8);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .process-card {
        animation: slideInFromBottom 0.6s ease-out;
    }
    
    .process-card:nth-child(1) { animation-delay: 0.1s; }
    .process-card:nth-child(2) { animation-delay: 0.2s; }
    .process-card:nth-child(3) { animation-delay: 0.3s; }
    .process-card:nth-child(4) { animation-delay: 0.4s; }
    
    .process-icon {
        animation: fadeInScale 0.8s ease-out;
    }
    
    .process-number {
        animation: float 3s ease-in-out infinite;
    }
    
    /* Hover Effects Enhancement */
    .process-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(231, 166, 0, 0.1) 0%, transparent 50%, rgba(231, 166, 0, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        border-radius: 20px;
        pointer-events: none;
    }
    
    .process-card:hover::after {
        opacity: 1;
    }
    
    /* Glow Effect on Hover */
    .process-card:hover .process-icon {
        box-shadow: 0 0 20px rgba(231, 166, 0, 0.3);
    }
    
    /* Progress Indicator */
    .process-progress {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(231, 166, 0, 0.1);
        border-radius: 2px;
        overflow: hidden;
    }
    
    .process-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--primary) 0%, #f8c145 100%);
        width: 0;
        transition: width 0.6s ease;
        border-radius: 2px;
    }
    
    .process-card:hover .process-progress-bar {
        width: 100%;
    }
    
    /* Enhanced Typography */
    .process-title {
        background: linear-gradient(135deg, #2c3e50 0%, var(--primary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
    }
    
    .process-card:hover .process-title {
        background: linear-gradient(135deg, var(--primary) 0%, #f8c145 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Call to Action Enhancement */
    .how-it-works-section .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, #f8c145 100%);
        border: none;
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 50px;
        box-shadow: 0 8px 25px rgba(231, 166, 0, 0.3);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .how-it-works-section .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .how-it-works-section .btn-primary:hover::before {
        left: 100%;
    }
    
    .how-it-works-section .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(231, 166, 0, 0.4);
    }
    
    .process-check-item i {
        position: absolute;
        left: 0;
        top: 2px;
    }
    
    .process-decoration {
        position: absolute;
        border-radius: 50%;
        background: rgba(231, 166, 0, 0.05);
        z-index: 0;
    }
    
    .process-decoration-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        left: -150px;
    }
    
    .process-decoration-2 {
        width: 200px;
        height: 200px;
        bottom: -100px;
        right: 10%;
    }
    
    @keyframes float {
        0% { transform: translateY(0px) rotate(0deg); }
        50% { transform: translateY(-15px) rotate(5deg); }
        100% { transform: translateY(0px) rotate(0deg); }
    }
    
    .img-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(231, 166, 0, 0.2);
        opacity: 0;
        transition: all 0.3s ease;
        border-radius: 50%;
        z-index: 2;
    }
    
    .img-overlay::before {
        content: '\f0c1';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 1.8rem;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .elite-lawyer-card:hover .img-overlay {
        opacity: 1;
    }
    
    .elite-lawyer-card:hover .img-overlay::before {
        opacity: 1;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes widthGrow {
        from {
            width: 0;
        }
        to {
            width: 100%;
        }
    }
    
    @keyframes colorPop {
        0% {
            color: #333;
        }
        100% {
            color: var(--primary);
        }
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 0.7;
        }
        50% {
            transform: scale(1.2);
            opacity: 0.4;
        }
        100% {
            transform: scale(1);
            opacity: 0.7;
        }
    }
    
    @keyframes headingUnderlineCentered {
        from {
            width: 0;
        }
        to {
            width: 100px;
        }
    }
    
    .view-all-btn {
        position: relative;
        overflow: hidden;
        padding: 0.6rem 1.5rem;
        background: white;
        color: var(--primary);
        border: 2px solid var(--primary);
        border-radius: 30px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(231, 166, 0, 0.15);
        transition: all 0.3s ease;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 1.5rem;
        text-decoration: none;
    }
    
    .view-all-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: var(--primary);
        transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
        z-index: -1;
    }
    
    .view-all-btn:hover {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(231, 166, 0, 0.25);
    }
    
    .view-all-btn:hover::before {
        width: 100%;
    }
    
    .view-all-btn i {
        transition: all 0.3s ease;
    }
    
    .view-all-btn:hover i {
        transform: translateX(4px);
    }
    
    .view-all-btn-wrapper {
        text-align: center;
        margin-top: 1.5rem;
        animation: fadeIn 1s ease-in;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Compact layout for 1366px screens to fit 6 cards per row */
    @media (min-width: 992px) {
        .elite-lawyer-card {
            height: 260px;
        }
        
        .elite-lawyer-img-wrapper {
            height: 140px;
            width: 140px;
            margin: 10px auto 0;
        }
        
        .elite-lawyer-info {
            padding: 8px 10px;
        }
        
        .elite-lawyer-info h5 {
            font-size: 0.85rem;
        }
        
        .elite-lawyer-info p {
            font-size: 0.65rem;
        }
        
        .elite-specialty {
            font-size: 0.6rem;
            padding: 0.1rem 0.4rem;
        }
        
        .elite-lawyer-specialties {
            bottom: 50px;
        }
    }

    /* How It Works heading styles to match Top Rated Lawyers */
    .how-it-works-heading {
        position: relative;
        display: inline-block;
        font-weight: 700;
        font-size: 2.2rem;
        color: var(--legal-navy);
        margin-bottom: 1.5rem;
        animation: fadeInUp 0.8s ease-out;
        text-align: center;
        font-family: 'Georgia', serif;
    }
    
    .how-it-works-heading::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--legal-gold) 0%, var(--legal-silver) 100%);
        border-radius: 0;
        animation: headingUnderlineCentered 1s ease-out 0.3s forwards;
    }

    .how-it-works-heading::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -20px;
        width: 40px;
        height: 40px;
        background-color: rgba(201, 169, 97, 0.1);
        border-radius: 8px;
        z-index: -1;
        animation: pulse 3s infinite;
        transform: rotate(45deg);
    }
    
    .how-it-works-title-accent {
        color: var(--legal-gold);
        position: relative;
        font-weight: 800;
        animation: colorPop 0.5s ease-out 0.5s both;
    }
    
    .how-it-works-title-accent::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, rgba(201, 169, 97, 0.3), transparent);
        z-index: -1;
        border-radius: 0;
        animation: widthGrow 0.8s ease-out 0.6s both;
    }
    
    /* Media query for 1366x768 screens */
    @media (min-width: 1200px) and (max-width: 1440px) {
        .how-it-works-heading {
            font-size: 2rem;
            margin-bottom: 1.2rem;
        }
    }

    .cta-section {
        background: linear-gradient(135deg, var(--legal-navy) 0%, var(--legal-charcoal) 100%);
        color: white;
        padding: 6rem 0;
        position: relative;
    }
    
    .cta-decoration {
        position: absolute;
        border-radius: 50%;
        opacity: 0.1;
        background: white;
    }
    
    .cta-blob-1 {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -50px;
        animation: float 15s ease-in-out infinite;
    }
    
    .cta-blob-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -100px;
        animation: float 12s ease-in-out infinite reverse;
    }
    
    .cta-card {
        background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.9) 100%);
        border: 2px solid rgba(201, 169, 97, 0.3);
        backdrop-filter: blur(10px);
        position: relative;
        z-index: 10;
        transform: translateY(0);
        transition: all 0.5s ease;
    }
    
    .cta-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.4) !important;
        border-color: var(--legal-gold);
    }
    
    .cta-heading {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        background: linear-gradient(90deg, #ffffff, var(--legal-gold));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: inline-block;
        font-family: 'Georgia', serif;
    }
    
    .cta-text {
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto 2rem;
        color: rgba(255,255,255,0.9);
    }
    
    .cta-icon-container {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .cta-icon-circle {
        width: 80px;
        height: 80px;
        background: var(--legal-gold);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(201, 169, 97, 0.4);
        position: relative;
        z-index: 1;
        animation: pulse 3s infinite;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .cta-feature-item {
        background: rgba(255,255,255,0.1);
        padding: 0.7rem 1rem;
        border-radius: 50px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .cta-feature-item:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-3px);
    }
    
    .cta-btn-primary {
        position: relative;
        overflow: hidden;
        background: var(--legal-gold);
        border-color: var(--legal-gold);
        font-weight: 600;
        padding: 0.8rem 1.8rem;
        z-index: 1;
        transition: all 0.4s ease;
        border-radius: 4px;
        box-shadow: 0 8px 15px rgba(201, 169, 97, 0.4);
        color: var(--legal-navy);
    }
    
    .cta-btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: rgba(26, 35, 50, 0.2);
        transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
        z-index: -1;
    }
    
    .cta-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px rgba(201, 169, 97, 0.5);
    }
    
    .cta-btn-primary:hover::before {
        width: 100%;
    }
    
    .cta-btn-secondary {
        position: relative;
        overflow: hidden;
        font-weight: 600;
        padding: 0.8rem 1.8rem;
        border-radius: 4px;
        transition: all 0.4s ease;
        color: var(--legal-navy);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        border: 2px solid rgba(201, 169, 97, 0.3);
    }
    
    .cta-btn-secondary:hover {
        transform: translateY(-3px);
        background: white;
        box-shadow: 0 12px 20px rgba(0,0,0,0.2);
        border-color: var(--legal-gold);
    }
    
    .cta-trust-badges {
        margin-top: 2.5rem;
    }
    
    .cta-trust-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.8);
        transition: all 0.3s ease;
    }
    
    .cta-trust-item:hover {
        color: white;
        transform: translateY(-2px);
    }
    
    @media (max-width: 767px) {
        .cta-heading {
            font-size: 1.8rem;
        }
        
        .cta-text {
            font-size: 1rem;
        }
        
        .cta-feature-item {
            margin-bottom: 0.5rem;
        }
        
        .cta-trust-item {
            margin-bottom: 0.5rem;
        }
    }
    
    .hover-bg-light {
        transition: all 0.3s;
    }
    
    .hover-bg-light:hover {
        background-color: rgba(106, 27, 154, 0.05) !important;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(106, 27, 154, 0.1);
        border-color: rgba(106, 27, 154, 0.2) !important;
    }
    
    /* City links styling - enhanced version */
    .city-section-title {
        position: relative;
        display: inline-block;
        margin-bottom: 1.5rem;
        padding-bottom: 10px;
    }
    
    .city-section-title:after {
        content: '';
        position: absolute;
        width: 50%;
        height: 3px;
        background: linear-gradient(to right, var(--primary, #6a1b9a), transparent);
        bottom: 0;
        left: 25%;
    }
    
    .popular-cities-container {
        background-color: #f9f9f9;
        border-radius: 10px;
        padding: 1.5rem;
        margin-top: 1.5rem;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    }
    
    .city-link {
        transition: all 0.3s ease;
        font-size: 0.9rem;
        border-color: rgba(201, 169, 97, 0.3);
        border-radius: 4px;
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background: white;
        box-shadow: 0 3px 8px rgba(26, 35, 50, 0.08);
        border: 1px solid rgba(201, 169, 97, 0.2);
        color: #000 !important;
        text-decoration: none;
    }
    
    .city-link .city-icon {
        background-color: rgba(201, 169, 97, 0.15);
        color: var(--legal-gold);
        width: 24px;
        height: 24px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 8px;
        font-size: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .city-link:hover {
        background: linear-gradient(135deg, var(--legal-gold) 0%, #d4b76a 100%);
        color: var(--legal-navy);
        border-color: var(--legal-gold);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
    }
    
    .city-link:hover .city-icon {
        background-color: rgba(26, 35, 50, 0.2);
        color: var(--legal-navy);
    }
    
    .hero-contact-form {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 15px 40px rgba(26, 35, 50, 0.15);
        padding: 2.5rem 2rem 2rem 2rem;
        max-width: 520px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        animation: fadeIn 1s;
        border: 2px solid rgba(201, 169, 97, 0.2);
    }
    .hero-contact-form h3 {
        color: var(--legal-navy);
        font-weight: 700;
        margin-bottom: 1.5rem;
        font-family: 'Georgia', serif;
    }
    .hero-contact-form .form-floating > label {
        color: #888;
        font-weight: 500;
    }
    .hero-contact-form .form-control,
    .hero-contact-form .form-select {
        border-radius: 4px;
        border: 2px solid rgba(201, 169, 97, 0.2);
        box-shadow: none;
        font-size: 1rem;
        background: var(--legal-cream);
        color: var(--legal-navy);
    }
    .hero-contact-form .form-control:focus,
    .hero-contact-form .form-select:focus {
        border-color: var(--legal-gold);
        box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
        background: #fff;
    }
    .hero-contact-form .btn-primary {
        background: linear-gradient(90deg, var(--legal-gold) 0%, #d4b76a 100%);
        border: none;
        font-weight: 600;
        border-radius: 4px;
        box-shadow: 0 6px 15px rgba(201, 169, 97, 0.3);
        transition: all 0.3s;
        color: var(--legal-navy);
    }
    .hero-contact-form .btn-primary:hover {
        background: linear-gradient(90deg, #d4b76a 0%, var(--legal-gold) 100%);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(201, 169, 97, 0.4);
    }
    /* Enhanced Problem Type Dropdown for Hero */
    .hero-contact-form .problem-type-wrapper .select2-container {
        width: 100% !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-selection {
        min-height: 38px !important;
        padding: 0.4rem 0.75rem !important;
        border: 2px solid rgba(201, 169, 97, 0.2) !important;
        border-radius: 4px !important;
        background: var(--legal-cream) !important;
        font-size: 1rem;
        color: var(--legal-navy) !important;
        transition: all 0.3s;
        display: flex;
        align-items: center;
    }
    .hero-contact-form .problem-type-wrapper .select2-selection:focus,
    .hero-contact-form .problem-type-wrapper .select2-container--open .select2-selection {
        border-color: var(--legal-gold) !important;
        box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
        background: #fff !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-selection__rendered {
        color: #222 !important;
        padding: 0 !important;
        line-height: normal !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-selection__arrow {
        height: 38px !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-dropdown {
        border-color: var(--legal-gold) !important;
        box-shadow: 0 10px 35px rgba(26, 35, 50, 0.15);
        border-radius: 0 0 4px 4px !important;
        overflow: hidden;
    }
    .hero-contact-form .problem-type-wrapper .select2-results__option {
        padding: 12px 18px !important;
        font-size: 1rem;
        transition: all 0.2s;
    }
    .hero-contact-form .problem-type-wrapper .select2-results__option--highlighted {
        background-color: var(--legal-gold) !important;
        color: var(--legal-navy) !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-search__field {
        padding: 10px !important;
        border-radius: 4px !important;
        border: 1px solid #eee !important;
    }
    .hero-contact-form .problem-type-wrapper .select2-search__field:focus {
        border-color: var(--legal-gold) !important;
        box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    }
    @media (max-width: 991px) {
        .hero-contact-form {
            margin-top: 2rem;
            padding: 1.5rem 1rem;
        }
    }
