/*
 Theme Name:   RestoFixer
 Description:  RestoFixer theme
 Template:     generatepress
 Version:      1.0
*/

/* ============================================
   CSS Variables - Color System
   ============================================ */
:root {
    /* Brand Colors */
    --rf-color-primary: #0066cc;
    --rf-color-primary-dark: #0052a3;
    
    /* Status Colors */
    --rf-color-success: #00a32a;
    --rf-color-success-bg: #e6fffa;
    --rf-color-warning: #d97008;
    --rf-color-warning-bg: #fff4e6;
    --rf-color-danger: #d63638;
    --rf-color-danger-bg: #ffe6e6;
    --rf-color-neutral: #646970;
    --rf-color-neutral-bg: #f0f0f1;
    
    /* Text Colors */
    --rf-color-text-main: #1d2327;
    --rf-color-text-secondary: #2c3338;
    --rf-color-text-light: #50575e;
    --rf-color-text-muted: #787c82;
    
    /* Background Colors */
    --rf-bg-white: #ffffff;
    --rf-bg-light: #f8f9fa;
    --rf-bg-lighter: #fafafa;
    
    /* Border Colors */
    --rf-border-light: #e0e0e0;
    --rf-border-medium: #c3c4c7;
    
    /* Spacing */
    --rf-spacing-xs: 0.5rem;
    --rf-spacing-sm: 1rem;
    --rf-spacing-md: 1.5rem;
    --rf-spacing-lg: 2rem;
    --rf-spacing-xl: 3rem;
    --rf-space-md: 24px;
    --rf-space-lg: 40px;
    
    /* Typography */
    --rf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rf-font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    
    /* Border Radius */
    --rf-radius-sm: 4px;
    --rf-radius-md: 8px;
    --rf-radius-lg: 12px;
    
    /* Shadows */
    --rf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rf-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.08);
    --rf-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Base Styles - High Contrast for Kitchen Environment
   ============================================ */
.rf-error-code-single {
    font-family: var(--rf-font-family);
    line-height: 1.7;
    color: var(--rf-color-text-main);
}

/* ============================================
   Breadcrumbs (Unified)
   ============================================ */
.rf-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
    padding: 0;
    line-height: 1.4;
}

.rf-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.rf-breadcrumbs a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.rf-breadcrumbs .sep {
    margin: 0 10px;
    color: #d1d5db;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.rf-breadcrumbs .rf-container .sep {
    margin: 0 6px;
}

.rf-breadcrumbs .current {
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   Hero Section (Header & Status)
   ============================================ */
.rf-hero {
    margin-bottom: var(--rf-spacing-xl);
    padding-bottom: var(--rf-spacing-lg);
    border-bottom: 2px solid var(--rf-border-light);
}

.rf-hero-title-group {
    margin-bottom: var(--rf-spacing-md);
}

.rf-error-code-badge {
    display: inline-block;
    background: var(--rf-color-neutral-bg);
    color: var(--rf-color-text-main);
    padding: var(--rf-spacing-xs) var(--rf-spacing-sm);
    border-radius: var(--rf-radius-sm);
    font-family: var(--rf-font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--rf-spacing-sm);
}

.rf-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rf-color-text-main);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Status Badge */
.rf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rf-spacing-xs);
    padding: var(--rf-spacing-sm) var(--rf-spacing-md);
    border-radius: var(--rf-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--rf-spacing-md);
    box-shadow: var(--rf-shadow-sm);
}

.rf-severity-icon {
    font-size: 1.2em;
}

.rf-severity-text {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.rf-severity-high {
    background: var(--rf-color-danger-bg);
    color: var(--rf-color-danger);
    border: 2px solid var(--rf-color-danger);
}

.rf-severity-medium {
    background: var(--rf-color-warning-bg);
    color: var(--rf-color-warning);
    border: 2px solid var(--rf-color-warning);
}

.rf-severity-low {
    background: var(--rf-color-success-bg);
    color: var(--rf-color-success);
    border: 2px solid var(--rf-color-success);
}

/* ============================================
   Content Wrapper
   ============================================ */
.rf-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--rf-spacing-xl);
}

/* ============================================
   Quick Checks (First Aid) - distinct from Repair Steps
   ============================================ */
.rf-quick-fix-box,
.rf-quick-checks-section {
    background: linear-gradient(135deg, #eef4fc 0%, #f5f9ff 100%);
    border-left: 5px solid var(--rf-color-primary);
    border-radius: var(--rf-radius-md);
    padding: var(--rf-spacing-lg);
    box-shadow: var(--rf-shadow-md);
    margin-bottom: var(--rf-spacing-lg);
    margin-top: var(--rf-space-lg);
}

.rf-quick-fix-header {
    display: flex;
    align-items: center;
    gap: var(--rf-spacing-sm);
    margin-bottom: var(--rf-spacing-md);
}

.rf-quick-fix-icon {
    font-size: 1.5rem;
}

.rf-quick-fix-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rf-color-primary-dark);
    margin: 0;
    letter-spacing: 0.02em;
}

.rf-quick-fix-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rf-color-text-secondary);
}

.rf-direct-answer {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rf-color-text-main);
    margin-bottom: var(--rf-spacing-md);
    padding: var(--rf-spacing-md);
    background: var(--rf-bg-white);
    border-radius: var(--rf-radius-sm);
}

.rf-quick-steps {
    margin-top: var(--rf-spacing-md);
}

.rf-quick-steps strong {
    display: block;
    margin-bottom: var(--rf-spacing-sm);
    color: var(--rf-color-primary-dark);
    font-size: 1rem;
}

