/* Custom CSS for Credit Monkey with Bootstrap 5 */

:root {
    --primary-color: #0f2a4f;
    --secondary-color: #14b8a6;
    --dark-color: #0b1220;
    --light-bg: #f5f7fb;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b !important;
    line-height: 1.6;
    background-color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #1e293b !important;
}

p, span, div, li {
    color: #475569 !important;
}

.text-muted {
    color: #64748b !important;
}

/* Icon styling */
.bi {
    font-size: 0.95rem;
    color: #94a3b8 !important;
    opacity: 0.85;
}

.btn .bi,
.navbar .bi {
    color: currentColor !important;
    opacity: 0.9;
}

/* Ensure content is visible even if AOS JS doesn't load */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}


.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-7 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-6 {
    margin-bottom: 4rem !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

/* Section styling */
section {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
}

section:nth-child(even) {
    background: #f8fafc !important;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: #112D55;
    border: none !important;
    font-weight: 600;
    color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 42, 79, 0.25);
    background: #0d2241;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image-wrapper {
    text-align: center;
}

.hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    object-fit: contain;
}

/* Image optimization for all devices */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive images with proper aspect ratio */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    img {
        width: 100%;
        max-width: 100%;
    }
}
    height: auto;
    border-radius: 20px;
}

.credit-card-display .card {
    border-radius: 20px;
    transition: transform 0.3s ease;
    background: white;
}

.credit-card-display .card:hover {
    transform: translateY(-10px);
}

.score-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Stats Section */
.stat-card {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card p,
.stat-card .text-muted {
    color: #1e293b !important;
    font-weight: 600;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8 !important;
    font-size: 1.25rem;
}

.stat-number {
    font-size: 3rem;
    color: #1e293b !important;
    margin: 1rem 0;
}

/* How It Works - BRAND NEW DESIGN */
#how-it-works {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 6rem 0 !important;
    position: relative;
    overflow: hidden;
}

.how-works-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.how-works-bg::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: 100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(15, 42, 79, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.how-works-container {
    position: relative;
    z-index: 2;
}

/* How Works Card */
.how-works-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.how-works-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6 0%, #0f2a4f 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.how-works-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #14b8a6;
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.15);
}

.how-works-card:hover::before {
    transform: scaleX(1);
}

.how-works-card .step-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
    z-index: 0;
    opacity: 0.6;
}

.how-works-card .card-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(15, 42, 79, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.how-works-card .card-header-icon i {
    font-size: 2rem;
    color: #14b8a6 !important;
}

.how-works-card:hover .card-header-icon {
    transform: scale(1.15) rotate(-10deg);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(15, 42, 79, 0.08) 100%);
}

.how-works-card h4 {
    color: #0f2a4f !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    z-index: 1;
}

.how-works-card p {
    color: #64748b !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.how-works-card ul {
    position: relative;
    z-index: 1;
}

.how-works-card .list-unstyled li {
    color: #64748b !important;
}

/* Results Banner */
.results-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    box-shadow: 0 12px 40px rgba(20, 184, 166, 0.08);
    position: relative;
    overflow: hidden;
    border: 2px solid #d0f2ee;
}

.results-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.result-stat {
    position: relative;
    z-index: 2;
}

.result-stat .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #0f2a4f;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.result-stat p {
    color: #475569 !important;
    font-size: 1rem !important;
    font-weight: 500;
}

/* Getting Started Steps - State Pages */
.getting-started-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.getting-started-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.getting-started-step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #14b8a6 0%, #0f2a4f 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.getting-started-step:hover {
    transform: translateX(8px);
    border-color: #14b8a6;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.12);
}

.getting-started-step:hover::before {
    transform: scaleY(1);
}

.getting-started-step .step-icon-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(15, 42, 79, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #14b8a6 !important;
    transition: all 0.3s ease;
}

.getting-started-step:hover .step-icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(15, 42, 79, 0.08) 100%);
}

.getting-started-step .step-content {
    flex-grow: 1;
}

.getting-started-step h5 {
    color: #0f2a4f !important;
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
}

.getting-started-step p {
    color: #64748b !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* States grid */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.state-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.state-chip:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 20px rgba(71, 85, 105, 0.25); background: #475569 !important; color: #ffffff !important; border-color: #475569; }

}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #94a3b8;
}

/* Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    color: #112D55;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* Pricing Cards */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--primary-color) !important;
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 50px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: white;
    border: 1px solid #e2e8f0 !important;
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background: white;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    color: #64748b;
    background: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

