/**
 * REDE MMY Search - Frontend Styles
 */

/* =======================
   Search Form Container
   ======================= */
.rede-mmy-search-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* =======================
   Tabs
   ======================= */
.rede-mmy-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.rede-mmy-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rede-mmy-tab:hover {
    color: var(--color-primary, #0066cc);
    background: rgba(0, 102, 204, 0.05);
}

.rede-mmy-tab.active {
    color: var(--color-primary, #0066cc);
    border-bottom-color: var(--color-primary, #0066cc);
    background: rgba(0, 102, 204, 0.05);
}

.rede-mmy-tab i {
    font-size: 18px;
}

/* =======================
   Tab Content
   ======================= */
.rede-mmy-tab-content {
    display: none;
}

.rede-mmy-tab-content.active {
    display: block;
}

/* =======================
   Dropdown Fields
   ======================= */
.rede-mmy-dropdowns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.rede-mmy-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rede-mmy-select,
.rede-mmy-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

.rede-mmy-select:focus,
.rede-mmy-input:focus {
    outline: none;
    border-color: var(--color-primary, #0066cc);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.rede-mmy-select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* =======================
   VIN Input Section
   ======================= */
.rede-mmy-vin-input {
    margin-bottom: 20px;
}

.rede-mmy-vin-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.rede-mmy-vin-help {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.rede-mmy-vin-help i {
    margin-top: 2px;
    color: var(--color-primary, #0066cc);
}

/* =======================
   Exact Fit Filter
   ======================= */
.rede-mmy-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary, #0066cc);
}

.rede-mmy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.rede-mmy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary, #0066cc);
}

.rede-mmy-checkbox span {
    font-weight: 500;
}

/* =======================
   Action Buttons
   ======================= */
.rede-mmy-actions {
    text-align: center;
}

.rede-mmy-search-btn,
.rede-mmy-vin-decode-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rede-mmy-search-btn:disabled,
.rede-mmy-vin-decode-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rede-mmy-search-btn i,
.rede-mmy-vin-decode-btn i {
    font-size: 18px;
}

/* =======================
   Results Display
   ======================= */
.rede-mmy-results {
    margin-top: 20px;
    padding: 15px 20px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 8px;
}

.rede-mmy-result-text {
    margin: 0;
    font-size: 15px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rede-mmy-result-text i {
    font-size: 20px;
}

/* =======================
   VIN Decoded Results
   ======================= */
.rede-mmy-vin-results {
    margin-top: 20px;
}

.rede-mmy-vehicle-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.rede-mmy-vehicle-card h4 {
    margin: 0 0 20px 0;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.rede-mmy-vehicle-card h4 i {
    font-size: 24px;
}

.rede-mmy-vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rede-mmy-vehicle-details p {
    margin: 0;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.rede-mmy-vehicle-details strong {
    color: #666;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =======================
   Selected Vehicle Banner
   ======================= */
.rede-mmy-selected-banner {
    background: linear-gradient(135deg, var(--color-primary, #0066cc) 0%, #0052a3 100%);
    color: #fff;
    padding: 20px;
    margin: 0 0 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.rede-mmy-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rede-mmy-banner-icon {
    font-size: 32px;
    opacity: 0.9;
}

.rede-mmy-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rede-mmy-banner-text strong {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.rede-mmy-vehicle-info {
    font-size: 20px;
    font-weight: 700;
}

.rede-mmy-banner-actions {
    display: flex;
    gap: 10px;
}

.rede-mmy-change-vehicle,
.rede-mmy-clear-vehicle {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rede-mmy-change-vehicle:hover,
.rede-mmy-clear-vehicle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =======================
   Compatibility Badges
   ======================= */
.rede-mmy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0;
}

.rede-mmy-fits {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.rede-mmy-no-fit {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

.rede-mmy-badge i {
    font-size: 18px;
}

/* =======================
   Responsive Design
   ======================= */
@media (max-width: 768px) {
    .rede-mmy-search-form {
        padding: 20px;
    }
    
    .rede-mmy-dropdowns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rede-mmy-tabs {
        flex-direction: column;
    }
    
    .rede-mmy-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .rede-mmy-tab.active {
        border-bottom: none;
        border-left-color: var(--color-primary, #0066cc);
    }
    
    .rede-mmy-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .rede-mmy-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .rede-mmy-change-vehicle,
    .rede-mmy-clear-vehicle {
        justify-content: center;
        width: 100%;
    }
    
    .rede-mmy-vehicle-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rede-mmy-search-btn,
    .rede-mmy-vin-decode-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .rede-mmy-vehicle-info {
        font-size: 18px;
    }
}