.rf-quick-steps-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rf-quick-steps-list li {
    position: relative;
    padding-left: var(--rf-spacing-lg);
    margin-bottom: var(--rf-spacing-sm);
    color: var(--rf-color-text-secondary);
}

.rf-quick-steps-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--rf-color-success);
    font-weight: 700;
    font-size: 1.2em;
}

/* ============================================
   Technical Panel
   ============================================ */
.rf-tech-panel {
    background: var(--rf-bg-white);
    border: 1px solid var(--rf-border-light);
    border-radius: var(--rf-radius-md);
    padding: var(--rf-spacing-lg);
    box-shadow: var(--rf-shadow-sm);
}

.rf-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rf-color-text-main);
    margin: 0 0 var(--rf-spacing-lg) 0;
    margin-top: var(--rf-space-lg);
    padding-bottom: var(--rf-spacing-sm);
    border-bottom: 2px solid var(--rf-border-light);
}

.rf-section-title:first-child {
    margin-top: 0;
}

.rf-tech-section {
    margin-bottom: var(--rf-spacing-xl);
}

.rf-tech-section:last-child {
    margin-bottom: 0;
}

.rf-tech-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rf-color-text-main);
    margin: 0 0 var(--rf-spacing-md) 0;
    margin-top: 15px;
}

/* Repair Steps */
.rf-repair-steps {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--rf-color-text-secondary);
}

.rf-repair-steps ol {
    margin: 0;
    padding-left: var(--rf-spacing-lg);
}

.rf-repair-steps li {
    margin-bottom: var(--rf-spacing-md);
    padding-left: var(--rf-spacing-sm);
}

/* Monospace for technical values */
.rf-repair-steps code,
.rf-repair-steps .rf-tech-value {
    font-family: var(--rf-font-mono);
    background: var(--rf-bg-light);
    padding: 0.2em 0.4em;
    border-radius: var(--rf-radius-sm);
    font-size: 0.9em;
    color: var(--rf-color-primary-dark);
}

/* Possible Causes - Warning Style */
.rf-repair-steps ul {
    margin: var(--rf-spacing-md) 0;
    padding-left: var(--rf-spacing-lg);
    border-left: 4px solid var(--rf-color-warning);
    padding-left: var(--rf-spacing-md);
    background: var(--rf-color-warning-bg);
    padding: var(--rf-spacing-md);
    border-radius: var(--rf-radius-sm);
    margin-left: 0;
}

.rf-repair-steps ul li {
    margin-bottom: var(--rf-spacing-sm);
    color: var(--rf-color-text-secondary);
}

/* FAQ Content */
.rf-faq-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--rf-color-text-secondary);
    padding-left: 1rem;
}

.rf-faq-content h4,
.rf-faq-content strong {
    color: var(--rf-color-text-main);
    font-weight: 600;
    display: block;
    margin-top: var(--rf-spacing-md);
    margin-bottom: var(--rf-spacing-xs);
}

.rf-faq-content p {
    margin-bottom: var(--rf-spacing-sm);
}

/* ============================================
   Disclaimer Box
   ============================================ */
.rf-disclaimer-box {
    display: flex;
    gap: var(--rf-spacing-md);
    background: var(--rf-color-danger-bg);
    border: 2px solid var(--rf-color-danger);
    border-radius: var(--rf-radius-md);
    padding: var(--rf-spacing-lg);
    margin-top: var(--rf-spacing-xl);
    box-shadow: var(--rf-shadow-sm);
}

.rf-disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rf-disclaimer-content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--rf-color-text-secondary);
}

.rf-disclaimer-content strong {
    color: var(--rf-color-danger);
    font-weight: 700;
}

/* ============================================
   TLDR Section (Iteration 1)
   ============================================ */
.rf-tldr-section {
    margin-bottom: 0;
}

.rf-tldr-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rf-color-text-main);
    margin: 0 0 var(--rf-spacing-sm) 0;
}

.rf-tldr-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--rf-color-text-secondary);
}

.rf-tldr-content .rf-direct-answer,
.rf-tldr-content .rf-tldr-fallback {
    margin: 0 0 var(--rf-spacing-sm) 0;
}

.rf-tldr-content .rf-cta-link-wrapper {
    display: inline-block;
    margin-top: var(--rf-spacing-sm);
}

/* ============================================
   Safety / Severity Warning Boxes (High / Medium / Low)
   ============================================ */
.rf-safety-warning,
.rf-safety-stop-box {
    border-radius: var(--rf-radius-md);
    padding: var(--rf-spacing-lg);
    margin-bottom: var(--rf-spacing-xl);
    box-shadow: var(--rf-shadow-md);
}

.rf-safety-warning.rf-severity-high,
.rf-safety-stop-box {
    background: linear-gradient(135deg, #4a0a0a 0%, #6b1111 100%);
    border: 3px solid var(--rf-color-danger);
    color: #fff;
}

.rf-safety-warning.rf-severity-medium {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%);
    border: 3px solid var(--rf-color-warning);
    color: #fff;
}

.rf-safety-warning.rf-severity-low {
    background: linear-gradient(135deg, #854d0e 0%, #ca8a04 100%);
    border: 3px solid #eab308;
    color: #fff;
}

.rf-disclaimer-top-wrap {
    margin-bottom: var(--rf-spacing-md);
}

.rf-disclaimer-box.rf-disclaimer-top {
    margin-top: 0;
}

.rf-safety-stop-header {
    display: flex;
    align-items: center;
    gap: var(--rf-spacing-sm);
    margin-bottom: var(--rf-spacing-md);
}

.rf-safety-stop-icon {
    font-size: 2rem;
    line-height: 1;
}

.rf-safety-stop-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: 0.02em;
}

