/* Mobile Responsive CSS */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 1rem;
        z-index: 1001;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .nav-menu .nav-link,
    .nav-menu .nav-cta {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--gray-100);
        text-align: center;
        width: 100%;
    }
    
    .nav-menu .nav-link:last-child,
    .nav-menu .nav-cta {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-form {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-badges {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }

    /* Trust and Benefits Grids */
    .trust-grid,
    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Trust Badges */
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Main Content */
    .main-content {
        padding: 2rem 0;
    }

    .step-page {
        padding: 2rem 1.5rem;
        margin: 0 10px;
        border-radius: 12px;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .step-header p {
        font-size: 1rem;
    }

    /* Forms */
    .form-control {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-control.has-icon {
        padding-left: 2.75rem;
    }

    .input-wrapper .input-icon {
        left: 0.875rem;
        font-size: 1rem;
    }

    /* Radio and Checkbox Groups */
    .radio-group, .checkbox-group {
        gap: 0.75rem;
    }

    .radio-option, .checkbox-option {
        padding: 0.875rem;
    }

    .option-content {
        padding-right: 2rem;
    }

    .option-title {
        font-size: 0.9rem;
    }

    .option-description {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Dynamic Add Section */
    .dynamic-add-section {
        padding: 1rem;
    }

    .added-person {
        padding: 0.875rem;
    }

    .add-person-btn {
        width: 100%;
        padding: 0.875rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-header {
        padding: 1rem 1rem 0;
    }

    .modal-header h3 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0 1rem 1rem;
    }

    /* Enhanced Thank You Page - Mobile */
    .thank-you-page {
        padding: 1rem 0.5rem;
        min-height: auto;
    }

    .thank-you-icon {
        font-size: 4rem;
    }

    .thank-you-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .thank-you-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    /* Mobile Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .timeline-content {
        margin-left: 0;
        padding: 1rem;
        flex: 1;
    }

    .timeline-content::before {
        left: -10px;
        border-width: 8px 8px 8px 0;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.875rem;
    }

    /* Mobile Cards */
    .info-card {
        padding: 1.5rem;
        margin: 1.5rem 0.5rem;
        border-radius: 15px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    .card-note {
        padding: 0.75rem;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .card-note i {
        margin-top: 0;
        font-size: 1.1rem;
    }

    /* Mobile Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .benefit-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .benefit-item i {
        font-size: 1rem;
    }

    .benefit-item span {
        font-size: 0.85rem;
    }

    /* Mobile Contact Section */
    .contact-section {
        margin: 2rem auto 1.5rem;
        padding: 0 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
        justify-content: center;
    }

    /* Mobile Reference Section */
    .reference-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .reference-text {
        font-size: 0.8rem;
    }

    .reference-id {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hide floating elements on mobile */
    .floating-elements {
        display: none;
    }

    /* Mobile Animation Adjustments */
    .success-ripple {
        width: 80px;
        height: 80px;
    }

    .timeline-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Reduce motion for mobile users */
    @media (prefers-reduced-motion: reduce) {
        .thank-you-icon,
        .success-ripple,
        .timeline-item,
        .info-card,
        .contact-section,
        .reference-section {
            animation: none;
        }
        
        .timeline-item {
            opacity: 1;
        }
        
        .float-icon {
            animation: none;
        }
    }

@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        padding: calc(56px + calc(var(--spacing-16) * 0.8)) 0 calc(calc(var(--spacing-6) * 4) * 0.8);
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.25rem;
        margin: 0 1rem;
    }
    
    /* Step Pages */
    .step-page {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    /* Trust Badges */
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Form Controls Mobile */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.875rem 1rem;
        min-height: 3.5rem;
    }

    .form-control.has-icon {
        padding-left: 2.75rem;
    }

    .input-wrapper .input-icon {
        left: 0.875rem;
        font-size: 1rem;
    }

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

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

    /* Date picker improvements on mobile */
    .form-control[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Footer */
    .footer-logo-img {
        width: 80px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}
