/**
 * ExhaustHub Fitment Checker - Modern & Sexy Design
 * Inline widget for product pages
 */

/* Main Widget Container */
.exhausthub-fitment-widget {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    z-index: 1;
}

.fitment-container {
    background: linear-gradient(135deg, #9B51E0 0%, #7B3FCC 100%);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(155, 81, 224, 0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

.fitment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

/* Header Section */
.fitment-header {
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Collapsible Header */
.collapsible-header {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.98);
}

.collapsible-header .header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.collapse-icon {
    margin-left: auto;
    width: 32px;
    height: 32px;
    background: rgba(155, 81, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9B51E0;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}

.collapsible-header:hover .collapse-icon {
    background: rgba(155, 81, 224, 0.2);
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collapsible-header.active .collapse-icon {
    transform: rotate(180deg);
    background: rgba(155, 81, 224, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Collapsible Content */
.collapsible-content {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
}

.collapsible-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fitment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9B51E0 0%, #7B3FCC 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(155, 81, 224, 0.3);
}

.header-text h3 {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-text p {
    margin: 0;
    color: #718096;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* Form Section */
.fitment-form {
    padding: 40px;
    background: white;
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.form-label i {
    font-size: 16px;
    color: #9B51E0;
    width: 18px;
    text-align: center;
}

.select-container {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #e2e8f0;
}

.select-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.select-container:focus-within {
    border-color: #9B51E0;
    box-shadow: 0 0 0 4px rgba(155, 81, 224, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-select {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    color: #2d3748;
    appearance: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
}

.form-select:disabled {
    background: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

.form-select:disabled + .select-icon {
    color: #cbd5e0;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.select-container:focus-within .select-icon {
    color: #9B51E0;
    transform: translateY(-50%) rotate(180deg);
}

/* Check Button */
.fitment-actions {
    text-align: center;
    margin-bottom: 32px;
}

.fitment-check-btn {
    background: linear-gradient(135deg, #9B51E0 0%, #7B3FCC 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.fitment-check-btn::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;
}

.fitment-check-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(155, 81, 224, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fitment-check-btn:hover:not(:disabled)::before {
    left: 100%;
}

.fitment-check-btn:active:not(:disabled) {
    transform: translateY(0px);
    transition: all 0.1s ease;
}

.fitment-check-btn:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.fitment-check-btn:hover:not(:disabled) .btn-icon {
    transform: scale(1.1);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Section */
.fitment-result {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.fitment-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9B51E0 0%, #7B3FCC 100%);
    border-radius: 16px 16px 0 0;
}

.fitment-result.show {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    position: relative;
}

.result-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.result-icon::before {
    font-size: 32px;
    font-weight: bold;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-message {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    margin: 0;
}

.result-details {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
}

/* Result States */
.fitment-result.checking {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #0ea5e9;
}

.fitment-result.checking::before {
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
}

.fitment-result.checking .result-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.fitment-result.fits {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #10b981;
}

.fitment-result.fits::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.fitment-result.fits .result-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.fitment-result.doesnt-fit {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border-color: #ef4444;
}

.fitment-result.doesnt-fit::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.fitment-result.doesnt-fit .result-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.fitment-result.error {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #f59e0b;
}

.fitment-result.error::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.fitment-result.error .result-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Result Icons */
.fitment-result.fits .result-icon::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 28px;
}

.fitment-result.doesnt-fit .result-icon::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 28px;
}

.fitment-result.checking .result-icon::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 28px;
    animation: spin 1s linear infinite;
}

.fitment-result.error .result-icon::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 28px;
}

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

/* Professional result animations */
.fitment-result.show .result-content {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result state transitions */
.fitment-result {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fitment-result.checking,
.fitment-result.fits,
.fitment-result.doesnt-fit,
.fitment-result.error {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* No Data State */
.exhausthub-fitment-checker.no-data {
    background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
    border: 2px solid #ed8936;
    color: #c05621;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

.no-data .fitment-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(237, 137, 54, 0.2);
}

.no-data .fitment-icon {
    background: #ed8936;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exhausthub-fitment-widget {
        margin: 20px 0;
    }
    
    .fitment-container {
        border-radius: 20px;
    }
    
    .fitment-header {
        padding: 24px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .collapse-icon {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .fitment-icon {
        width: 50px;
        height: 50px;
    }
    
    .header-text h3 {
        font-size: 20px;
    }
    
    .header-text p {
        font-size: 14px;
    }
    
    .fitment-form {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .form-select {
        padding: 16px 45px 16px 18px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .fitment-check-btn {
        width: 100%;
        padding: 18px 32px;
        font-size: 16px;
    }
    
    .result-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px;
    }
    
    .result-icon {
        width: 60px;
        height: 60px;
    }
    
    .result-icon::before {
        font-size: 24px;
    }
    
    .result-message {
        font-size: 20px;
    }
    
    .result-details {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .fitment-header {
        padding: 20px;
    }
    
    .fitment-form {
        padding: 20px;
    }
    
    .form-grid {
        gap: 16px;
    }
    
    .header-text h3 {
        font-size: 18px;
    }
    
    .fitment-check-btn {
        padding: 16px 24px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* Loading Animation for Form Fields */
.form-group.loading .select-container {
    position: relative;
    overflow: hidden;
}

.form-group.loading .select-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 81, 224, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States for Accessibility */
.form-select:focus {
    outline: 2px solid #9B51E0;
    outline-offset: 2px;
}

.fitment-check-btn:focus {
    outline: 2px solid #9B51E0;
    outline-offset: 4px;
}

.collapsible-header:focus {
    outline: 2px solid #9B51E0;
    outline-offset: 2px;
    border-radius: 8px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .fitment-container {
        border: 2px solid #000;
    }
    
    .form-select {
        border: 2px solid #000;
    }
    
    .fitment-check-btn {
        border: 2px solid #000;
    }
}

/* Shortcode Widget Variations */
.exhausthub-fitment-widget.shortcode-widget {
    margin: 20px 0;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact {
    margin: 15px 0;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact .fitment-header {
    padding: 20px;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact .fitment-form {
    padding: 24px;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact .form-grid {
    gap: 16px;
    margin-bottom: 20px;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact .form-select {
    padding: 14px 45px 14px 16px;
    font-size: 14px;
}

.exhausthub-fitment-widget.shortcode-widget.style-compact .fitment-check-btn {
    padding: 16px 28px;
    font-size: 15px;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal {
    margin: 10px 0;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal .fitment-header {
    display: none;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal .fitment-form {
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal .form-grid {
    gap: 12px;
    margin-bottom: 16px;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal .form-select {
    padding: 12px 40px 12px 14px;
    font-size: 14px;
    border-radius: 8px;
}

.exhausthub-fitment-widget.shortcode-widget.style-minimal .fitment-check-btn {
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 8px;
}

/* No Fitment State */
.exhausthub-fitment-widget.no-fitment .fitment-container {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.exhausthub-fitment-widget.no-fitment .fitment-form {
    background: transparent;
}

/* Focus States for Shortcode Widgets */
.exhausthub-fitment-widget.shortcode-widget .form-group.focused .select-container {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Elementor Integration */
.elementor-widget-shortcode .exhausthub-fitment-widget {
    width: 100%;
}

.elementor-widget-shortcode .exhausthub-fitment-widget .fitment-container {
    max-width: none;
}

/* Elementor Typography Controls Support for Simple Fitment Form */
.elementor-widget-shortcode .simple-fitment-form {
    /* Allow Elementor to override typography */
    font-family: inherit;
}

.elementor-widget-shortcode .simple-fitment-title {
    /* Allow Elementor to control title typography */
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-size: var(--e-global-typography-primary-font-size, 18px);
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    line-height: var(--e-global-typography-primary-line-height, 1.3);
    letter-spacing: var(--e-global-typography-primary-letter-spacing, normal);
    text-transform: var(--e-global-typography-primary-text-transform, none);
}

.elementor-widget-shortcode .simple-form-label {
    /* Allow Elementor to control label typography */
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: var(--e-global-typography-secondary-font-size, 14px);
    font-weight: var(--e-global-typography-secondary-font-weight, 600);
    line-height: var(--e-global-typography-secondary-line-height, 1.4);
    letter-spacing: var(--e-global-typography-secondary-letter-spacing, normal);
    text-transform: var(--e-global-typography-secondary-text-transform, capitalize);
}

.elementor-widget-shortcode .simple-form-select {
    /* Allow Elementor to control form field typography */
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: var(--e-global-typography-text-font-size, 14px);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    line-height: var(--e-global-typography-text-line-height, 1.4);
    letter-spacing: var(--e-global-typography-text-letter-spacing, normal);
}

.elementor-widget-shortcode .simple-fitment-message {
    /* Allow Elementor to control success message typography */
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-size: var(--e-global-typography-accent-font-size, 18px);
    font-weight: var(--e-global-typography-accent-font-weight, bold);
    line-height: var(--e-global-typography-accent-line-height, 1.3);
    letter-spacing: var(--e-global-typography-accent-letter-spacing, normal);
    text-transform: var(--e-global-typography-accent-text-transform, none);
}

.elementor-widget-shortcode .simple-fitment-details {
    /* Allow Elementor to control details typography */
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: var(--e-global-typography-text-font-size, 14px);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    line-height: var(--e-global-typography-text-line-height, 1.4);
    letter-spacing: var(--e-global-typography-text-letter-spacing, normal);
}

/* Elementor Color Controls Support */
.elementor-widget-shortcode .simple-fitment-form {
    /* Allow background color override */
    background: var(--e-global-color-primary, transparent);
}

.elementor-widget-shortcode .simple-fitment-title {
    /* Allow title color override */
    color: #000;
}

.elementor-widget-shortcode .simple-form-label {
    /* Allow label color override */
    color: var(--e-global-color-secondary, #8B5CF6);
}

.elementor-widget-shortcode .simple-fitment-result {
    /* Allow success background color override */
    background: var(--e-global-color-accent, linear-gradient(135deg, #10b981 0%, #059669 100%));
}


.elementor-widget-shortcode .simple-close-btn {
    /* Allow close button color override */
    background: var(--e-global-color-accent, #8B5CF6);
}

.elementor-widget-shortcode .simple-close-btn:hover {
    background: var(--e-global-color-accent, #7C3AED);
}

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

/* Simple Fitment Form - Modern Clean Design */
.simple-fitment-form {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin: 30px 0;
    position: relative;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.simple-fitment-form:hover {
    box-shadow: none;
    border-color: transparent;
}

.simple-fitment-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #9B51E0;
    text-align: left;
    letter-spacing: -0.5px;
}

.simple-fitment-form-content {
    padding: 32px;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: border-radius 0.3s ease, border 0.3s ease;
}

/* When result is showing, remove bottom border and radius */
.simple-fitment-form.has-result .simple-fitment-form-content {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.simple-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.simple-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.simple-form-label {
    display: block;
    color: #9B51E0;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.simple-form-select-container {
    position: relative;
    display: flex;
}

.simple-form-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    appearance: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.simple-form-select:hover:not(:disabled) {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.simple-form-select:focus {
    outline: none;
    border-color: #9B51E0;
    box-shadow: 0 0 0 4px rgba(155, 81, 224, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.simple-form-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
    box-shadow: none;
}

.simple-form-select-container::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9B51E0;
    font-size: 11px;
    pointer-events: none;
    transition: all 0.25s ease;
}

.simple-form-select:focus + .simple-form-select-container::after,
.simple-form-select-container:has(.simple-form-select:focus)::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Close Button - Hidden by default, can be shown if needed */
.simple-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #8B5CF6;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.simple-close-btn:hover {
    background: #7C3AED;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Fitment Result Section */
.simple-fitment-result {
    padding: 0 !important;
    background: transparent !important;
    display: none;
    position: relative;
    margin: 0 !important;
    border-radius: 0;
    overflow: hidden;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.simple-fitment-success,
.simple-fitment-failure {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 0 0 12px 12px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success State */
.simple-fitment-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.simple-fitment-success .simple-fitment-checkmark {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Failure State */
.simple-fitment-failure {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.simple-fitment-failure .simple-fitment-checkmark {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.simple-fitment-text {
    flex: 1;
}

.simple-fitment-message {
    color: white;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

/* Loader Overlay */
.simple-fitment-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #9B51E0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .simple-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .simple-fitment-form-content {
        padding: 24px 20px;
    }
    
    .simple-fitment-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .simple-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .simple-fitment-success,
    .simple-fitment-failure {
        padding: 20px;
        gap: 16px;
    }
    
    .simple-fitment-success .simple-fitment-checkmark,
    .simple-fitment-failure .simple-fitment-checkmark {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .simple-fitment-message {
        font-size: 15px;
    }
}
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.simple-fitment-result.error .simple-fitment-checkmark {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.simple-fitment-result.show {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simple-fitment-success {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.simple-fitment-checkmark {
    color: white;
    font-size: 28px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.simple-fitment-text {
    flex: 1;
    color: white;
}

.simple-fitment-message {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.simple-fitment-details {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.simple-fitment-specs {
    margin: 0 0 4px 0;
    font-weight: 500;
}

.simple-fitment-specs:last-child {
    margin-bottom: 0;
}

.simple-fitment-charge {
    color: #9B51E0;
    font-size: 14px;
    margin-bottom: 8px;
}

.simple-fitment-notes {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.simple-fitment-notes ul {
    margin: 4px 0;
    padding-left: 16px;
}

.simple-fitment-notes li {
    margin-bottom: 2px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .simple-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .simple-fitment-form-content {
        padding: 16px;
    }
    
    .simple-fitment-result {
        margin-top: 16px;
    }
    
    .simple-fitment-success {
        padding: 16px;
        gap: 12px;
    }
    
    .simple-fitment-checkmark {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .simple-fitment-message {
        font-size: 16px;
    }
}

/* Search Filter Shortcode Styles */
.exhaust-search-filter-container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: "Oswald", Sans-serif;
}

.exhaust-search-filter-form {
    padding: 24px;
}

.filter-fields-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: #9B51E0;
    box-shadow: 0 0 0 3px rgba(155, 81, 224, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.filter-submit-row {
    text-align: center;
}

.filter-submit-btn {
    background: linear-gradient(135deg, #9B51E0 0%, #7B3FCC 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(155, 81, 224, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.filter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 81, 224, 0.35);
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.filter-submit-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Responsive Design for Search Filter */
@media (max-width: 1024px) {
    .filter-fields-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .filter-fields-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .exhaust-search-filter-form {
        padding: 20px;
    }
    
    .filter-submit-btn {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .filter-fields-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exhaust-search-filter-container {
        margin: 16px;
        border-radius: 8px;
    }
    
    .exhaust-search-filter-form {
        padding: 16px;
    }
}