.rf-safety-stop-content {
    font-size: 1rem;
    line-height: 1.7;
}

.rf-safety-stop-content p {
    margin: 0 0 var(--rf-spacing-sm) 0;
}

.rf-safety-stop-content ul {
    margin: 0 0 var(--rf-spacing-md) 0;
    padding-left: 1.5rem;
    margin-bottom: 0;
    
}

.rf-safety-stop-content li {
    margin-bottom: 0.35em;
}

.rf-safety-stop-cta {
    margin-top: var(--rf-spacing-md) !important;
}

.rf-safety-stop-cta a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rf-safety-stop-cta a:hover {
    color: var(--rf-color-warning-bg);
}

/* ============================================
   When to call a technician (Iteration 1)
   ============================================ */
.rf-when-to-call {
    margin-bottom: var(--rf-spacing-xl);
}

.rf-when-to-call .rf-section-title {
    margin-bottom: var(--rf-spacing-sm);
}

.rf-when-to-call-content {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--rf-color-text-secondary);
}

.rf-when-to-call-intro {
    margin: 0 0 var(--rf-spacing-sm) 0;
}

.rf-when-to-call-content ul {
    margin: 0 0 var(--rf-spacing-md) 0;
    padding-left: 1.5rem;
}

.rf-when-to-call-content li {
    margin-bottom: 0.4em;
}

.rf-when-to-call-content p:last-child {
    margin: 0;
}

.rf-when-to-call-content a {
    color: var(--rf-color-primary);
    font-weight: 600;
}

/* ============================================
   Page Template - Full Width, No Sidebar
   ============================================ */
.page .site-content {
    max-width: 100%;
    padding: 0;
    margin-top: 50px;
    margin-bottom: 50px;
}

.site-content {
    justify-content: center; 
    margin-top: 50px;
    margin-bottom: 50px;
}

.page .content-area {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--rf-spacing-lg) var(--rf-spacing-md);
}

.page .inside-article {
    background: var(--rf-bg-white);
    padding: var(--rf-spacing-xl);
    border-radius: var(--rf-radius-md);
    box-shadow: var(--rf-shadow-sm);
}

.page .entry-header {
    margin-bottom: var(--rf-spacing-lg);
    padding-bottom: var(--rf-spacing-md);
    border-bottom: 2px solid var(--rf-border-light);
}

.page .entry-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--rf-color-text-main);
    margin: 0;
}

.page .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--rf-color-text-secondary);
}

/* Fix for Taxonomy Grid Layout */
#error-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
    gap: 1.5rem;
}

/* --- RestoFixer Archive Styles --- */

/* Wrapper & Layout */
.rf-archive-wrapper {
    background-color: #fff;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Smart container: occupies 100% of theme space, but not more than 1200px */
.rf-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    /* If sidebar is active, theme will narrow this block */
}

/* Removing possible conflicts with GeneratePress */
.rf-archive-wrapper {
    width: 100%;
    overflow: hidden;
    padding-right: 40px;
    padding-left: 40px;
    padding-top: 40px;
    border-radius: 8px;
}

.rf-archive-wrapper .site-main {
    margin-top: 0;
}


/* Header Section */
.rf-archive-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
    border-radius: 8px;
}

/* Title & Description */
.rf-header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 16px;
}

.rf-title-block h1,
.rf-page-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.rf-title-with-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rf-title-with-actions h1 {
    flex: 1;
    min-width: 0;
}

.rf-copy-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    text-decoration: none;
}

.rf-direct-answer {
    padding: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Temporary hiding Copy Link button */
.rf-copy-link-button {
    display: none;
}

.rf-copy-link-button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.rf-copy-link-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rf-copy-link-button.rf-copy-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.rf-copy-link-button.rf-copy-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}
.rf-title-block h1 small {
    display: inline-block;
    font-size: 0.6em;
    font-weight: 600;
    color: #6b7280;
    margin-left: 10px;
}
.rf-description {
    margin-top: 12px;
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 760px;
}

/* SEARCH BAR (Fixed!) */
.rf-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
}

/* Ensure search wrapper containers are positioned for dropdown */
.rf-search-wrapper,
.rf-hero-search {
    position: relative;
}

.rf-search-wrapper .rf-search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 40px; /* Space for icon */
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background: #fff;
    color: #333;
}
.rf-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rf-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
}
/* FORCE ICON SIZE */
.rf-search-icon svg {
    width: 20px !important;
    height: 20px !important;
}

/* Models Grid (for Brand page) */
.rf-models-section { margin-bottom: 50px; }
.rf-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.rf-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #2563eb;
    margin-right: 12px;
    border-radius: 2px;
}

