/*--------------------------------------------------------------
# Form Design System Foundation
--------------------------------------------------------------*/
:root {
    /* Form-specific Color System */
    --form-primary: var(--heading-color, #5a011b);
    --form-secondary: var(--accent-color, #c1033a);
    --form-success: #10b981;
    --form-error: #ef4444;
    --form-warning: #f59e0b;
    --form-background: #ffffff;
    --form-border: #e5e7eb;
    --form-border-focus: var(--heading-color, #5a011b);
    --form-text: #374151;
    --form-label: #6b7280;
    --form-placeholder: #9ca3af;
    /* Legacy color mappings for existing code */
    --burgundy-primary: var(--heading-color, #5a011b);
    --burgundy-dark: var(--accent-color, #c1033a);
    --chat-text-dark: var(--default-color, #444444);
    --color-primary: var(--heading-color, #5a011b);
    --color-secondary: var(--accent-color, #c1033a);
    /* Form Typography Scale */
    --form-font-xs: 0.75rem; /* 12px */
    --form-font-sm: 0.875rem; /* 14px */
    --form-font-base: 1rem; /* 16px */
    --form-font-lg: 1.125rem; /* 18px */
    --form-font-xl: 1.25rem; /* 20px */
    /* Form Spacing System (8px grid) */
    --form-space-xs: 0.25rem; /* 4px */
    --form-space-sm: 0.5rem; /* 8px */
    --form-space-md: 1rem; /* 16px */
    --form-space-lg: 1.5rem; /* 24px */
    --form-space-xl: 2rem; /* 32px */
    --form-space-2xl: 3rem; /* 48px */
    --form-space-3xl: 4rem; /* 64px */
    /* Animation Timing Functions */
    --form-timing-fast: 0.15s;
    --form-timing-normal: 0.3s;
    --form-timing-slow: 0.5s;
    /* Animation Easing Curves */
    --form-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --form-easing-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --form-easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --form-easing-sharp: cubic-bezier(0.4, 0, 0.6, 1);
    /* Form Component Dimensions */
    --form-input-height: 3rem; /* 48px - minimum touch target */
    --form-input-height-sm: 2.5rem; /* 40px */
    --form-button-height: 3rem; /* 48px - minimum touch target */
    --form-border-radius: 0.5rem; /* 8px */
    --form-border-radius-lg: 1rem; /* 16px */
    /* Shadow System */
    --form-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --form-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --form-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --form-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --form-shadow-focus: 0 0 0 3px rgba(90, 1, 27, 0.1);
    /* Form State Colors with Opacity Variants */
    --form-primary-50: rgba(90, 1, 27, 0.05);
    --form-primary-100: rgba(90, 1, 27, 0.1);
    --form-primary-200: rgba(90, 1, 27, 0.2);
    --form-primary-300: rgba(90, 1, 27, 0.3);
    --form-primary-500: rgba(90, 1, 27, 0.5);
    --form-success-50: rgba(16, 185, 129, 0.05);
    --form-success-100: rgba(16, 185, 129, 0.1);
    --form-success-200: rgba(16, 185, 129, 0.2);
    --form-error-50: rgba(239, 68, 68, 0.05);
    --form-error-100: rgba(239, 68, 68, 0.1);
    --form-error-200: rgba(239, 68, 68, 0.2);
}

/*--------------------------------------------------------------
# CTA Mini Section
--------------------------------------------------------------*/
.cta-mini {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

    .cta-mini h3 {
        color: var(--burgundy-primary);
        font-weight: 700;
        font-size: 2rem;
    }

.btn-cta-primary {
    background: linear-gradient(135deg, var(--burgundy-primary) 0%, var(--burgundy-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
}

    .btn-cta-primary:hover {
        background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-primary) 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(128, 0, 32, 0.4);
        color: white;
    }

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-color: var(--surface-color, #ffffff);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    /* Shimmer effect - using ::after to avoid conflict with badges */
    .pricing .pricing-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
        z-index: 2;
        pointer-events: none;
    }

    .pricing .pricing-item:hover::after {
        left: 100%;
    }

    .pricing .pricing-item.card {
        background-color: var(--surface-color, #ffffff);
    }

    .pricing .pricing-item h3 {
        font-weight: 700;
        font-size: 24px;
        color: var(--burgundy-primary);
        margin-bottom: 15px;
    }

    .pricing .pricing-item p.description {
        color: var(--chat-text-dark);
        margin-bottom: 20px;
        min-height: 60px;
    }

    .pricing .pricing-item h4 {
        font-size: 42px;
        font-weight: 500;
        font-family: 'Montserrat', sans-serif;
        color: var(--burgundy-primary);
        margin-bottom: 25px;
    }

        .pricing .pricing-item h4 sup {
            font-size: 24px;
            top: -15px;
            left: -3px;
        }

        .pricing .pricing-item h4 span {
            color: #6c757d;
            font-size: 16px;
            font-weight: 300;
        }

    .pricing .pricing-item ul li {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        color: var(--chat-text-dark);
    }

        .pricing .pricing-item ul li i {
            color: var(--burgundy-primary);
            font-size: 20px;
            margin-right: 10px;
        }

    .pricing .pricing-item .buy-btn {
        padding: 12px 35px;
        color: var(--burgundy-primary);
        border: 1px solid var(--burgundy-primary);
        transition: 0.3s;
        font-size: 16px;
        font-weight: 500;
        font-family: 'Montserrat', sans-serif;
    }

        .pricing .pricing-item .buy-btn:hover {
            background: var(--burgundy-primary);
            color: white;
        }

    .pricing .pricing-item.most-popular {
        position: relative;
    }

        .pricing .pricing-item.most-popular::before {
            content: "Most Popular";
            position: absolute;
            top: -1px;
            left: -1px;
            background: var(--burgundy-primary);
            color: white;
            padding: 6px 16px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 0.375rem 0 8px 0;
            z-index: 3;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(128, 0, 32, 0.3);
        }

    .pricing .pricing-item.recommended-card {
        position: relative;
    }

        .pricing .pricing-item.recommended-card::before {
            content: "Recommended";
            position: absolute;
            top: -1px;
            left: -1px;
            background: var(--burgundy-primary);
            color: white;
            padding: 6px 16px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 0.375rem 0 8px 0;
            z-index: 3;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(128, 0, 32, 0.3);
        }

/* Subtle floating animation - paused on hover */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.pricing .pricing-item {
    animation: gentleFloat 8s ease-in-out infinite;
}

    .pricing .pricing-item:nth-child(even) {
        animation-delay: -4s;
    }

    /* Pause animation and apply hover effects */
    .pricing .pricing-item:hover {
        animation-play-state: paused;
        transform: translateY(-15px) scale(1.03) !important;
        box-shadow: 0 25px 50px rgba(128, 0, 32, 0.15) !important;
        border-color: var(--burgundy-primary);
    }

    .pricing .pricing-item.most-popular:hover,
    .pricing .pricing-item.recommended-card:hover {
        animation-play-state: paused;
        transform: translateY(-20px) scale(1.05) !important;
        box-shadow: 0 30px 60px rgba(128, 0, 32, 0.2) !important;
    }

/* Pricing Toggle Text-based */
.pricing-toggle-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    font-size: 11px;
    z-index: 4;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 6px;
    border-radius: 20px;
    border: 1px solid rgba(128, 0, 32, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .pricing-toggle-container .toggle-label {
        padding: 6px 12px;
        margin: 0 1px;
        color: var(--chat-text-dark);
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 15px;
        line-height: 1;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .pricing-toggle-container .toggle-label.active {
            font-weight: 700;
            color: white;
            background-color: var(--burgundy-primary);
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(128, 0, 32, 0.3);
        }

        .pricing-toggle-container .toggle-label:not(.active):hover {
            background-color: rgba(128, 0, 32, 0.1);
            transform: scale(1.02);
        }

.billing-note {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--chat-text-dark);
    margin-top: -10px;
    margin-bottom: 15px;
    min-height: 18px;
}

.highlight-save {
    background-color: var(--burgundy-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

    .highlight-save:hover {
        transform: scale(1.05);
    }

/* Additional card improvements */
.pricing .pricing-item .card-body {
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context */
.pricing .pricing-item.most-popular,
.pricing .pricing-item.recommended-card {
    isolation: isolate;
}

/* Smooth transitions for all interactive elements */
.pricing .pricing-item * {
    transition: inherit;
}

/* Prevent layout shift during animations */
.pricing .row {
    align-items: stretch;
}

.pricing .pricing-item {
    will-change: transform;
}

/*--------------------------------------------------------------
# Agency Quote Section
--------------------------------------------------------------*/
.agency-quote-section {
    padding-top: 40px;
    background: #fdfdfe; /* A very light off-white to separate from pricing */
}

    .agency-quote-section .agency-quote-toggle {
        text-align: center;
    }

/* Enhanced Agency Quote Toggle Button */
.agency-quote-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Enhanced gradient background */
    background: linear-gradient(135deg, var(--form-primary) 0%, var(--form-secondary) 100%);
    /* Improved typography */
    color: #ffffff;
    font-size: var(--form-font-lg);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: none;
    text-decoration: none;
    /* Enhanced dimensions for better touch targets */
    min-height: 3.5rem; /* 56px - exceeds 44px minimum */
    padding: var(--form-space-md) var(--form-space-2xl);
    border-radius: 2rem; /* More pronounced rounded corners */
    /* Enhanced multi-layer shadow system */
    box-shadow: 0 2px 4px rgba(90, 1, 27, 0.1), 0 8px 16px rgba(90, 1, 27, 0.15), 0 16px 32px rgba(90, 1, 27, 0.1);
    /* Smooth transitions */
    transition: all var(--form-timing-normal) var(--form-easing-standard);
    /* Remove default border */
    border: none;
    /* Ensure proper positioning context */
    position: relative;
    overflow: hidden;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Subtle gradient overlay for depth */
    .agency-quote-toggle a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
        border-radius: inherit;
        transition: opacity var(--form-timing-normal) var(--form-easing-standard);
        pointer-events: none;
    }

    /* Hover state with enhanced effects */
    .agency-quote-toggle a:hover {
        /* Enhanced scale and lift effect */
        transform: translateY(-4px) scale(1.03);
        /* Enhanced multi-layer shadow on hover */
        box-shadow: 0 4px 8px rgba(90, 1, 27, 0.15), 0 12px 24px rgba(90, 1, 27, 0.2), 0 24px 48px rgba(90, 1, 27, 0.15);
        /* Subtle background shift */
        background: linear-gradient(135deg, var(--form-secondary) 0%, var(--form-primary) 100%);
        /* Maintain text color */
        color: #ffffff;
    }

        /* Enhanced overlay on hover */
        .agency-quote-toggle a:hover::before {
            opacity: 0.8;
        }

    /* Active state for click feedback */
    .agency-quote-toggle a:active {
        transform: translateY(-2px) scale(0.98);
        box-shadow: 0 2px 4px rgba(90, 1, 27, 0.2), 0 6px 12px rgba(90, 1, 27, 0.25), 0 12px 24px rgba(90, 1, 27, 0.2);
        transition-duration: var(--form-timing-fast);
    }

    /* Focus state for accessibility */
    .agency-quote-toggle a:focus {
        outline: none;
        box-shadow: 0 2px 4px rgba(90, 1, 27, 0.1), 0 8px 16px rgba(90, 1, 27, 0.15), 0 16px 32px rgba(90, 1, 27, 0.1), var(--form-shadow-focus);
    }

    /* Focus-visible for keyboard navigation */
    .agency-quote-toggle a:focus-visible {
        box-shadow: 0 2px 4px rgba(90, 1, 27, 0.1), 0 8px 16px rgba(90, 1, 27, 0.15), 0 16px 32px rgba(90, 1, 27, 0.1), 0 0 0 4px rgba(90, 1, 27, 0.2);
    }

    /* Enhanced arrow icon styling with smooth animation system */
    .agency-quote-toggle a .arrow-icon {
        margin-left: var(--form-space-md);
        font-size: var(--form-font-sm);
        /* Enhanced transition timing to match form reveal animation (0.4s) */
        transition: transform 0.4s var(--form-easing-bounce), opacity var(--form-timing-normal) var(--form-easing-standard), color var(--form-timing-normal) var(--form-easing-standard);
        display: inline-block;
        opacity: 0.9;
        color: rgba(255, 255, 255, 0.9);
        /* Ensure smooth animation performance */
        will-change: transform;
        transform-origin: center;
        /* Improve rendering quality for smooth animations */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Initial state - chevron pointing down */
        transform: rotate(0deg) scale(1);
    }

    /* Icon rotation when expanded - smooth 180deg rotation for clear state indication */
    .agency-quote-toggle a[aria-expanded="true"] .arrow-icon {
        transform: rotate(180deg) scale(1);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }

    /* Icon hover effect with enhanced feedback */
    .agency-quote-toggle a:hover .arrow-icon {
        opacity: 1;
        color: rgba(255, 255, 255, 1);
        transform: translateX(2px) scale(1.1);
    }

    /* Icon when expanded and hovered - maintains rotation with hover effects */
    .agency-quote-toggle a[aria-expanded="true"]:hover .arrow-icon {
        transform: rotate(180deg) translateX(2px) scale(1.1);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }

    /* Enhanced icon animation states for precise visual feedback */
    .agency-quote-toggle a .arrow-icon.expanding {
        animation: chevronExpand 0.4s var(--form-easing-bounce) forwards;
    }

    .agency-quote-toggle a .arrow-icon.collapsing {
        animation: chevronCollapse 0.4s var(--form-easing-bounce) forwards;
    }

/* Keyframe animations for precise control and smooth state transitions */
@keyframes chevronExpand {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.9;
        color: rgba(255, 255, 255, 0.9);
    }

    25% {
        transform: rotate(45deg) scale(1.05);
        opacity: 0.95;
    }

    50% {
        transform: rotate(90deg) scale(1.15);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }

    75% {
        transform: rotate(135deg) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }
}

@keyframes chevronCollapse {
    0% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }

    25% {
        transform: rotate(135deg) scale(1.05);
        opacity: 1;
    }

    50% {
        transform: rotate(90deg) scale(1.15);
        opacity: 1;
        color: rgba(255, 255, 255, 1);
    }

    75% {
        transform: rotate(45deg) scale(1.05);
        opacity: 0.95;
    }

    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.9;
        color: rgba(255, 255, 255, 0.9);
    }
}

/* Additional state indicators for enhanced visual feedback */
.agency-quote-toggle a .arrow-icon.state-collapsed {
    transform: rotate(0deg) scale(1);
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.agency-quote-toggle a .arrow-icon.state-expanded {
    transform: rotate(180deg) scale(1);
    opacity: 1;
    color: rgba(255, 255, 255, 1);
}

/* Smooth transition for direct state changes without animation classes */
.agency-quote-toggle a .arrow-icon:not(.expanding):not(.collapsing) {
    transition: transform 0.4s var(--form-easing-bounce), opacity var(--form-timing-normal) var(--form-easing-standard), color var(--form-timing-normal) var(--form-easing-standard);
}

/* Enhanced visual feedback for accessibility and user experience */
.agency-quote-toggle a .arrow-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s var(--form-easing-standard);
    pointer-events: none;
    z-index: -1;
}

.agency-quote-toggle a:hover .arrow-icon::before,
.agency-quote-toggle a:focus .arrow-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Enhanced state indication with subtle background changes */
.agency-quote-toggle a[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--form-secondary) 0%, var(--form-primary) 100%);
}

.agency-quote-toggle a[aria-expanded="false"] {
    background: linear-gradient(135deg, var(--form-primary) 0%, var(--form-secondary) 100%);
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .agency-quote-toggle a {
        font-size: var(--form-font-base);
        padding: var(--form-space-sm) var(--form-space-xl);
        min-height: 3rem; /* Still above 44px minimum */
    }

        .agency-quote-toggle a .arrow-icon {
            margin-left: var(--form-space-sm);
            font-size: var(--form-font-xs); /* Slightly smaller on mobile */
        }
}

/* Ensure proper touch targets on small screens */
@media (max-width: 480px) {
    .agency-quote-toggle a {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

        .agency-quote-toggle a .arrow-icon {
            margin-left: var(--form-space-xs);
        }
}

/*--------------------------------------------------------------
# Modern Form Container with Card-Based Layout
--------------------------------------------------------------*/
#agency-quote-form .form-container {
    /* Modern card design with elevated appearance */
    background: var(--form-background);
    /* Soft border radius as specified (16px) */
    border-radius: var(--form-border-radius-lg); /* 16px */
    /* Elegant multi-layer shadow system for depth */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.04);
    /* Subtle gradient overlay background for visual depth */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%), var(--form-background);
    /* Responsive padding system that adapts to different screen sizes */
    padding: var(--form-space-2xl); /* 48px on desktop */
    /* Enhanced border with subtle backdrop effect */
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Backdrop blur effect for modern glass-like appearance */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Smooth transitions for interactive states */
    transition: all var(--form-timing-normal) var(--form-easing-standard);
    /* Positioning and spacing */
    margin-top: var(--form-space-lg); /* 24px */
    position: relative;
    overflow: hidden;
    /* Ensure proper stacking context */
    isolation: isolate;
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Subtle inner glow effect for enhanced depth */
    #agency-quote-form .form-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 30%, transparent 70%, rgba(90, 1, 27, 0.02) 100%);
        border-radius: inherit;
        pointer-events: none;
        z-index: -1;
    }

    /* Enhanced hover state for interactive feedback */
    #agency-quote-form .form-container:hover {
        /* Subtle lift effect on hover */
        transform: translateY(-2px);
        /* Enhanced shadow on hover */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.1), 0 16px 36px rgba(0, 0, 0, 0.08), 0 32px 64px rgba(0, 0, 0, 0.06);
        /* Subtle border enhancement */
        border-color: rgba(90, 1, 27, 0.1);
    }

/* Responsive padding adjustments for different screen sizes */
@media (max-width: 1200px) {
    #agency-quote-form .form-container {
        padding: var(--form-space-xl); /* 32px on large tablets */
    }
}

@media (max-width: 768px) {
    #agency-quote-form .form-container {
        padding: var(--form-space-lg); /* 24px on tablets */
        margin-top: var(--form-space-md); /* 16px */
        /* Slightly reduced border radius for mobile */
        border-radius: 12px;
        /* Adjusted shadow for mobile */
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 480px) {
    #agency-quote-form .form-container {
        padding: var(--form-space-md); /* 16px on mobile */
        margin-top: var(--form-space-sm); /* 8px */
        /* Mobile-optimized border radius */
        border-radius: 8px;
        /* Simplified shadow for mobile performance */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 16px rgba(0, 0, 0, 0.08);
    }
}

/* Enhanced backdrop effect for supported browsers */
@supports (backdrop-filter: blur(10px)) {
    #agency-quote-form .form-container {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%), var(--form-background);
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    #agency-quote-form .form-container {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 1) 100%), var(--form-background);
    }
}

#agency-quote-form .php-email-form input[type="text"],
#agency-quote-form .php-email-form input[type="email"],
#agency-quote-form .php-email-form textarea {
    border-radius: 8px;
    box-shadow: none;
    font-size: 15px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

    #agency-quote-form .php-email-form input[type="text"]:focus,
    #agency-quote-form .php-email-form input[type="email"]:focus,
    #agency-quote-form .php-email-form textarea:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(139, 0, 32, 0.1);
    }

#agency-quote-form .php-email-form button[type="submit"] {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: 0;
    padding: 12px 35px;
    color: #fff;
    transition: all 0.4s ease;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(139, 0, 32, 0.2);
}

    #agency-quote-form .php-email-form button[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(139, 0, 32, 0.3);
    }