/* Footer */
footer a:hover {
    color: #0D2241 !important;
    font-weight: 700;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.payment-methods {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 24px rgba(13, 34, 65, 0.06);
}

.payment-header {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.payment-title {
    font-weight: 700;
    color: #0D2241;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 6px;
}

.payment-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, #112D55, #0D2241);
    transform: translateX(-50%);
    border-radius: 999px;
}

.payment-badge {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    color: #0D2241;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(13, 34, 65, 0.08);
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payment-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(13, 34, 65, 0.12);
}

.payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0D2241;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Focus-visible accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(17, 45, 85, 0.35);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Small screen polish */
@media (max-width: 576px) {
    .payment-methods {
        padding: 12px 14px;
    }

    .payment-badge {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

.credit-investigation-img {
    width: 100%;
    transform: scale(1);
    transform-origin: center;
}

.footer-link-list a {
    color: #0D2241;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-list a:hover {
    color: #0D2241;
}

/* Nav improvements */
.nav-phone {
    white-space: nowrap;
}

.nav-phone-number {
    display: inline;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

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

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

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--secondary-color);
}

/* Newsletter Form */
#newsletterForm .input-group {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#newsletterForm .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

#newsletterForm .btn {
    border: none;
    padding: 0.75rem 1.5rem;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* State chip link wrapper */
.state-chip-link {
    text-decoration: none;
    display: block;
}

.state-chip-link:hover {
    text-decoration: none;
}

/* Phone number in nav */
.nav-link.text-primary.fw-bold {
    animation: pulse 2s infinite;
}

.nav-link.text-primary.fw-bold:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Improve nav link hover */
.navbar-nav .nav-link:hover {
    color: #112D55 !important;
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .display-3,
    .display-4,
    .display-5 {
        font-size: 2.2rem;
    }

    .state-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .state-chip {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .how-works-card {
        padding: 1.75rem 1.25rem;
    }

    .how-works-card .card-header-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .how-works-card .card-header-icon i {
        font-size: 1.75rem;
    }

    .how-works-card h4 {
        font-size: 1.1rem !important;
    }

    .how-works-card p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .result-stat .stat-number {
        font-size: 2.5rem;
    }

    .results-banner {
        padding: 3rem 1.5rem !important;
    }

    .getting-started-step {
        padding: 1.5rem;
        gap: 1rem;
    }

    .getting-started-step .step-icon-box {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .getting-started-step h5 {
        font-size: 0.95rem !important;
    }

    .getting-started-step p {
        font-size: 0.85rem !important;
    }

    .pricing-card .card-body {
        padding: 2.5rem 2rem;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .footer-payments {
        justify-content: center;
    }
}

/* Enhanced Mobile Responsiveness (Extra Small Devices) */
@media (max-width: 480px) {
    /* General improvements */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5, h6 {
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .display-3 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .display-5 {
        font-size: 1.3rem !important;
    }

    /* Section padding for tiny screens */
    section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .py-6 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Navbar improvements */
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .navbar-brand img {
        height: 30px !important;
    }

    .navbar-toggler {
        padding: 0.15rem 0.5rem !important;
    }

    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.9rem;
    }

    /* Button improvements */
    .btn {
        min-height: 44px;
        padding: 10px 16px !important;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .btn-lg {
        padding: 12px 20px !important;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn-primary:active,
    .btn-outline-primary:active {
        transform: scale(0.98);
    }

    /* Form improvements for mobile */
    .form-control,
    .form-select,
    .form-control-lg,
    .form-select-lg {
        padding: 12px !important;
        font-size: 16px !important;
        min-height: 44px;
        border-radius: 8px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    textarea.form-control {
        min-height: 100px;
        resize: vertical;
    }

    .form-check-input {
        cursor: pointer;
        width: 20px;
        height: 20px;
        margin-top: 0.25rem;
    }

    .form-check-label {
        cursor: pointer;
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }

    /* Input groups */
    .input-group .form-control {
        font-size: 16px !important;
    }

    /* Card improvements */
    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Hero section */
    .hero-section {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    /* Stats section */
    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-icon {
        font-size: 2rem;
    }

    /* Service cards */
    .service-card {
        margin-bottom: 1rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    /* How it works cards */
    .how-works-card {
        padding: 1.5rem 1rem !important;
    }

    .how-works-card .card-header-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .how-works-card .card-header-icon i {
        font-size: 1.5rem;
    }

    .how-works-card h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    .how-works-card p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    .how-works-card ul {
        margin-bottom: 0 !important;
    }

    .result-stat .stat-number {
        font-size: 2rem;
    }

    .result-stat p {
        font-size: 0.85rem !important;
    }

    .results-banner {
        padding: 2rem 1rem !important;
    }

    .how-step-card .step-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }

    .how-step-card .step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .how-step-card h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .how-step-card p {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }

    /* Pricing cards */
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .pricing-card .card-body {
        padding: 1.5rem !important;
    }

    .pricing-card .display-4 {
        font-size: 2rem !important;
    }

    /* Tabs and accordions */
    .nav-tabs {
        border-bottom: 2px solid #e2e8f0;
        gap: 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
        border-radius: 8px 8px 0 0;
    }

    .accordion-button {
        padding: 1rem !important;
        font-size: 0.9rem;
    }

    .accordion-body {
        padding: 1rem !important;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Lists and links */
    .list-unstyled li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    a {
        word-break: break-word;
    }

    /* Modal improvements */
    .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        padding: 1rem !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .modal-body {
        padding: 1.5rem !important;
        font-size: 0.9rem;
    }

    .modal-footer {
        padding: 1rem !important;
        border-top: 1px solid #e2e8f0;
    }

    /* State chips grid */
    .state-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 6px !important;
    }

    .state-chip {
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
        border-radius: 6px;
    }

    /* Footer */
    footer {
        font-size: 0.85rem;
    }

    footer h6 {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    footer a {
        padding: 0.25rem 0;
    }

    .footer-link-list a {
        font-size: 0.85rem;
    }

    .payment-badge {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    /* Touch-friendly spacing */
    .nav-item {
        margin-bottom: 0.5rem;
    }

    /* Reduce animations on small screens */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Mobile landscape (480px - 640px) */
@media (max-width: 640px) and (orientation: landscape) {
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 1.5rem !important;
    }

    .display-3 {
        font-size: 1.5rem !important;
    }

    .hero-image-wrapper {
        margin-top: 1rem;
    }

    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-6 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Tablet adjustments (641px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .display-3 {
        font-size: 2rem !important;
    }

    .how-step-card {
        padding: 1.5rem !important;
    }

    .how-step-card .step-icon {
        width: 65px !important;
        height: 65px !important;
        font-size: 1.6rem !important;
    }

    .form-control,
    .form-select {
        font-size: 16px !important;
    }

    .btn {
        min-height: 44px;
    }
}