.rf-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.rf-model-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.rf-model-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.rf-model-card .model-name { font-weight: 600; color: #374151; display: block; }
.rf-model-card .model-count { font-size: 12px; color: #9ca3af; margin-top: 5px; }

/* Error Grid */
.rf-error-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Error Card Design (Matches Single Post) */
.rf-error-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.rf-error-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
    transform: translateY(-4px);
}
.rf-card-link {
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

/* Card Header */
.rf-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.rf-card-header .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #9ca3af;
}
.rf-card-header .badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Severity Colors */
.rf-error-card.severity-critical .badge { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rf-error-card.severity-warning .badge { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.rf-error-card.severity-info .badge { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }

.rf-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.rf-error-card:hover .rf-card-title { color: #2563eb; }

.rf-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.rf-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.rf-card-footer .arrow {
    background: #eff6ff;
    color: #2563eb;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}
.rf-error-card:hover .arrow { background: #2563eb; color: white; }

/* Brands Page */
/* Brands Hub Directory Styles */
.rf-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 80px;
}

.rf-brand-hub-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.rf-brand-hub-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.brand-logo-box {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 800;
    color: #d1d5db;
}

.brand-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.brand-stats {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.brand-stats .dot {
    margin: 0 8px;
    color: #d1d5db;
}

.brand-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
}

.rf-brand-hub-card:hover .brand-arrow {
    background: #2563eb;
    color: #fff;
}

/* ============================================
   Front Page Styles
   ============================================ */
.rf-front-page {
    font-family: 'Montserrat', system-ui, sans-serif;
    background-color: #fff;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Hero Section */
.rf-hero-section {
    background: #ffffff;
    padding: 70px 40px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.rf-hero-content {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

.rf-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rf-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #6b7280;
    margin: 0 0 18px 0;
    line-height: 1.6;
}

/* Hero trust line (small but premium) */
.rf-hero-trust {
    margin: 0 auto 22px;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    line-height: 1.5;
    max-width: 820px;
}

.rf-hero-secondary-cta-wrap {
    margin-top: 32px;
}

.rf-hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rf-hero-secondary-cta:hover,
.rf-hero-secondary-cta:focus {
    border-color: #bfdbfe;
    background: #eff6ff;
    outline: none;
}

/* Massive Search Bar */
.rf-hero-search {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.rf-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(37, 99, 235, 0.06);
}

.rf-search-container:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.rf-search-container .rf-search-icon {
    position: absolute;
    left: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.rf-search-container .rf-search-icon svg {
    width: 24px;
    height: 24px;
}

.rf-search-input-large {
    flex: 1;
    min-height: 64px;
    padding: 0 140px 0 60px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #111827;
    background: transparent;
    padding-left: 40px;
}

.rf-search-container .rf-search-input-large {
    padding-left: 45px;
}

.rf-search-input-large::placeholder {
    color: #6b7280;
    font-size: 0.98em;
}

/* Stats Bar */
.rf-stats-bar {
    background: #fbfdff;
    padding: 48px 20px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 1px 0 rgba(2, 6, 23, 0.02);
}

.rf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: center;
}

.rf-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rf-stat-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-stat-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.rf-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
    margin-bottom: 4px;
}

.rf-stat-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Brands Section */
.rf-brands-section {
    background: #ffffff;
    padding: 64px 40px;
    margin-top: 32px;
    border-radius: 8px;
}

.rf-brands-section .rf-section-header {
    margin-top: 10px;
    margin-bottom: 32px;
}

.rf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--rf-space-lg);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.rf-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.rf-view-all-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.rf-view-all-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.rf-popular-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.rf-popular-brand-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rf-popular-brand-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.rf-brand-logo-container {
    width: 88px;
    height: 88px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}

.rf-brand-logo-container img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.rf-brand-placeholder {
    font-size: 32px;
    font-weight: 800;
    color: #d1d5db;
}

.rf-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.rf-brand-count {
    font-size: 0.9rem;
    color: #4b5563;
}

/* How It Works */
.rf-how-it-works {
    background: #ffffff;
    padding: 64px 40px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 32px;
    border-radius: 8px;
}

.rf-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    margin-top: 36px;
}

.rf-process-item {
    text-align: center;
}

.rf-process-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.06);
}

.rf-process-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

.rf-process-description {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Recent Updates */
.rf-recent-updates {
    background: #ffffff;
    padding: 64px 40px;
    margin-top: 32px;
    border-radius: 8px;
}

.rf-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

/* SEO section – same background as page, no box */
.rf-seo-section {
    padding: 3rem 1rem;
    text-align: center;
    background: none;
    border: none;
}

.rf-seo-section-inner {
    max-width: 850px;
    margin: 0 auto;
}

.rf-seo-text {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #4b5563;
    font-size: 1.02rem;
    font-weight: 600;
}

.rf-seo-text-last {
    margin-bottom: 0;
}

.rf-recent-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.rf-recent-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
    transform: translateY(-4px);
}

.rf-recent-card-link {
    padding: 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.rf-recent-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rf-recent-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #9ca3af;
}

.rf-recent-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.rf-recent-card .severity-critical .rf-recent-badge,
.rf-recent-card.severity-critical .rf-recent-badge {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rf-recent-card .severity-warning .rf-recent-badge,
.rf-recent-card.severity-warning .rf-recent-badge {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.rf-recent-card .severity-info .rf-recent-badge,
.rf-recent-card.severity-info .rf-recent-badge,
.rf-recent-card .severity-low .rf-recent-badge,
.rf-recent-card.severity-low .rf-recent-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.rf-recent-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.4;
    flex-grow: 0;
}

.rf-recent-card:hover .rf-recent-card-title {
    color: #2563eb;
}

.rf-recent-card-excerpt,
.rf-recent-excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 10px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-recent-card-meta {
    margin-bottom: 12px;
}

.rf-recent-brand {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

.rf-recent-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 500;
    color: #4b5563;
}

.rf-recent-arrow {
    background: #eff6ff;
    color: #2563eb;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.rf-recent-card:hover .rf-recent-arrow {
    background: #2563eb;
    color: white;
}

/* ============================================
   AJAX Search Dropdown Styles
   ============================================ */
.rf-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.rf-search-results.is-active {
    display: block;
}

.rf-search-results-list {
    padding: 8px;
}

.rf-search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #111827;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.rf-search-result-item:hover,
.rf-search-result-item:focus {
    background: #f3f4f6;
    outline: none;
}

.rf-search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.rf-search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    flex: 1;
}

.rf-search-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.rf-search-result-meta {
    margin-top: 4px;
}

.rf-search-brand {
    font-size: 12px;
    color: #6b7280;
}

.rf-search-loading {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.rf-search-empty {
    padding: 24px;
    text-align: center;
}

.rf-search-empty-text {
    color: #6b7280;
    font-size: 14px;
}

/* Hero search results positioning */
.rf-hero-search {
    position: relative;
}

.rf-hero-search .rf-search-results {
    max-height: 500px;
}

/* ============================================
   CTA Blocks (Lead-Gen)
   ============================================ */
.rf-cta-block {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    width: fit-content;
}

.rf-cta-block:hover {
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.rf-cta-icon {
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.rf-cta-icon svg {
    width: 24px;
    height: 24px;
}

.rf-cta-content {
    flex: 1;
}

.rf-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.rf-cta-text {
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* 1. Link wrapper */
.rf-cta-link-wrapper {
    text-decoration: none;
    display: inline-block;
    border: none;
}

/* 2. The button itself (rf-cta-button-sour) */
.rf-cta-button-sour {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px; /* Your standard radius */
    background: #0275F8; /* Your blue */
    font-family: "Montserrat", sans-serif;
    box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0; /* Padding will be inside span */
    transition: all 0.3s ease-in-out;
    background-color: #0275F8!important;
}

/* 3. Sliding effect (Red background) */
.rf-cta-button-sour:after {
    content: " ";
    width: 0%;
    height: 100%;
    background: #F8300D; /* Your red */
    position: absolute;
    transition: all 0.4s ease-in-out;
    right: 0;
    z-index: 1;
}

.rf-cta-button-sour:hover:after {
    right: auto;
    left: 0;
    width: 100%;
}

/* 4. Text inside span */
.rf-cta-button-sour span {
    text-align: center;
    text-decoration: none;
    width: 100%;
    padding: 18px 32px; /* Comfortable padding for desktop */
    color: #fff;
    font-size: 1rem;
    font-weight: 800; /* Maximum bold Montserrat */
    letter-spacing: 0.07em;
    z-index: 20; /* Always above red layer */
    position: relative;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    display: block;
}

/* 5. Hover effect for text and pulse animation */
.rf-cta-button-sour:hover span {
    color: #fff; /* Keeping white for contrast with red */
    animation: scaleUp 0.3s ease-in-out;
}

/* 6. Pulse animation */
@keyframes scaleUp {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Mobile Sticky CTA */
.rf-mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 12px 16px;
}

.rf-sticky-icon {
    font-size: 1.25rem;
}

.rf-sticky-text {
    flex: 1;
    text-align: center;
}

/* ============================================
   Search Results Page Styles
   ============================================ */
.rf-search-form-inline {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

.rf-search-form-inline .rf-search-input {
    flex: 1;
}

.rf-search-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.rf-no-results-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rf-empty-content {
    max-width: 600px;
    margin: 0 auto;
}

.rf-empty-icon {
    color: #9ca3af;
    margin-bottom: 24px;
}

.rf-empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.rf-empty-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.rf-empty-search-form {
    margin: 32px 0;
}

.rf-empty-search-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.rf-empty-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #111827;
    padding: 8px 12px;
    min-height: 48px;
}

.rf-empty-search-container .rf-empty-search-input {
    background-color: white;
    border-radius: 8px;
}

.rf-empty-search-input::placeholder {
    color: #9ca3af;
}

.rf-empty-suggestions {
    margin-top: 32px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rf-empty-suggestions p {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.rf-empty-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-empty-suggestions li {
    padding: 8px 0;
    color: #6b7280;
    padding-left: 24px;
    position: relative;
}

.rf-empty-suggestions li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #2563eb;
    font-weight: bold;
}

.rf-empty-suggestions a {
    color: #2563eb;
    text-decoration: none;
}

.rf-empty-suggestions a:hover {
    text-decoration: underline;
}

/* ============================================
   RF Buttons (unified UI kit)
   ============================================ */
.rf-btn-primary,
.rf-btn-secondary {
    padding: 12px 28px;
    border-radius: var(--rf-radius-md);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.rf-btn-primary:hover,
.rf-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rf-btn-primary {
    background: var(--rf-color-primary);
    color: #fff;
    border: 2px solid var(--rf-color-primary);
}

.rf-btn-primary:hover {
    background: var(--rf-color-primary-dark);
    border-color: var(--rf-color-primary-dark);
}

.rf-btn-secondary {
    background: var(--rf-bg-white);
    color: var(--rf-color-primary);
    border: 2px solid var(--rf-color-primary);
}

.rf-btn-secondary:hover {
    background: var(--rf-bg-light);
    color: var(--rf-color-primary-dark);
    border-color: var(--rf-color-primary-dark);
}

/* No Results actions: centered buttons with gap */
.rf-no-results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
}

.rf-no-results-actions .button {
    padding: 15px 35px;
    border-radius: 8px;
    font-family: 'Montserrat', var(--rf-font-family);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rf-no-results-actions .rf-btn-primary {
    background: #F8300D;
    color: #fff;
    border: 2px solid #F8300D;
}

.rf-no-results-actions .rf-btn-primary:hover {
    background: #e02b0c;
    border-color: #e02b0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 48, 13, 0.35);
}

.rf-no-results-actions .rf-btn-secondary {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.rf-no-results-actions .rf-btn-secondary:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.search-no-results .rf-empty-search-button {
    padding: 15px 35px;
    border-radius: 8px;
    font-family: 'Montserrat', var(--rf-font-family);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: #F8300D;
    color: #fff;
    text-decoration: none;
    border: 2px solid #F8300D;
}

.search-no-results .rf-empty-search-button:hover {
    background: #e02b0c;
    border-color: #e02b0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 48, 13, 0.35);
}

/* ============================================
   Mobile Sticky Search Bar
   ============================================ */
.rf-mobile-sticky-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 998;
    padding: 8px 16px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.rf-mobile-sticky-search.is-visible {
    transform: translateY(0);
}

.rf-mobile-sticky-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.rf-sticky-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
}

.rf-sticky-search-form .rf-mobile-sticky-search-input {
    padding-left: 40px;
    background-color: #fff;
    border-radius: 8px;
}

.rf-mobile-sticky-search .rf-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    flex-shrink: 0;
    z-index: 1;
    pointer-events: none;
}

.rf-mobile-sticky-search-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px 10px 40px;
    font-size: 15px;
    min-height: 48px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

.rf-mobile-sticky-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rf-mobile-sticky-search-input::placeholder {
    color: #9ca3af;
}

.rf-mobile-sticky-search-button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    min-height: 48px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.rf-mobile-sticky-search-button:hover {
    background: #1d4ed8;
}

/* Pagination Styles */
.rf-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.rf-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rf-pagination .page-numbers {
    min-height: 40px;
    min-width: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.rf-pagination .page-numbers:hover,
.rf-pagination .page-numbers.current {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.rf-pagination .page-numbers.dots {
    border: none;
    cursor: default;
    background: none;
    color: #6b7280;
    padding-left: 10px;
    padding-right: 10px;
}

.rf-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6b7280;
}

/* Ensure touch targets are minimum 48px */
.rf-search-button,
.rf-cta-button,
.rf-sticky-button,
.rf-empty-search-button,
.rf-mobile-sticky-search-button,
button[type="submit"] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F8300D;
}

.rf-pagination .page-numbers:not(.current):not(:hover) {
    background: transparent;
}

/* Fix z-index hierarchy */
.rf-search-results {
    z-index: 1000; /* Above everything */
}

.rf-mobile-sticky-search {
    z-index: 998; /* Below search dropdown */
}

.rf-mobile-sticky-cta {
    z-index: 997; /* Below sticky search */
}

/* ============================================
   Related Error Codes Section
   ============================================ */
.rf-related-errors {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.rf-related-grid {
    margin-top: 24px;
}

/* Popular Models Section (SEO Interlinking) */
.rf-popular-models-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.rf-popular-models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.rf-popular-model-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    min-height: 48px;
}

.rf-popular-model-link:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rf-model-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.rf-popular-model-link:hover .rf-model-count {
    color: #2563eb;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.rf-contact-page {
    background-color: #fff;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    width: 100%;
    overflow: hidden;
    padding-top: 40px;
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 0;
    border-radius: 8px;
}

.rf-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.rf-contact-trust {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rf-trust-item {
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.rf-trust-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    margin-bottom: 16px;
}

.rf-trust-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.rf-trust-item p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.rf-contact-form-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.rf-form-panel h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.rf-form-success {
    text-align: center;
    padding: 40px 20px;
}

.rf-success-icon {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin: 0 auto 20px;
}

.rf-form-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.rf-form-success p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.rf-form-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.rf-form-error p {
    color: #991b1b;
    margin: 0;
    font-size: 14px;
}

.rf-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rf-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.rf-required {
    color: #ef4444;
}

.rf-form-group input,
.rf-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.rf-form-group input:focus,
.rf-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rf-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.rf-form-submit {
    width: 100%;
    padding: 14px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
}

.rf-form-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.rf-form-submit:active {
    transform: translateY(0);
}

/* ============================================
   404 Page Styles
   ============================================ */
.rf-404-search input[type="search"] {
    background-color: #fff;
    border: none;
}

.rf-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.rf-404-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.rf-404-header {
    margin-bottom: 40px;
}

.rf-404-title {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.rf-404-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.rf-404-search {
    margin-bottom: 60px;
}

.rf-404-brands {
    margin-bottom: 60px;
}

.rf-404-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.rf-404-section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
}

.rf-404-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.rf-404-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    gap: 16px;
}

.rf-404-brand-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rf-404-brand-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.rf-404-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rf-404-brand-placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
}

.rf-404-brand-info {
    text-align: center;
}

.rf-404-brand-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.rf-404-brand-count {
    font-size: 13px;
    color: #6b7280;
}

.rf-404-links {
    margin-top: 60px;
}

.rf-404-links-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.rf-404-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 48px;
}

.rf-404-link-item:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.rf-404-link-item svg {
    flex-shrink: 0;
}

/* RestoFixer 3D Push Button - Color #F8300D */
.rf-search-button-pushable {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    margin: 10px 5px 7px 5px;
    border-radius: 8px;
}

.rf-search-button-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15); /* Slightly darker shadow for intense red */
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.rf-search-button-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* Deep dark red for thickness effect (#B5220A) */
    background: linear-gradient(
        to left,
        #9B1C08 0%,
        #B5220A 8%,
        #B5220A 92%,
        #9B1C08 100%
    );
}

.rf-search-button-front {
    display: block;
    position: relative;
    padding: 13px 36px; /* Slightly more padding for solidity */
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 800; /* Maximum bold for Montserrat */
    color: white;
    background: #F8300D; /* Your new color */
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Interaction effects */
.rf-search-button-pushable:hover {
    filter: brightness(110%);
    background-color: #fff;
}

.rf-search-button-pushable:hover .rf-search-button-front {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.rf-search-button-pushable:active .rf-search-button-front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.rf-search-button-pushable:hover .rf-search-button-shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.rf-search-button-pushable:active .rf-search-button-shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

/* Button on Forminator forms */
/* 1. Resetting standard Forminator styles and preparing base */
.forminator-button.formi-button {
    appearance: none;
    outline: none;
    border: none;
    cursor: pointer;
    position: relative;
    background: transparent !important; /* Making background transparent as we draw it ourselves */
    padding: 0 !important;
    margin: 10px 5px !important;
    user-select: none;
    transition: filter 250ms;
    overflow: visible !important; /* Important for shadow display */
    display: inline-block;
    font-size: 16px!important;
}

/* 2. Creating "Shadow" (analogous to .rf-search-button-shadow) */
.forminator-button.formi-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    z-index: -2;
}

/* 3. Creating "Edge" (analogous to .rf-search-button-edge) */
.forminator-button.formi-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(
        to left,
        #F8300D,
        #F8300D 8%,
        #F8300D 92%,
        #F8300D 100%
    );
    z-index: -1;
}

/* 4. Styling the button itself ("Front") */
/* Since we don't have a separate span, we style button text via internal styles */
.forminator-button.formi-button {
    /* This block mimics .rf-search-button-front */
    padding: 12px 32px !important; 
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    background-color: white;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* 5. Interaction effects */

.forminator-button.formi-button:hover {
    filter: brightness(110%);
}

/* Hover - front part movement */
.forminator-button.formi-button:hover {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

/* Active - press effect */
.forminator-button.formi-button:active {
    transform: translateY(-2px);
    transition: transform 34ms;
}

/* Shadow movement on hover */
.forminator-button.formi-button:hover::before {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

/* Shadow on press */
.forminator-button.formi-button:active::before {
    transform: translateY(1px);
    transition: transform 34ms;
}

/* Homepage global search style  */
#rf-hero-search-input {
    background-color: #ffffff;
    border: none;    
}

/* Default body background color */
body {
    background-color: #fff;
}

/* ============================================
   RestoFixer Premium Header Overhaul
   ============================================ */
.site-header {
    background-color: var(--rf-bg-white);
    border-bottom: 1px solid var(--rf-border-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navigation {
    font-family: 'Montserrat', var(--rf-font-family);
    font-weight: 600;
}

.main-navigation .main-nav ul li a {
    color: var(--rf-color-text-main);
    transition: color 0.3s ease;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.98rem;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li:hover > a {
    color: var(--rf-color-primary);
    background-color: transparent;
}

.main-navigation .main-nav ul li.current-menu-item > a {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Flex alignment for logo and nav - ensure smoother layout */
.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
}

/* Sticky Header smoothness */
.sticky-enabled .main-navigation.is_stuck {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* ============================================
   Industrial Dark Footer
   ============================================ */
/* Unified Footer Background */
.site-footer,
.footer-widgets,
.site-info {
    background-color: #151515;
    color: #fff;
}

.site-footer {
    font-family: 'Montserrat', var(--rf-font-family);
}

.site-footer h2, 
.site-footer h3, 
.site-footer h4,
.site-footer .widget-title {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.site-footer a {
    color: #fff;
    transition: color 0.2s ease;
    text-decoration: none;
}

#menu-footer-menu {
    text-align: center;
}

.site-footer a:hover {
    color: var(--rf-color-primary);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.8rem;
}

/* Socket / Bottom Bar - Unified Look */
.site-info {
    color: #fff;
    border-top: none;
    text-align: center;
    font-size: 14px;
}

.site-info a {
    color: #b0b0b0;
}

.site-info a:hover {
    color: var(--rf-color-primary);
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .rf-error-code-single {
        padding: var(--rf-spacing-sm);
    }
    
    .rf-hero-title {
        font-size: 1.75rem;
    }
    
    .rf-quick-fix-box,
    .rf-tech-panel {
        padding: var(--rf-spacing-md);
    }
    
    .rf-quick-fix-title {
        font-size: 1.25rem;
    }
    
    .rf-section-title {
        font-size: 1.5rem;
    }
    
    .rf-breadcrumbs {
        font-size: 0.7rem;
    }
    
    .rf-disclaimer-box {
        flex-direction: column;
        padding: var(--rf-spacing-md);
    }

    .page .content-area {
        padding: var(--rf-spacing-md) var(--rf-spacing-sm);
    }
    
    .page .inside-article {
        padding: var(--rf-spacing-md);
    }

    /* Archive Mobile Styles */
    .rf-archive-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .rf-contact-page {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .rf-hero-section {
        padding: 60px 20px;
    }
    
    .rf-hero-title {
        font-size: 2rem;
    }
    
    .rf-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .rf-search-container {
        flex-direction: row;
        border-radius: 12px;
        padding: 4px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .rf-search-container .rf-search-icon {
        left: 16px;
        top: 50%; /* Reset centering for row layout */
    }
    
    .rf-search-input-large {
        min-height: 50px;
        padding: 12px 8px 12px 48px;
        width: auto;
        flex: 1;
        min-width: 0;
    }

    /* Search Button Mobile Optimizations */
    .rf-search-container .rf-search-button-pushable {
        margin: 3px 0 0 4px !important;
        flex-shrink: 0;
    }

    .rf-search-button-front {
        padding: 12px 16px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .rf-stats-bar {
        padding: 40px 16px;
    }
    
    .rf-stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .rf-stat-number {
        font-size: 2.5rem;
    }
    
    .rf-brands-section,
    .rf-how-it-works,
    .rf-recent-updates {
        padding: 60px 20px;
    }
    
    .rf-popular-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .rf-process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rf-recent-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Sticky CTA & Search */
    .rf-error-code-single .rf-mobile-sticky-cta {
        display: block;
    }
    
    .rf-mobile-sticky-search {
        display: block;
    }
    
    .rf-error-code-single .rf-content-wrapper {
        padding-bottom: 80px;
    }
    
    body.has-sticky-search .rf-archive-wrapper,
    body.has-sticky-search .rf-front-page {
        padding-top: 64px;
    }
    
    .rf-mobile-sticky-search {
        will-change: transform;
    }
    
    .rf-cta-block {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .rf-cta-icon {
        margin: 0 auto;
    }
    
    .rf-cta-button {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }
    
    .rf-hero-section,
    .rf-stats-bar,
    .rf-brands-section,
    .rf-how-it-works,
    .rf-recent-updates,
    .rf-archive-header,
    .rf-search-empty-state {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .rf-hero-title,
    .rf-title-block h1,
    .rf-page-title,
    .rf-section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .rf-hero-subtitle,
    .rf-description {
        font-size: clamp(1rem, 2vw, 1.125rem);
        line-height: 1.6;
    }
    
    .rf-quick-fix-box,
    .rf-tech-panel {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .rf-quick-fix-content,
    .rf-repair-steps,
    .rf-faq-content {
        font-size: 1.0625rem;
        line-height: 1.6;
    }
    
    .rf-pagination .page-numbers {
        min-height: 40px;
        min-width: 40px;
        padding: 8px 12px;
    }
    
    .rf-title-with-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rf-copy-link-button {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    /* Popular Models Mobile */
    .rf-popular-models-list {
        flex-direction: column;
    }
    
    .rf-popular-model-link {
        width: 100%;
        justify-content: space-between;
    }

    /* Contact Page Mobile */
    .rf-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .rf-contact-form-wrapper {
        padding: 24px;
    }
    
    .rf-404-title {
        font-size: 36px;
    }
    
    .rf-404-subtitle {
        font-size: 16px;
    }
    
    .rf-404-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .rf-404-link-item {
        width: 100%;
        justify-content: center;
    }
    
    .rf-404-links-grid {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer Responsive */
    .footer-widgets .inside-footer-widgets {
        flex-direction: column;
        display: flex;
    }
    
    .footer-widget-1, .footer-widget-2, .footer-widget-3, .footer-widget-4 {
        width: 100% !important;
        margin-bottom: 2rem;
        float: none; /* Clear floats */
    }

    .site-footer {
        text-align: center;
    }
    
    /* Fat finger friendly footer links */
    .site-footer a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .footer-widgets .inside-footer-widgets::before {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    /* Mobile Menu */
    .main-navigation.toggled .main-nav > ul {
        background-color: #fff;
        padding-bottom: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
}

@media (max-width: 420px) {
    .rf-search-container {
        flex-direction: column;
        padding: 6px;
        align-items: stretch;
    }

    .rf-search-input-large {
        width: 100%;
        margin-bottom: 8px;
        padding-right: 16px;
    }

    .rf-search-container .rf-search-button-pushable {
        width: 100%;
        margin: 0 !important;
    }

    .rf-search-button-front {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    /* Adjust icon for column layout */
    .rf-search-container .rf-search-icon {
        top: 25px; /* Approx half of input height */
    }
}

@media (max-width: 480px) {
    .rf-hero-title {
        font-size: 1.5rem;
    }
    
    .rf-status-badge {
        flex-direction: column;
        align-items: center;
        gap: var(--rf-spacing-xs);
    }
    
    .rf-quick-fix-header {
        align-items: center;
    }

    .rf-popular-brands-grid {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --rf-color-text-main: #000000;
        --rf-color-text-secondary: #1a1a1a;
        --rf-border-light: #000000;
    }
    
    .rf-quick-fix-box,
    .rf-tech-panel {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .rf-breadcrumbs,
    .rf-disclaimer-box {
        page-break-inside: avoid;
    }
    
    .rf-quick-fix-box,
    .rf-tech-panel {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Tablet & Desktop Grid Overrides */
@media (min-width: 768px) {
    #error-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet */
    }
    .rf-error-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Footer columns for Desktop - assuming GP default uses percentages or floats, we enforce flex grid if possible or rely on their column classes */
    .footer-widgets .inside-footer-widgets {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .footer-widget-1, .footer-widget-2, .footer-widget-3, .footer-widget-4 {
        float: none !important;
        width: auto !important;
        flex: 1;
        padding-right: 40px;
    }
    
    .footer-widget-4 {
        padding-right: 0;
    }
}

@media (min-width: 1024px) {
    #error-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop */
    }
    .rf-error-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Normalizing text flow for bold elements in content areas */
.rf-error-description strong,
.rf-error-description b,
.rf-faq-answer strong,
.rf-faq-answer b,
.rf-fix-content strong,
.rf-fix-content b {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    white-space: normal !important;
}