/**
 * Revma Kostos - Design Lockdown CSS
 * PRODUCTION LOCKDOWN - Strict visual rules for conversion optimization
 * Version: 3.0.0 - Premium Fintech Polish
 *
 * RULESET:
 * 1. Provider color = ACCENT ONLY (border-left, underlines, badges, icons)
 * 2. CTA Hierarchy: Primary (blue gradient), Secondary (outline), Tertiary (text link)
 * 3. Hero backgrounds = Neutral (white/light gray) OR dark with white text
 * 4. Titles = #0F172A with text-shadow on gradients
 * 5. Minimum WCAG 4.5:1 contrast ratio for all text
 * 6. Consistent spacing: 64px between sections, container max-width
 * 7. No truncation on labels/buttons - full text always visible
 * 8. Mobile sticky CTA: safe-area padding, no content overlap
 * 9. Hero min-height: min(85vh, 820px) for optimal above-fold
 *
 * This file MUST be loaded LAST to enforce rules.
 */

/* ============================================
   DESIGN TOKENS - LOCKED VALUES (v3.0)
   DO NOT MODIFY without stakeholder approval
============================================ */
:root {
    /* Primary Colors - Brand Blue */
    --primary: #2563EB;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-soft: #DBEAFE;

    /* Legacy aliases for backwards compatibility */
    --revma-cta-primary: var(--primary);
    --revma-cta-primary-hover: var(--primary-hover);
    --revma-cta-primary-dark: var(--primary-dark);
    --revma-cta-text: #ffffff;

    /* Text Colors - WCAG Compliant */
    --text-main: #0F172A;
    --text-muted: #475569;
    --revma-title-dark: var(--text-main);
    --revma-text-primary: var(--text-main);
    --revma-text-secondary: var(--text-muted);
    --revma-text-muted: #64748b;

    /* Background Colors */
    --revma-bg-hero: #ffffff;
    --revma-bg-hero-alt: #F8FAFC;
    --revma-bg-section: #ffffff;
    --revma-bg-section-alt: #F8FAFC;

    /* Border & Surface */
    --border-soft: #E5E7EB;
    --revma-border: var(--border-soft);

    /* Radius - Premium rounded corners */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Shadows - Soft & Premium */
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --revma-cta-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    --revma-cta-shadow-hover: 0 8px 24px rgba(37, 99, 235, 0.45);

    /* Success/Warning (for badges) */
    --revma-success: #059669;
    --revma-warning: #d97706;
}

/* ============================================
   HEADER LOGO - Desktop 20% smaller (64px)
============================================ */
.revma-logo {
    height: 64px !important;
    width: auto !important;
}

/* ============================================
   CTA HIERARCHY - 3 LEVELS
   Level 1: Primary (Blue Gradient) - "Δες το φθηνότερο για μένα"
   Level 2: Secondary (Outline Blue) - "Σύγκρινε όλα τα προγράμματα"
   Level 3: Tertiary (Text Link Gray) - "Μίλα με σύμβουλο"
============================================ */

/* ===================
   LEVEL 1: PRIMARY CTA
   Blue gradient, white text, shadow, prominent
=================== */
.revma-btn-primary,
.revma-btn-glow,
.revma-hero-cta .revma-btn-primary,
.revma-cta-buttons .revma-btn-primary,
.revma-cta-buttons .revma-btn-large,
.revma-provider-card-actions .revma-btn,
.revma-provider-landing .revma-hero-cta .revma-btn-primary,
.revma-providers-page .revma-hero-cta .revma-btn-primary,
.revma-providers-page .revma-cta-buttons .revma-btn-primary,
.revma-providers-page .revma-cta-buttons .revma-btn-large,
.revma-mid-cta .revma-btn,
.revma-calculator-section .revma-btn-primary,
.rpc-calculate-btn,
.revma-request-quote-btn,
button[type="submit"].revma-btn,
.revma-mobile-sticky-cta .revma-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--revma-cta-shadow) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    min-height: 52px !important;
    padding: 14px 28px !important;
}

/* Primary CTA Hover */
.revma-btn-primary:hover,
.revma-btn-glow:hover,
.revma-hero-cta .revma-btn-primary:hover,
.revma-cta-buttons .revma-btn-primary:hover,
.revma-cta-buttons .revma-btn-large:hover,
.revma-provider-card-actions .revma-btn:hover,
.revma-provider-landing .revma-hero-cta .revma-btn-primary:hover,
.revma-providers-page .revma-hero-cta .revma-btn-primary:hover,
.revma-providers-page .revma-cta-buttons .revma-btn-primary:hover,
.revma-providers-page .revma-cta-buttons .revma-btn-large:hover,
.revma-mid-cta .revma-btn:hover,
.revma-calculator-section .revma-btn-primary:hover,
.rpc-calculate-btn:hover,
.revma-request-quote-btn:hover,
button[type="submit"].revma-btn:hover,
.revma-mobile-sticky-cta .revma-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--revma-cta-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ===================
   LEVEL 2: SECONDARY CTA
   Outline blue, transparent bg
=================== */
.revma-btn-secondary,
.revma-btn-outline,
.revma-hero-cta .revma-btn-secondary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    padding: 12px 24px !important;
    transition: all 0.25s ease !important;
}

.revma-btn-secondary:hover,
.revma-btn-outline:hover,
.revma-hero-cta .revma-btn-secondary:hover {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

/* Secondary on dark backgrounds - white outline */
.revma-cta-section .revma-btn-secondary,
.revma-cta-section .revma-btn-outline,
.revma-providers-hero .revma-btn-secondary,
.revma-provider-hero .revma-btn-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.revma-cta-section .revma-btn-secondary:hover,
.revma-cta-section .revma-btn-outline:hover,
.revma-providers-hero .revma-btn-secondary:hover,
.revma-provider-hero .revma-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* ===================
   LEVEL 3: TERTIARY CTA
   Text link, gray, subtle
=================== */
.revma-btn-tertiary,
.revma-btn-link,
.revma-link-btn,
.revma-text-link {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: none !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s ease !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.revma-btn-tertiary:hover,
.revma-btn-link:hover,
.revma-link-btn:hover,
.revma-text-link:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===================
   SUCCESS/CALL CTA
   Green for phone/WhatsApp actions
=================== */
.revma-btn-success,
.revma-btn-call,
.revma-cta-buttons .revma-btn-success {
    background: linear-gradient(135deg, #10b981 0%, var(--revma-success) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

.revma-btn-success:hover,
.revma-btn-call:hover {
    background: linear-gradient(135deg, var(--revma-success) 0%, #047857 100%) !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45) !important;
}

/* ===================
   CALLBACK CTA
   Gold/amber on dark backgrounds - consistent site-wide
=================== */
.revma-btn-callback,
.revma-hero-cta .revma-btn-callback,
.revma-cta-buttons .revma-btn-callback,
.revma-cta-section .revma-btn-callback,
.revma-provider-landing .revma-btn-callback,
.revma-provider-landing .revma-hero-cta .revma-btn-callback,
.revma-provider-landing .revma-provider-hero .revma-btn-callback,
.revma-provider-landing .revma-cta-section .revma-btn-callback,
.revma-providers-page .revma-btn-callback,
.revma-providers-page .revma-hero-cta .revma-btn-callback,
.revma-providers-page .revma-providers-hero .revma-btn-callback,
.revma-kostos-page .revma-btn-callback,
.revma-kostos-page .revma-hero-cta .revma-btn-callback,
.revma-kostos-page .revma-hero .revma-btn-callback,
button.revma-btn-callback,
button.revma-btn.revma-btn-callback {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #fbbf24 !important;
    border: 2px solid #fbbf24 !important;
    border-radius: var(--radius, 14px) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.15) !important;
}

.revma-btn-callback:hover,
.revma-hero-cta .revma-btn-callback:hover,
.revma-cta-buttons .revma-btn-callback:hover,
.revma-cta-section .revma-btn-callback:hover,
.revma-provider-landing .revma-btn-callback:hover,
.revma-provider-landing .revma-hero-cta .revma-btn-callback:hover,
.revma-provider-landing .revma-provider-hero .revma-btn-callback:hover,
.revma-provider-landing .revma-cta-section .revma-btn-callback:hover,
.revma-providers-page .revma-btn-callback:hover,
.revma-providers-page .revma-hero-cta .revma-btn-callback:hover,
.revma-providers-page .revma-providers-hero .revma-btn-callback:hover,
.revma-kostos-page .revma-btn-callback:hover,
.revma-kostos-page .revma-hero-cta .revma-btn-callback:hover,
.revma-kostos-page .revma-hero .revma-btn-callback:hover,
button.revma-btn-callback:hover,
button.revma-btn.revma-btn-callback:hover {
    background: #fbbf24 !important;
    color: #1a1a2e !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   TITLES & TEXT - WCAG CONTRAST
   Rule: #0F172A on light, #FFFFFF on dark
============================================ */

/* Light background titles */
.revma-section-header h2,
.revma-how-section h2,
.revma-how-section h3,
.revma-faq-section h2,
.revma-calculator-section h2,
.revma-providers-grid-section h2,
.revma-step h3,
.revma-how-step h3,
.revma-card h3,
.revma-provider-card h3,
.revma-mid-cta h3 {
    color: var(--revma-title-dark) !important;
}

/* Hero titles on LIGHT backgrounds */
.revma-providers-hero h1,
.revma-hero-content h1 {
    color: var(--revma-title-dark) !important;
}

/* Hero titles on DARK backgrounds - ensure white */
.revma-cta-section h2,
.revma-cta-section p,
.revma-provider-landing .revma-provider-hero h1,
.revma-provider-landing .revma-hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Provider landing - dark hero, needs white text */
.revma-provider-landing .revma-provider-hero .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Subtitles - Secondary color */
.revma-providers-hero .subtitle,
.revma-hero-content .subtitle,
.revma-mid-cta p,
.revma-section-header p {
    color: var(--revma-text-secondary) !important;
}

/* Body text */
.revma-step p,
.revma-how-step p,
.revma-faq-answer,
.revma-provider-card-desc {
    color: var(--revma-text-secondary) !important;
}

/* ============================================
   HERO BACKGROUNDS - NEUTRAL OR DARK
   Rule: No provider-colored backgrounds
============================================ */

/* Providers list page hero - Light neutral */
.revma-providers-hero {
    background: linear-gradient(135deg, var(--revma-bg-hero-alt) 0%, var(--revma-bg-hero) 100%) !important;
}

/* Provider landing hero - Keep dark but ensure contrast */
.revma-provider-landing .revma-provider-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Section backgrounds - Neutral */
.revma-how-section,
.revma-faq-section {
    background: var(--revma-bg-section) !important;
}

.revma-providers-grid-section,
.revma-calculator-section {
    background: var(--revma-bg-section-alt) !important;
}

/* Mid CTA section - Dark premium style */
.revma-mid-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.revma-mid-cta h3 {
    color: #ffffff !important;
}

.revma-mid-cta p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.revma-mid-cta-content {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 40px 32px !important;
}

.revma-mid-cta-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    border-radius: 50% !important;
    width: 64px !important;
    height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3) !important;
}

.revma-mid-cta .revma-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4) !important;
}

/* ============================================
   PROVIDER COLOR = ACCENT ONLY
   Rule: border-left, underlines, badges, icons ONLY
============================================ */

/* Provider accent as border */
.revma-provider-landing .revma-section-header h2::after,
details.revma-faq-item[open] {
    /* These can use provider accent - they're subtle */
}

/* Remove provider color from backgrounds */
.revma-provider-landing .revma-step-icon {
    background: rgba(59, 130, 246, 0.1) !important;
}

.revma-provider-landing .revma-step-number {
    background: var(--revma-cta-primary) !important;
    color: #ffffff !important;
}

/* Provider badge - subtle accent usage */
.revma-provider-card-badge,
.revma-badge-rae {
    background: var(--revma-success) !important;
    color: #ffffff !important;
}

/* Micro badges - HIGH CONTRAST colors for readability */
.revma-micro-badge {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    padding: 6px 14px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
.revma-micro-badge--fixed_price { background: linear-gradient(135deg, #1e40af, #1e3a8a) !important; color: #ffffff !important; }
.revma-micro-badge--no_clause { background: linear-gradient(135deg, #0d9488, #0f766e) !important; color: #ffffff !important; }
.revma-micro-badge--best_value { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #ffffff !important; }
.revma-micro-badge--green { background: linear-gradient(135deg, #10b981, #059669) !important; color: #ffffff !important; }
.revma-micro-badge--new_offer { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; color: #ffffff !important; }
.revma-micro-badge--popular { background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important; color: #ffffff !important; }

/* Provider logo badge - neutral background */
.revma-provider-landing .revma-provider-logo-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   CARDS - PREMIUM FINTECH STYLE
============================================ */

.revma-provider-card,
.revma-card,
.rpc-result-card,
.rpc-calculator-form {
    background: #ffffff !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.3s ease !important;
}

.revma-provider-card-link:hover .revma-provider-card,
.revma-provider-card-link:focus .revma-provider-card,
.revma-card:hover,
.rpc-result-card:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-4px) !important;
}

/* ============================================
   FAQ - ENSURE READABILITY
============================================ */

details.revma-faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

details.revma-faq-item[open] {
    border-left: 4px solid var(--revma-cta-primary) !important;
    background: #f8fbff !important;
}

.revma-faq-question span,
.revma-faq-question-text {
    color: var(--revma-title-dark) !important;
}

/* ============================================
   TRUST BADGES - ENSURE VISIBILITY
============================================ */

.revma-trust-badge,
.revma-cta-trust span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.revma-live-bar {
    background: #0f172a !important;
}

.revma-live-indicator,
.revma-live-stat {
    color: #ffffff !important;
}

/* ============================================
   GRADIENT TEXT - ADD SHADOW FOR CONTRAST
============================================ */

.revma-highlight,
.revma-providers-hero h1 .highlight,
h1 .highlight,
h2 .highlight {
    text-shadow: none !important;
    /* Gradient text is fine, but ensure parent has good contrast */
}

/* ============================================
   FILTER CHIPS - BRAND COLORS
============================================ */

.revma-filter-chip.active {
    background: var(--revma-cta-primary) !important;
    color: #ffffff !important;
}

.revma-filter-chip:hover:not(.active) {
    border-color: var(--revma-cta-primary) !important;
    color: var(--revma-cta-primary) !important;
}

/* ============================================
   MOBILE STICKY CTA - HIGH CONTRAST
============================================ */

.revma-mobile-sticky-cta {
    background: rgba(255, 255, 255, 0.98) !important;
}

.revma-mobile-sticky-text {
    color: var(--revma-title-dark) !important;
}

/* ============================================
   CALCULATOR STYLES - UNIFIED
============================================ */

.rpc-calculate-btn,
.revma-calculator-wrapper .revma-btn-primary {
    min-height: 52px !important;
    font-size: 1.05rem !important;
    padding: 14px 28px !important;
}

/* Results CTA buttons */
.rpc-result-card .rpc-request-quote-btn,
.rpc-result-actions .revma-btn {
    background: var(--revma-cta-primary) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

/* ============================================
   ACCESSIBILITY - FOCUS STATES
============================================ */

.revma-btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--revma-cta-primary) !important;
    outline-offset: 2px !important;
}

/* ============================================
   DARK SECTION OVERRIDES
   For CTA sections with dark backgrounds
============================================ */

.revma-cta-section,
.revma-providers-page .revma-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

.revma-cta-section h2 {
    color: #ffffff !important;
}

.revma-cta-section p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* CTA in dark sections - Use success green for variety */
.revma-cta-section .revma-btn-primary,
.revma-cta-section .revma-btn-large {
    background: var(--revma-success) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

.revma-cta-section .revma-btn-primary:hover,
.revma-cta-section .revma-btn-large:hover {
    background: #047857 !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45) !important;
}

/* ============================================
   PRINT STYLES - ENSURE READABILITY
============================================ */

@media print {
    .revma-btn-primary,
    .revma-btn {
        background: #0B5ED7 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    h1, h2, h3, h4 {
        color: #0F172A !important;
    }
}

/* ============================================
   REDUCED MOTION - KEEP FUNCTIONAL
============================================ */

@media (prefers-reduced-motion: reduce) {
    .revma-btn-primary:hover,
    .revma-btn:hover {
        transform: none !important;
    }
}

/* ============================================
   SECTION SPACING - CONSISTENT VERTICAL RHYTHM
   Rule: 64px minimum between major sections
============================================ */

.revma-provider-landing .revma-how-it-works,
.revma-provider-landing .revma-calculator-section,
.revma-provider-landing .revma-faq-section,
.revma-provider-landing .revma-cta-section,
.revma-providers-page .revma-providers-grid-section,
.revma-providers-page .revma-how-section,
.revma-providers-page .revma-faq-section,
.revma-providers-page .revma-cta-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
}

/* Hero sections - Premium above-fold experience */
.revma-provider-landing .revma-provider-hero,
.revma-providers-page .revma-providers-hero,
.revma-hero-section {
    padding-bottom: 80px !important;
    min-height: min(85vh, 820px) !important;
    display: flex !important;
    align-items: center !important;
}

/* Hero layout: Left headline, Right calculator */
.revma-hero-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.revma-hero-left {
    text-align: left !important;
}

.revma-hero-right {
    display: flex !important;
    justify-content: flex-end !important;
}

@media (max-width: 968px) {
    .revma-hero-layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center !important;
    }

    .revma-hero-left {
        text-align: center !important;
    }

    .revma-hero-right {
        justify-content: center !important;
    }

    .revma-provider-landing .revma-provider-hero,
    .revma-providers-page .revma-providers-hero,
    .revma-hero-section {
        min-height: auto !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}

/* Container max-width for consistent content width */
.revma-provider-landing .revma-hero-content,
.revma-provider-landing .revma-section-content,
.revma-providers-page .revma-hero-content,
.revma-providers-page .revma-section-content,
.revma-mid-cta-content {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* ============================================
   BUTTON & LABEL TEXT - NO TRUNCATION
   Rule: All text must be fully visible
============================================ */

/* Filter chips - responsive wrap instead of truncation */
.revma-filter-chip,
.revma-filter-pills button,
.revma-providers-page .revma-filter-chip {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-width: fit-content !important;
}

/* Filter container - allow wrapping on mobile */
.revma-filter-pills,
.revma-providers-page .revma-filter-pills,
.revma-filter-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
}

/* All buttons - prevent text truncation */
.revma-btn,
.revma-btn-primary,
.revma-btn-secondary,
.revma-btn-outline,
.rpc-calculate-btn,
.rpc-type-btn,
.rpc-preset-btn {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Consistent button sizing */
.revma-btn,
.revma-btn-primary,
.revma-btn-secondary {
    min-height: 48px !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
}

/* ============================================
   MOBILE STICKY CTA - SAFE AREA + NO OVERLAP
============================================ */

.revma-mobile-sticky-cta {
    /* Safe area padding for notched devices */
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;

    /* Ensure it doesn't cover content */
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    /* Shadow for visual separation */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Add bottom padding to main content when sticky CTA is present */
@media (max-width: 768px) {
    .revma-provider-landing,
    .revma-providers-page {
        padding-bottom: 80px !important;
    }

    /* Footer needs extra padding */
    .revma-provider-landing footer,
    .revma-providers-page footer,
    .revma-footer {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ============================================
   PROVIDER CARDS - CONSISTENT GRID
============================================ */

.revma-providers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.revma-provider-card {
    /* Consistent card styling */
    display: flex !important;
    flex-direction: column !important;
    min-height: 280px !important;
}

.revma-provider-card-content {
    flex: 1 !important;
}

.revma-provider-card-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
}

/* ============================================
   EMPTY & LOADING STATES
============================================ */

.revma-empty-state,
.revma-loading-state {
    text-align: center !important;
    padding: 60px 24px !important;
    color: var(--revma-text-secondary) !important;
}

.revma-empty-state-icon,
.revma-loading-state-icon {
    font-size: 3rem !important;
    margin-bottom: 16px !important;
    opacity: 0.5 !important;
}

.revma-loading-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 3px solid var(--revma-border) !important;
    border-top-color: var(--revma-cta-primary) !important;
    border-radius: 50% !important;
    animation: revma-spin 0.8s linear infinite !important;
    margin: 0 auto 16px !important;
}

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

/* ============================================
   BRANDING CONSISTENCY - RevmaStoKostos
============================================ */

/* Logo text styling */
.revma-logo-text,
.revma-brand-name {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.revma-logo-text .revma-highlight,
.revma-brand-name .revma-highlight {
    color: var(--revma-cta-primary) !important;
}

/* ============================================
   CALCULATOR CARDS - ALIGNMENT & BADGES
============================================ */

/* Result cards consistent height */
.rpc-result-card,
.rpc-provider-result {
    display: flex !important;
    flex-direction: column !important;
    min-height: 180px !important;
}

.rpc-result-card .rpc-result-actions,
.rpc-provider-result .rpc-result-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
}

/* Badge positioning - never overlap content */
.rpc-result-badge,
.revma-result-badge {
    position: absolute !important;
    top: -12px !important;
    left: 16px !important;
    z-index: 1 !important;
}

/* Badge colors - fixed, not provider colors */
.rpc-badge-cheapest,
.revma-badge-cheapest {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

.rpc-badge-best-value,
.revma-badge-best-value {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
}

/* CTA button alignment in cards */
.rpc-result-card .rpc-request-quote-btn,
.rpc-provider-result .revma-btn {
    width: 100% !important;
    margin-top: 12px !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - FULL COVERAGE
   320px / 375px / 414px / 768px / 1366px
============================================ */

/* Extra small: 320px */
@media (max-width: 320px) {
    .revma-btn,
    .revma-btn-primary {
        padding: 10px 16px !important;
        font-size: 0.875rem !important;
    }

    .revma-provider-hero h1,
    .revma-hero-content h1 {
        font-size: 1.5rem !important;
    }

    .revma-filter-chip {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* Small mobile: 375px */
@media (max-width: 375px) {
    .revma-hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .revma-hero-cta .revma-btn {
        width: 100% !important;
    }
}

/* Medium mobile: 414px */
@media (max-width: 414px) {
    .revma-providers-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet: 768px */
@media (max-width: 768px) {
    .revma-provider-landing .revma-how-it-works,
    .revma-provider-landing .revma-calculator-section,
    .revma-provider-landing .revma-faq-section,
    .revma-providers-page .revma-providers-grid-section,
    .revma-providers-page .revma-how-section,
    .revma-providers-page .revma-faq-section {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* Filter chips in 2 rows on mobile */
    .revma-filter-pills {
        max-width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .revma-filter-pills::-webkit-scrollbar {
        display: none !important;
    }
}

/* Desktop: 1366px+ */
@media (min-width: 1366px) {
    .revma-providers-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ============================================
   FOCUS STATES - KEYBOARD ACCESSIBILITY
============================================ */

*:focus-visible {
    outline: 3px solid var(--revma-cta-primary) !important;
    outline-offset: 2px !important;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none !important;
}

/* Interactive elements focus state */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--revma-cta-primary) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(11, 94, 215, 0.15) !important;
}

/* ============================================
   ICONS - INLINE SVG FALLBACKS
============================================ */

/* Ensure icons don't show as broken boxes */
.revma-icon,
.rpc-icon,
[class*="icon"] svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Icon fallback text */
.revma-icon-fallback {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif !important;
}

/* ============================================
   v3.0 - MOBILE-FIRST QA RULES
   CRITICAL: No horizontal scroll, no truncated CTAs,
   no text on wrong background color
============================================ */

/* Global overflow prevention */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.revma-provider-landing,
.revma-providers-page,
.rpc-calculator {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* 320px - Extra small devices (iPhone SE, older phones) */
@media (max-width: 320px) {
    /* Typography scaling */
    .revma-hero-content h1,
    .revma-providers-hero h1,
    .revma-provider-hero h1 {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }

    .revma-hero-content .subtitle,
    .revma-providers-hero .subtitle {
        font-size: 0.9rem !important;
    }

    /* Section padding reduced */
    .revma-provider-landing section,
    .revma-providers-page section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* CTAs never truncate */
    .revma-btn,
    .revma-btn-primary,
    .revma-btn-secondary {
        font-size: 0.8rem !important;
        padding: 10px 14px !important;
        min-height: 44px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Hero CTAs stack vertically */
    .revma-hero-cta {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .revma-hero-cta .revma-btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Cards simplified */
    .revma-provider-card {
        padding: 16px !important;
        min-height: auto !important;
    }

    /* Filter chips scroll horizontally */
    .revma-filter-chips,
    .revma-filter-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 8px !important;
    }

    .revma-filter-chip {
        flex-shrink: 0 !important;
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
    }
}

/* 375px - Standard iPhone size */
@media (max-width: 375px) and (min-width: 321px) {
    .revma-hero-content h1,
    .revma-providers-hero h1 {
        font-size: 1.6rem !important;
    }

    .revma-btn,
    .revma-btn-primary {
        font-size: 0.85rem !important;
        padding: 11px 18px !important;
    }

    .revma-hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* 414px - Larger phones (iPhone Plus/Max) */
@media (max-width: 414px) and (min-width: 376px) {
    .revma-hero-content h1,
    .revma-providers-hero h1 {
        font-size: 1.75rem !important;
    }

    .revma-btn,
    .revma-btn-primary {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }
}

/* All mobile: Prevent overflow from any element */
@media (max-width: 480px) {
    /* Prevent horizontal scroll from any content */
    img, video, iframe, embed, object,
    table, pre, code {
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    /* Text never causes overflow - BUT exclude FAQ which needs hyphens: none */
    p, h1, h2, h3, h4, h5, h6, a, li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Spans - only auto-hyphenate if NOT in FAQ */
    span:not(.revma-faq-text):not(.revma-faq-emoji) {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Grid items don't overflow */
    .revma-providers-grid {
        grid-template-columns: 1fr !important;
        padding: 0 12px !important;
    }

    /* Trust badges wrap properly */
    .revma-trust-badges {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Mobile sticky CTA centered */
    .revma-mobile-sticky-cta {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .revma-mobile-sticky-cta .revma-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ============================================
   QA CHECKLIST MARKERS (dev/test only)
   Use data-qa attributes for automated testing
============================================ */

/* Visual QA indicators - hidden in production */
[data-qa-check]:not([data-qa-pass])::after {
    /* Shows red indicator for failing QA checks */
    /* Uncomment for development testing:
    content: '⚠️ QA';
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    z-index: 99999;
    */
}

/* ============================================
   PRINT STYLES - MOBILE QA CONSISTENCY
============================================ */
@media print {
    /* Same typography hierarchy as mobile */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }

    /* No shadows or gradients */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .revma-btn,
    .revma-btn-primary {
        background: #2563EB !important;
        background-image: none !important;
    }
}

/* ============================================
   v3.1 - CONVERSION POLISH PASS
   Hero, Calculator, Steps, Providers, FAQ, CTAs
============================================ */

/* =====================
   1. HERO SECTION POLISH
   - Better title contrast
   - Primary CTA = green, Secondary = blue
   - Smaller/lighter badge
===================== */

/* Hero title - stronger contrast (provider pages with light bg) */
.revma-providers-hero h1 {
    color: #0F172A !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    /* Ensure max contrast on light backgrounds */
}

/* Hero title highlight - gradient with shadow for legibility */
.revma-hero-content h1 .highlight,
.revma-providers-hero h1 .highlight {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Hero badge - smaller and lighter */
.revma-hero-badge,
.revma-comparison-badge {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: #475569 !important;
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    border-radius: 999px !important;
}

/* Hero CTA hierarchy: Primary = GREEN, Secondary = BLUE outline */
.revma-hero-cta .revma-btn-primary,
.revma-hero-cta .revma-btn:first-child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.revma-hero-cta .revma-btn-primary:hover,
.revma-hero-cta .revma-btn:first-child:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5) !important;
}

.revma-hero-cta .revma-btn-secondary,
.revma-hero-cta .revma-btn:nth-child(2) {
    background: transparent !important;
    color: #2563EB !important;
    border: 2px solid #2563EB !important;
}

/* =====================
   2. CALCULATOR CARD POLISH
   - Enhanced active tab state
   - Selected chip state
   - Taller CTA button
   - Placeholder hint
===================== */

/* Tab buttons - stronger active state */
.rpc-type-btn.active,
.rpc-ui.rpc-calculator .rpc-type-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 8px 24px rgba(37, 99, 235, 0.35) !important;
    position: relative !important;
}

/* Active tab glow underline */
.rpc-type-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 20% !important;
    right: 20% !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent) !important;
    border-radius: 2px !important;
}

/* Preset chips - filled selected state */
.rpc-preset-btn.active,
.rpc-ui.rpc-calculator .rpc-preset-btn.active {
    background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

/* Calculate CTA - taller (56px → 60px) */
.rpc-calculate-btn,
.rpc-ui.rpc-calculator .rpc-calculate-btn {
    height: 60px !important;
    min-height: 60px !important;
    font-size: 1.1rem !important;
}

/* Input placeholder styling */
.rpc-calculator input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Inline hint below input */
.rpc-input-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    font-style: italic;
}

/* =====================
   3. STEPS SECTION POLISH
   - Less padding
   - Icon vertical alignment
   - Step 4 not orphaned (2x2 grid)
===================== */

.revma-how-steps,
.revma-steps-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

@media (min-width: 769px) {
    .revma-how-steps,
    .revma-steps-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.revma-how-step,
.revma-step {
    padding: 20px 16px !important;
    text-align: center !important;
}

/* Icon vertical alignment */
.revma-how-step-icon,
.revma-step-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
}

/* Step number badge */
.revma-how-step-number,
.revma-step-number {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
}

/* =====================
   4. PROVIDERS SECTION POLISH
   - Same height cards
   - Hover effect
   - Trust badge styling
===================== */

/* Provider cards - consistent height */
.revma-provider-card {
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hover effect */
.revma-provider-card-link:hover .revma-provider-card {
    transform: scale(1.03) translateY(-4px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

/* RAE Trust badge - more prominent */
.revma-badge-rae,
.revma-provider-card-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
}

/* Trust disclaimer text */
.revma-providers-disclaimer {
    font-weight: 600 !important;
}

.revma-providers-disclaimer strong {
    color: #059669 !important;
}

/* =====================
   5. FAQ SECTION POLISH
   - Larger clickable area
   - Smooth animation
   - Active state border
===================== */

/* FAQ item - larger click area */
details.revma-faq-item summary {
    padding: 20px 24px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

details.revma-faq-item summary:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}

/* Active FAQ - blue border */
details.revma-faq-item[open] {
    border-color: #2563EB !important;
    border-left: 4px solid #2563EB !important;
    background: #f8fbff !important;
}

/* Smooth open animation */
.revma-faq-answer {
    animation: faqSlideDown 0.3s ease-out !important;
}

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

/* =====================
   6. BOTTOM CTA SECTION POLISH
   - More spacing
   - Brighter green CTA
   - Lighter secondary button
===================== */

.revma-cta-section {
    padding: 80px 24px !important;
}

/* Primary CTA - brighter green */
.revma-cta-section .revma-btn-primary,
.revma-cta-section .revma-btn-large {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45) !important;
}

.revma-cta-section .revma-btn-primary:hover,
.revma-cta-section .revma-btn-large:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.55) !important;
}

/* Secondary CTA - lighter, less competing */
.revma-cta-section .revma-btn-secondary,
.revma-cta-section .revma-btn-call {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
}

.revma-cta-section .revma-btn-secondary:hover,
.revma-cta-section .revma-btn-call:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* =====================
   7. UX IMPROVEMENTS
   - Sticky call after scroll
   - Social proof timing (CSS only - JS needed for full control)
===================== */

/* Floating call button - initially hidden */
.revma-floating-call,
.revma-sticky-call {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease !important;
    pointer-events: none;
}

/* Show after scroll (JS adds .is-visible class) */
.revma-floating-call.is-visible,
.revma-sticky-call.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Social proof bubbles - slower animation */
.revma-social-proof-bubble {
    animation-duration: 8s !important;
}

/* Ensure floating elements don't overlap chatbot */
.revma-floating-call,
.revma-sticky-call {
    bottom: 100px !important; /* Above chatbot toggle */
}

@media (max-width: 768px) {
    .revma-floating-call,
    .revma-sticky-call {
        display: none !important; /* Hide on mobile - use sticky bar instead */
    }
}

/* ============================================
   v3.2 - CRITICAL HERO CONTRAST FIX
   Updated selectors to match frontpage.php:
   - .revma-hero (hero section)
   - .revma-badge (top badge)
   - h1 .highlight ("Φθηνότερο")
   - .revma-btn-primary / .revma-btn-secondary
   - .revma-savings-pill
============================================ */

/* ===================
   HERO BADGE (TOP) - MORE VISIBLE
   Class: .revma-badge
=================== */
.revma-hero .revma-badge,
.revma-frontpage .revma-badge {
    /* Brighter background for visibility */
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    /* Stronger border */
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;

    /* Readable text */
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;

    /* Glow effect for prominence */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.revma-hero .revma-badge svg,
.revma-frontpage .revma-badge svg {
    color: #facc15 !important; /* Yellow lightning bolt */
}

/* ===================
   HERO TITLE - CLEAN, READABLE
   The h1 inside .revma-hero
=================== */
.revma-hero h1,
.revma-hero-content h1 {
    color: #FFFFFF !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: -0.02em !important;
}

/* ===================
   HIGHLIGHT WORD ("Φθηνότερο") - UNIFIED WITH TITLE
   Was blue gradient, now white with yellow underline
=================== */
.revma-hero h1 .highlight,
.revma-hero-content h1 .highlight {
    /* Remove blue gradient - use solid white */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;

    /* Yellow/gold underline for accent (matches lightning) */
    text-decoration: underline !important;
    text-decoration-color: #facc15 !important;
    text-decoration-thickness: 4px !important;
    text-underline-offset: 6px !important;

    /* Remove any filters/effects */
    filter: none !important;
    font-style: normal !important;
}

/* ===================
   SAVINGS PILL - ALREADY GREEN, MAKE MORE PROMINENT
=================== */
.revma-hero .revma-savings-pill,
.revma-hero-content .revma-savings-pill {
    /* Brighter green background */
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.25) 0%,
        rgba(22, 163, 74, 0.2) 100%) !important;
    border: 2px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow:
        0 4px 20px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.revma-hero .revma-savings-value,
.revma-hero-content .revma-savings-value {
    color: #4ade80 !important; /* Bright green */
    font-weight: 700 !important;
}

/* ===================
   SUBTITLE - BETTER CONTRAST
=================== */
.revma-hero .subtitle,
.revma-hero-content .subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.revma-hero .subtitle strong,
.revma-hero-content .subtitle strong {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* ===================
   PRIMARY CTA - STRONGER GREEN, BIGGER GLOW
=================== */
.revma-hero .revma-btn-primary,
.revma-hero-content .revma-btn-primary,
.revma-hero .revma-hero-cta .revma-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 16px 32px !important;
    min-height: 56px !important;
    border: none !important;

    /* Strong glow ring for maximum visibility */
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.35),
        0 8px 32px rgba(34, 197, 94, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2) !important;

    /* Ensure border-radius */
    border-radius: 14px !important;
}

/* Primary CTA hover */
.revma-hero .revma-btn-primary:hover,
.revma-hero-content .revma-btn-primary:hover,
.revma-hero .revma-hero-cta .revma-btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.4),
        0 12px 40px rgba(34, 197, 94, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* ===================
   SECONDARY CTA - GLASS EFFECT WITH WHITE BORDER
=================== */
.revma-hero .revma-btn-secondary,
.revma-hero-content .revma-btn-secondary,
.revma-hero .revma-hero-cta .revma-btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    min-height: 52px !important;
    border-radius: 14px !important;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.revma-hero .revma-btn-secondary:hover,
.revma-hero-content .revma-btn-secondary:hover,
.revma-hero .revma-hero-cta .revma-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px) !important;
}

/* Ads landing hero — same white secondary button */
.revma-ads-hero .revma-hero-cta .revma-btn-secondary,
.revma-ads-hero .revma-hero-cta .revma-btn:nth-child(2) {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.revma-ads-hero .revma-hero-cta .revma-btn-secondary:hover,
.revma-ads-hero .revma-hero-cta .revma-btn:nth-child(2):hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px) !important;
}

/* ===================
   HERO STATS - BETTER VISIBILITY
=================== */
.revma-hero .revma-hero-stats,
.revma-hero-content .revma-hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 20px !important;
    margin-top: 24px !important;
}

.revma-hero .revma-stat-value,
.revma-hero-content .revma-stat-value {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.revma-hero .revma-stat-label,
.revma-hero-content .revma-stat-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ===================
   MOBILE ADJUSTMENTS
=================== */
@media (max-width: 768px) {
    .revma-hero h1,
    .revma-hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        text-align: center !important;
    }

    .revma-hero .subtitle,
    .revma-hero-content .subtitle {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .revma-hero .revma-badge {
        font-size: 0.75rem !important;
        padding: 8px 14px !important;
    }

    .revma-hero .revma-hero-cta,
    .revma-hero-content .revma-hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .revma-hero .revma-hero-cta .revma-btn,
    .revma-hero-content .revma-hero-cta .revma-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .revma-hero .revma-btn-primary,
    .revma-hero-content .revma-btn-primary {
        padding: 14px 24px !important;
        font-size: 1rem !important;
    }

    .revma-hero .revma-btn-secondary,
    .revma-hero-content .revma-btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* ===================
   ALTERNATIVE: LIGHT HERO BACKGROUND
   If hero has light/white background
=================== */
.revma-hero-section.hero-light h1,
.revma-hero-section:not(.hero-dark) h1 {
    color: #0F172A !important;
    text-shadow: none !important;
}

.revma-hero-section.hero-light h1 .highlight {
    text-decoration-color: #2563EB !important;
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

.revma-hero-section.hero-light .revma-hero-badge {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: #1e40af !important;
    backdrop-filter: none !important;
}

.revma-hero-section.hero-light .subtitle {
    color: #475569 !important;
}

/* ============================================
   v3.3 - PROVIDERS PAGE HERO CRITICAL FIX
   Problem: Light background with white text = invisible
   Solution: Force dark hero OR dark text on light bg
============================================ */

/* OPTION 1: Force DARK hero background on providers page */
.revma-providers-page .revma-providers-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%) !important;
}

/* Ensure white text on dark hero */
.revma-providers-page .revma-providers-hero h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    font-weight: 800 !important;
}

/* Highlight with gold/yellow underline (same as frontpage) */
.revma-providers-page .revma-providers-hero h1 .highlight {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    color: #FFFFFF !important;
    text-decoration: underline !important;
    text-decoration-color: #facc15 !important;
    text-decoration-thickness: 4px !important;
    text-underline-offset: 6px !important;
    filter: none !important;
}

/* Subtitle - high contrast white */
.revma-providers-page .revma-providers-hero .subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Badge - visible on dark */
.revma-providers-page .revma-providers-hero .revma-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
}

.revma-providers-page .revma-providers-hero .revma-badge svg {
    color: #4ade80 !important;
}

/* Primary CTA - green with glow */
.revma-providers-page .revma-providers-hero .revma-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #FFFFFF !important;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.3),
        0 8px 24px rgba(34, 197, 94, 0.4) !important;
}

.revma-providers-page .revma-providers-hero .revma-btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.4),
        0 12px 32px rgba(34, 197, 94, 0.5) !important;
}

/* Secondary CTA - glass on dark */
.revma-providers-page .revma-providers-hero .revma-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.revma-providers-page .revma-providers-hero .revma-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   v3.4 - KOSTOS-REVMATOS PAGE HERO FIX
   Problem: Badge has dark text on dark hero background
   Solution: Force white text on all dark hero elements
============================================ */

/* Ensure dark hero background */
.revma-kostos-page .revma-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%) !important;
}

/* Hero Badge - white text on dark */
.revma-kostos-page .revma-hero-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.revma-kostos-page .revma-hero-badge svg {
    color: #facc15 !important; /* Yellow icon */
}

/* Hero Title - white */
.revma-kostos-page .revma-hero h1 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Hero Subtitle - high contrast white */
.revma-kostos-page .revma-hero .revma-hero-sub,
.revma-kostos-page .revma-hero-sub {
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Primary CTA - green glow */
.revma-kostos-page .revma-hero .revma-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #FFFFFF !important;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.3),
        0 8px 24px rgba(34, 197, 94, 0.4) !important;
}

.revma-kostos-page .revma-hero .revma-btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

/* Secondary CTA - glass on dark */
.revma-kostos-page .revma-hero .revma-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

.revma-kostos-page .revma-hero .revma-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   v3.5 - PROVIDER LANDING PAGE HERO FIX
   Problem: Badge uses provider-accent which may be dark
   Solution: Force white text on hero badges
============================================ */

/* Hero Badge - override provider-accent color */
.revma-provider-landing .revma-provider-hero .revma-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
}

.revma-provider-landing .revma-provider-hero .revma-badge svg {
    color: #facc15 !important; /* Yellow icon for visibility */
}

/* Trust badges on dark hero - white text */
.revma-provider-landing .revma-provider-hero .revma-trust-badge,
.revma-provider-landing .revma-provider-hero .revma-trust-badge span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.revma-provider-landing .revma-provider-hero .revma-trust-badge svg {
    color: #4ade80 !important; /* Green icons for trust */
}

/* Primary CTA in hero */
.revma-provider-landing .revma-provider-hero .revma-btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #FFFFFF !important;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.3),
        0 8px 24px rgba(34, 197, 94, 0.4) !important;
}

/* Secondary CTA in hero */
.revma-provider-landing .revma-provider-hero .revma-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
}

/* v3.6 - Logo overrides removed - using original site styles */

/* ============================================
   v4.0 - MOBILE PROFESSIONAL POLISH
   100% επαγγελματική εμφάνιση σε κινητά
   Covers: 320px / 375px / 390px / 414px / 428px
============================================ */

/* ===========================================
   NAV LABELS - RESPONSIVE SHORT/FULL TEXT
   Desktop: "Υπολογισμός Κόστους"
   Mobile: "Κόστος"
=========================================== */
.nav-short {
    display: none !important;
}

.nav-full {
    display: inline !important;
}

@media (max-width: 768px) {
    .nav-short {
        display: inline !important;
    }

    .nav-full {
        display: none !important;
    }
}

/* ===========================================
   MOBILE HEADER - PROFESSIONAL & COMPACT
   Logo centered, navigation below or hidden
=========================================== */
@media (max-width: 768px) {
    /* Header - Stacked layout */
    .revma-site-header {
        padding: 12px 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    .revma-header-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Logo - Centered, proper size */
    .revma-logo {
        height: 40px !important;
        width: auto !important;
        max-width: 180px !important;
        object-fit: contain !important;
    }

    /* Navigation - Horizontal, compact */
    .revma-main-nav {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }

    .revma-main-nav a {
        padding: 4px 0 !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        color: #475569 !important;
    }

    .revma-main-nav a:hover,
    .revma-main-nav a.active {
        color: #2563EB !important;
    }

    /* Live bar - Compact single line */
    .revma-live-bar {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .revma-live-indicator,
    .revma-live-stat {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    /* Hide separator on mobile */
    .revma-live-indicator span[style*="margin"] {
        display: none !important;
    }

    /* Hide hours on very small screens */
    .revma-live-indicator span:last-child {
        display: none !important;
    }
}

/* Small phones (375px and below) */
@media (max-width: 375px) {
    .revma-site-header {
        padding: 10px 12px !important;
    }

    .revma-header-container {
        gap: 8px !important;
    }

    .revma-logo {
        height: 36px !important;
        max-width: 150px !important;
    }

    .revma-main-nav {
        gap: 16px !important;
        font-size: 0.8rem !important;
    }

    .revma-live-bar {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }

    /* Hide email on very small screens */
    .revma-live-stat {
        display: none !important;
    }
}

/* Extra small phones (320px) */
@media (max-width: 320px) {
    .revma-logo {
        height: 32px !important;
        max-width: 130px !important;
    }

    .revma-main-nav {
        gap: 12px !important;
        font-size: 0.75rem !important;
    }
}

/* ===========================================
   MOBILE HERO - PREMIUM & FOCUSED
=========================================== */
@media (max-width: 768px) {
    .revma-hero,
    .revma-frontpage .revma-hero {
        padding: 32px 20px 48px !important;
        min-height: auto !important;
    }

    .revma-hero-content {
        text-align: center !important;
        max-width: 100% !important;
    }

    /* Badge - Smaller, cleaner */
    .revma-hero .revma-badge,
    .revma-frontpage .revma-badge {
        font-size: 0.7rem !important;
        padding: 8px 14px !important;
        margin-bottom: 16px !important;
    }

    .revma-hero .revma-badge svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Title - Impactful but fits */
    .revma-hero h1,
    .revma-hero-content h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        letter-spacing: -0.02em !important;
    }

    /* Remove line break on mobile */
    .revma-hero h1 br {
        display: none !important;
    }

    /* Highlight underline - thinner on mobile */
    .revma-hero h1 .highlight {
        text-decoration-thickness: 3px !important;
        text-underline-offset: 4px !important;
    }

    /* Savings pill - Compact */
    .revma-hero .revma-savings-pill,
    .revma-savings-pill {
        padding: 10px 16px !important;
        margin: 16px auto !important;
        max-width: 280px !important;
    }

    .revma-savings-label {
        font-size: 0.75rem !important;
    }

    .revma-savings-value {
        font-size: 0.85rem !important;
    }

    /* Subtitle - Concise */
    .revma-hero .subtitle,
    .revma-hero-content .subtitle {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        padding: 0 8px !important;
    }

    /* CTA buttons - Full width, stacked */
    .revma-hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .revma-hero-cta .revma-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        padding: 14px 20px !important;
        min-height: 52px !important;
    }

    .revma-hero-cta .revma-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Stats row - Horizontal, compact */
    .revma-hero-stats {
        display: flex !important;
        justify-content: center !important;
        gap: 24px !important;
        margin-top: 24px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .revma-stat {
        text-align: center !important;
    }

    .revma-stat-value {
        font-size: 1.25rem !important;
        display: block !important;
    }

    .revma-stat-label {
        font-size: 0.7rem !important;
        display: block !important;
    }

    /* Hide scroll indicator on mobile */
    .revma-scroll-indicator {
        display: none !important;
    }
}

/* Extra small (320px) */
@media (max-width: 320px) {
    .revma-hero h1 {
        font-size: 1.35rem !important;
    }

    .revma-hero .subtitle {
        font-size: 0.8rem !important;
    }

    .revma-hero-cta .revma-btn {
        font-size: 0.85rem !important;
        padding: 12px 16px !important;
        min-height: 48px !important;
    }

    .revma-hero-stats {
        gap: 16px !important;
    }

    .revma-stat-value {
        font-size: 1.1rem !important;
    }
}

/* ===========================================
   MOBILE CALCULATOR - CLEAN & FUNCTIONAL
=========================================== */
@media (max-width: 768px) {
    /* Calculator card */
    .rpc-calculator,
    .rpc-ui.rpc-calculator {
        border-radius: 16px !important;
        margin: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    .rpc-form-section {
        padding: 20px 16px !important;
    }

    /* Calculator header */
    .rpc-header h2 {
        font-size: 1.25rem !important;
        margin-bottom: 16px !important;
    }

    /* Type buttons - Full width */
    .rpc-type-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .rpc-type-btn {
        height: 48px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    /* Preset chips - 2x2 grid */
    .rpc-presets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .rpc-preset-btn {
        height: 40px !important;
        font-size: 0.8rem !important;
        padding: 0 12px !important;
    }

    /* Input fields */
    .rpc-input,
    .rpc-form-section input,
    .rpc-form-section select {
        height: 52px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
        border-radius: 12px !important;
    }

    /* Calculate button - Prominent */
    .rpc-calculate-btn {
        height: 56px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        margin-top: 16px !important;
    }

    /* Results */
    .rpc-results {
        padding: 16px !important;
    }

    .rpc-results-list {
        gap: 16px !important;
    }

    /* Result cards */
    .rpc-provider-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    /* Best choice badge - Inline on mobile */
    .rpc-best-choice-badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 12px !important;
        font-size: 0.75rem !important;
        padding: 6px 14px !important;
    }

    /* Provider logo in results */
    .rpc-provider-logo {
        height: 36px !important;
        margin-bottom: 8px !important;
    }

    /* Price display */
    .rpc-monthly-price {
        font-size: 1.5rem !important;
    }

    .rpc-price-label {
        font-size: 0.75rem !important;
    }

    /* Request quote button */
    .rpc-request-quote-btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 0.9rem !important;
        margin-top: 12px !important;
    }
}

/* ===========================================
   MOBILE SECTIONS - CONSISTENT SPACING
=========================================== */
@media (max-width: 768px) {
    /* Section padding */
    section,
    .revma-section,
    .revma-how-section,
    .revma-providers-section,
    .revma-faq-section,
    .revma-cta-section {
        padding: 40px 16px !important;
    }

    /* Section headers */
    .revma-section-header {
        margin-bottom: 32px !important;
    }

    .revma-section-header h2 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    .revma-section-header p {
        font-size: 0.9rem !important;
        padding: 0 8px !important;
    }

    /* Steps grid - 2 columns */
    .revma-how-steps,
    .revma-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .revma-step,
    .revma-how-step {
        padding: 16px 12px !important;
    }

    .revma-step-icon,
    .revma-how-step-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
    }

    .revma-step h3,
    .revma-how-step h3 {
        font-size: 0.9rem !important;
    }

    .revma-step p,
    .revma-how-step p {
        font-size: 0.8rem !important;
        display: none !important; /* Hide on mobile for cleaner look */
    }

    /* Provider cards grid */
    .revma-providers-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }

    .revma-provider-card {
        padding: 20px !important;
        min-height: auto !important;
    }

    /* FAQ - Full width */
    .revma-faq-container {
        padding: 0 !important;
    }

    details.revma-faq-item {
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    summary.revma-faq-question {
        padding: 16px 18px !important;
    }

    summary.revma-faq-question span {
        font-size: 0.95rem !important;
    }

    .revma-faq-answer {
        padding: 0 18px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* ===========================================
   MOBILE FOOTER - CLEAN & PROFESSIONAL
=========================================== */
@media (max-width: 768px) {
    .revma-footer {
        padding: 40px 16px 24px !important;
    }

    .revma-footer-content {
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center !important;
    }

    .revma-footer-brand {
        text-align: center !important;
    }

    .revma-footer-logo {
        height: 48px !important;
        margin: 0 auto 12px !important;
    }

    .revma-footer-brand p {
        font-size: 0.85rem !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .revma-footer h4 {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    .revma-footer ul {
        gap: 8px !important;
    }

    .revma-footer li,
    .revma-footer a {
        font-size: 0.85rem !important;
    }

    .revma-footer-bottom {
        margin-top: 32px !important;
        padding-top: 20px !important;
        font-size: 0.75rem !important;
        text-align: center !important;
    }
}

/* ===========================================
   MOBILE CTA SECTION - IMPACTFUL
=========================================== */
@media (max-width: 768px) {
    .revma-cta-section {
        padding: 48px 20px !important;
        text-align: center !important;
    }

    .revma-cta-section h2 {
        font-size: 1.35rem !important;
        margin-bottom: 12px !important;
    }

    .revma-cta-section p {
        font-size: 0.9rem !important;
        margin-bottom: 24px !important;
    }

    .revma-cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .revma-cta-buttons .revma-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ===========================================
   MOBILE CHATBOT - NON-INTRUSIVE
=========================================== */
@media (max-width: 768px) {
    /* Toggle button - Right corner, above safe area */
    .revma-ai-toggle {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
    }

    /* Widget - Bottom sheet style */
    .revma-ai-widget {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 80vh !important;
        max-height: 80vh !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* Ensure chatbot doesn't cover sticky CTAs */
    body.has-sticky-cta .revma-ai-toggle {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ===========================================
   MOBILE STICKY CTA BAR
=========================================== */
@media (max-width: 768px) {
    .revma-mobile-sticky-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
    }

    .revma-mobile-sticky-cta .revma-btn {
        width: 100% !important;
        height: 52px !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
    }
}

/* ===========================================
   MOBILE TYPOGRAPHY REFINEMENTS
=========================================== */
@media (max-width: 768px) {
    /* Prevent text overflow */
    p, h1, h2, h3, h4, span, a, li {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Phone numbers - Tappable */
    a[href^="tel:"] {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Links - Bigger tap targets */
    .revma-footer a,
    .revma-main-nav a {
        padding: 8px 0 !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* ===========================================
   LANDSCAPE MOBILE - Prevent layout issues
=========================================== */
@media (max-width: 896px) and (orientation: landscape) {
    .revma-hero {
        min-height: auto !important;
        padding: 24px 40px !important;
    }

    .revma-hero-stats {
        flex-wrap: nowrap !important;
    }

    .revma-ai-widget {
        height: 95vh !important;
        max-height: 95vh !important;
    }
}

/* ===========================================
   SAFE AREA INSETS (iPhone notch/home bar)
=========================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .revma-footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }

    .revma-mobile-sticky-cta {
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

/* ===========================================
   TOUCH FEEDBACK - Professional feel
=========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .revma-btn:hover,
    .revma-provider-card:hover,
    .revma-card:hover {
        transform: none !important;
    }

    /* Add active state instead */
    .revma-btn:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
    }

    .revma-provider-card:active,
    .revma-card:active {
        transform: scale(0.99) !important;
    }

    /* Tap highlight color */
    a, button, .revma-btn, .revma-card {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1) !important;
    }
}

/* ===========================================
   PRINT STYLES FOR MOBILE
=========================================== */
@media print {
    .revma-ai-toggle,
    .revma-ai-widget,
    .revma-mobile-sticky-cta,
    .revma-live-bar {
        display: none !important;
    }
}

/* ===========================================
   v4.1 - PROVIDER PAGES MOBILE POLISH
   Provider landing (/paroxos/xxx/) & providers list
=========================================== */
@media (max-width: 768px) {
    /* Provider Landing Hero */
    .revma-provider-landing .revma-provider-hero {
        padding: 32px 16px 48px !important;
    }

    .revma-provider-landing .revma-provider-logo-badge {
        padding: 16px 24px !important;
        margin-bottom: 16px !important;
    }

    .revma-provider-landing .revma-provider-logo-badge img {
        max-height: 48px !important;
        max-width: 150px !important;
    }

    .revma-provider-landing .revma-hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    .revma-provider-landing .revma-hero-content .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .revma-provider-landing .revma-hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }

    .revma-provider-landing .revma-hero-cta .revma-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Provider Landing Trust badges */
    .revma-provider-landing .revma-trust-badges {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    .revma-provider-landing .revma-trust-badge {
        font-size: 0.75rem !important;
    }

    /* Provider Landing Sections */
    .revma-provider-landing .revma-how-it-works,
    .revma-provider-landing .revma-calculator-section,
    .revma-provider-landing .revma-faq-section,
    .revma-provider-landing .revma-cta-section {
        padding: 40px 16px !important;
    }

    /* Provider Landing Steps */
    .revma-provider-landing .revma-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .revma-provider-landing .revma-step {
        padding: 16px 12px !important;
    }

    .revma-provider-landing .revma-step-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
    }

    .revma-provider-landing .revma-step h3 {
        font-size: 0.85rem !important;
    }

    .revma-provider-landing .revma-step p {
        font-size: 0.75rem !important;
    }

    /* Provider Landing Calculator */
    .revma-provider-landing .revma-calculator-wrapper {
        padding: 0 !important;
    }

    /* Providers List Page */
    .revma-providers-page .revma-providers-hero {
        padding: 32px 16px 48px !important;
        min-height: auto !important;
    }

    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    .revma-providers-page .revma-providers-hero .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    /* Providers Grid */
    .revma-providers-page .revma-providers-grid-section {
        padding: 40px 16px !important;
    }

    .revma-providers-page .revma-providers-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Provider cards in list */
    .revma-providers-page .revma-provider-card {
        padding: 20px 16px !important;
        min-height: auto !important;
    }

    .revma-providers-page .revma-provider-card-logo {
        height: 50px !important;
        margin-bottom: 12px !important;
    }

    .revma-providers-page .revma-provider-card-logo img {
        max-height: 40px !important;
    }

    .revma-providers-page .revma-provider-card-name {
        font-size: 1rem !important;
    }

    .revma-providers-page .revma-provider-card-desc {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 2 !important;
    }

    /* Filter bar */
    .revma-providers-page .revma-providers-filter-bar {
        padding: 12px 16px !important;
        gap: 12px !important;
    }

    .revma-providers-page .revma-filter-chips {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .revma-providers-page .revma-filter-chip {
        flex-shrink: 0 !important;
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }

    .revma-providers-page .revma-sort-select {
        width: 100% !important;
        height: 44px !important;
        font-size: 0.9rem !important;
    }
}

/* Extra small phones for provider pages */
@media (max-width: 320px) {
    .revma-provider-landing .revma-hero-content h1,
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.25rem !important;
    }

    .revma-provider-landing .revma-steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================
   v4.2 - KOSTOS-REVMATOS PAGE MOBILE POLISH
=========================================== */
@media (max-width: 768px) {
    .revma-kostos-page .revma-hero {
        padding: 32px 16px 40px !important;
        min-height: auto !important;
    }

    .revma-kostos-page .revma-hero h1 {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    .revma-kostos-page .revma-hero-sub {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
    }

    .revma-kostos-page .revma-hero-badge {
        font-size: 0.7rem !important;
        padding: 8px 14px !important;
        margin-bottom: 16px !important;
    }

    /* Calculator embedded in hero */
    .revma-kostos-page .revma-calculator-embed {
        margin-top: 24px !important;
    }

    /* Results section */
    .revma-kostos-page .rpc-results-section {
        padding: 24px 16px !important;
    }
}

/* ===========================================
   v4.3 - FINAL MOBILE QUALITY CHECKS
   Ensuring no edge cases break
=========================================== */

/* Prevent ANY horizontal overflow */
@media (max-width: 768px) {
    html, body,
    .revma-frontpage,
    .revma-provider-landing,
    .revma-providers-page,
    .revma-kostos-page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* All images respect container */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* All tables scroll */
    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Long words break */
    * {
        word-wrap: break-word !important;
    }

    /* Ensure minimum tap target size (44px) */
    button,
    a.revma-btn,
    .revma-filter-chip,
    .rpc-preset-btn,
    .rpc-type-btn,
    input[type="submit"] {
        min-height: 44px !important;
    }

    /* Form inputs prevent iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ===========================================
   v4.4 - CALCULATOR RESULTS MOBILE FIX
   Provider cards need single-column layout on mobile
=========================================== */

@media (max-width: 768px) {
    /* Provider cards: stack vertically instead of 3-column grid */
    .rpc-provider-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 16px !important;
    }

    /* Rank badge centered at top */
    .rpc-rank {
        align-self: flex-start !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Provider info full width */
    .rpc-provider-info {
        width: 100% !important;
    }

    .rpc-provider-header {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .rpc-provider-logo {
        width: 44px !important;
        height: 44px !important;
    }

    .rpc-provider-name {
        font-size: 1rem !important;
    }

    .rpc-plan-name {
        font-size: 0.8rem !important;
    }

    /* Details wrap properly */
    .rpc-provider-details {
        gap: 10px !important;
        font-size: 0.75rem !important;
    }

    /* Pricing section full width, centered */
    .rpc-provider-pricing {
        width: 100% !important;
        text-align: center !important;
        padding-top: 12px !important;
        border-top: 1px solid var(--border-soft, #E5E7EB) !important;
        min-width: unset !important;
    }

    .rpc-monthly-price {
        font-size: 1.5rem !important;
    }

    .rpc-price-details {
        font-size: 0.75rem !important;
    }

    /* CTA button full width */
    .rpc-provider-cta,
    .rpc-request-quote-btn {
        width: 100% !important;
        margin-top: 8px !important;
    }

    /* "ΚΑΛΥΤΕΡΗ ΤΙΜΗ" badge - pill style (not ribbon) */
    .rpc-provider-card.cheapest::before {
        font-size: 0.65rem !important;
        padding: 5px 12px !important;
        top: -10px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    /* Add margin for badge space */
    .rpc-provider-card.cheapest {
        margin-top: 14px !important;
    }

    /* Summary section mobile */
    .rpc-summary {
        padding: 20px 16px !important;
    }

    .rpc-summary-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .rpc-summary-item .value {
        font-size: 1.5rem !important;
    }

    .rpc-summary-item .value small {
        font-size: 0.85rem !important;
    }

    /* Results header */
    .rpc-results-header {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .rpc-results-header h3 {
        font-size: 1.1rem !important;
    }

    /* Filter/sort controls */
    .rpc-results-controls {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .rpc-sort-select,
    .rpc-filter-toggle {
        width: 100% !important;
    }
}

/* Extra small screens (iPhone SE, etc) */
@media (max-width: 375px) {
    .rpc-provider-card {
        padding: 16px !important;
        gap: 12px !important;
    }

    .rpc-rank {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .rpc-provider-logo {
        width: 40px !important;
        height: 40px !important;
    }

    .rpc-provider-name {
        font-size: 0.95rem !important;
    }

    .rpc-monthly-price {
        font-size: 1.35rem !important;
    }

    .rpc-summary-content {
        grid-template-columns: 1fr !important;
    }

    .rpc-summary-item .value {
        font-size: 1.3rem !important;
    }
}

/* ===========================================
   v4.5 - PROVIDERS PAGE MOBILE POLISH
   Header, Live Bar, Breadcrumb, Navigation
=========================================== */

@media (max-width: 768px) {
    /* Live bar - Stack vertically on mobile */
    .revma-providers-page .revma-live-bar {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 10px 16px !important;
        text-align: center !important;
    }

    .revma-providers-page .revma-live-indicator {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .revma-providers-page .revma-live-stat {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
    }

    /* Hide email text, show only icon on small screens */
    .revma-providers-page .revma-live-stat a {
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    /* Breadcrumb - Mobile styling - NEVER break words */
    .revma-providers-page .revma-breadcrumb {
        padding: 12px 16px !important;
        font-size: 0.8rem !important;
        overflow-x: auto !important;
    }

    .revma-providers-page .revma-breadcrumb ol {
        font-size: 0.8rem !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .revma-providers-page .revma-breadcrumb li:not(:last-child)::after {
        margin-left: 6px !important;
    }

    /* Providers Hero - Mobile polish */
    .revma-providers-page .revma-providers-hero {
        padding: 32px 16px 48px !important;
        min-height: auto !important;
    }

    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    .revma-providers-page .revma-providers-hero h1 br {
        display: none !important;
    }

    .revma-providers-page .revma-providers-hero .subtitle {
        font-size: 0.9rem !important;
        padding: 0 8px !important;
    }

    /* Badge in hero */
    .revma-providers-page .revma-badge-subtle {
        font-size: 0.72rem !important;
        padding: 8px 14px !important;
    }

    /* Filter bar - Vertical layout */
    .revma-providers-page .revma-providers-filter-bar {
        margin: 0 0 20px !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }
}

/* Smaller phones (480px) */
@media (max-width: 480px) {
    /* Live bar - even more compact */
    .revma-providers-page .revma-live-bar {
        padding: 8px 12px !important;
        gap: 4px !important;
    }

    .revma-providers-page .revma-live-indicator {
        font-size: 0.7rem !important;
    }

    .revma-providers-page .revma-live-stat {
        font-size: 0.68rem !important;
    }

    /* Hero title smaller */
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.4rem !important;
    }

    .revma-providers-page .revma-providers-hero .subtitle {
        font-size: 0.85rem !important;
    }
}

/* Very small phones (375px) */
@media (max-width: 375px) {
    /* Stack live bar elements */
    .revma-providers-page .revma-live-bar {
        padding: 8px 10px !important;
    }

    .revma-providers-page .revma-live-indicator,
    .revma-providers-page .revma-live-stat {
        font-size: 0.65rem !important;
    }

    /* Hide email icon text, show truncated version */
    .revma-providers-page .revma-live-stat a {
        max-width: 160px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Breadcrumb smaller */
    .revma-providers-page .revma-breadcrumb {
        padding: 10px 12px !important;
    }

    .revma-providers-page .revma-breadcrumb ol {
        font-size: 0.75rem !important;
    }

    /* Hero even smaller */
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.25rem !important;
    }

    .revma-providers-page .revma-providers-hero .subtitle {
        font-size: 0.8rem !important;
    }

    .revma-providers-page .revma-badge-subtle {
        font-size: 0.65rem !important;
        padding: 6px 10px !important;
    }
}

/* ===========================================
   v4.6 - PROVIDERS HERO TITLE TEXT WRAPPING
   Prevent ugly word breaks in hero titles
=========================================== */

/* Hero title - natural word wrapping */
.revma-providers-page .revma-providers-hero h1 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-wrap: balance !important;
    padding: 0 16px !important;
}

/* Highlight span styling */
.revma-providers-page .revma-providers-hero h1 .highlight {
    display: inline !important;
}

@media (max-width: 480px) {
    /* Mobile: Proper sizing and wrapping */
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        padding: 0 12px !important;
    }
}

@media (max-width: 375px) {
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 320px) {
    .revma-providers-page .revma-providers-hero h1 {
        font-size: 1.05rem !important;
    }
}

/* ===========================================
   v4.7 - MOBILE STICKY CTA BAR FIX
   Prevents text from breaking into multiple lines
=========================================== */
@media (max-width: 768px) {
    .revma-mobile-sticky-cta {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .revma-mobile-sticky-text {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .revma-mobile-sticky-cta .revma-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 375px) {
    .revma-mobile-sticky-text {
        font-size: 0.8rem !important;
    }

    .revma-mobile-sticky-cta .revma-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 320px) {
    .revma-mobile-sticky-text {
        font-size: 0.75rem !important;
    }

    .revma-mobile-sticky-cta .revma-btn {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }
}

/* ===========================================
   v4.8 - PROVIDER LANDING STEPS FIX
   Prevents text breaking mid-word on mobile
   Uses CSS Grid for icon + text layout
=========================================== */
@media (max-width: 480px) {
    /* Steps: 1 column layout for readability */
    .revma-provider-landing .revma-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .revma-provider-landing .revma-step {
        display: grid !important;
        grid-template-columns: 48px 1fr !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "icon title"
            "icon desc" !important;
        column-gap: 14px !important;
        row-gap: 4px !important;
        text-align: left !important;
        padding: 16px !important;
        position: relative !important;
    }

    .revma-provider-landing .revma-step-icon {
        grid-area: icon !important;
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        align-self: start !important;
    }

    .revma-provider-landing .revma-step-number {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
        z-index: 2 !important;
    }

    .revma-provider-landing .revma-step h3 {
        grid-area: title !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        align-self: end !important;
    }

    .revma-provider-landing .revma-step p {
        grid-area: desc !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: #64748b !important;
    }
}

@media (max-width: 375px) {
    .revma-provider-landing .revma-step {
        grid-template-columns: 44px 1fr !important;
        padding: 14px !important;
        column-gap: 12px !important;
    }

    .revma-provider-landing .revma-step-icon {
        width: 44px !important;
        height: 44px !important;
    }

    .revma-provider-landing .revma-step h3 {
        font-size: 0.88rem !important;
    }

    .revma-provider-landing .revma-step p {
        font-size: 0.75rem !important;
    }

    .revma-provider-landing .revma-step-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.6rem !important;
    }
}

@media (max-width: 320px) {
    .revma-provider-landing .revma-step {
        grid-template-columns: 40px 1fr !important;
        padding: 12px !important;
        column-gap: 10px !important;
    }

    .revma-provider-landing .revma-step-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .revma-provider-landing .revma-step h3 {
        font-size: 0.82rem !important;
    }

    .revma-provider-landing .revma-step p {
        font-size: 0.7rem !important;
    }
}

/* ===========================================
   v4.9 - PROVIDER LANDING FAQ FIX
   Prevents question text breaking on mobile
=========================================== */
@media (max-width: 480px) {
    .revma-provider-landing .revma-faq-section {
        padding: 40px 16px !important;
    }

    .revma-provider-landing .revma-faq-container {
        padding: 0 !important;
    }

    .revma-provider-landing details.revma-faq-item {
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }

    .revma-provider-landing summary.revma-faq-question {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 12px !important;
    }

    .revma-provider-landing .revma-faq-icon {
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
    }

    .revma-provider-landing .revma-faq-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .revma-provider-landing .revma-faq-text {
        flex: 1 !important;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    .revma-provider-landing .revma-faq-arrow {
        flex-shrink: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .revma-provider-landing .revma-faq-answer {
        padding: 0 12px 14px 46px !important;
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .revma-provider-landing .revma-faq-answer p {
        margin: 0 !important;
    }
}

@media (max-width: 375px) {
    .revma-provider-landing summary.revma-faq-question {
        padding: 12px 10px !important;
        gap: 8px !important;
    }

    .revma-provider-landing .revma-faq-text {
        font-size: 0.85rem !important;
    }

    .revma-provider-landing .revma-faq-answer {
        padding: 0 10px 12px 42px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 320px) {
    .revma-provider-landing .revma-faq-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .revma-provider-landing .revma-faq-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .revma-provider-landing .revma-faq-text {
        font-size: 0.8rem !important;
    }

    .revma-provider-landing .revma-faq-answer {
        padding-left: 38px !important;
        font-size: 0.75rem !important;
    }
}

/* ===========================================
   v4.10 - PROVIDER LANDING SECTION HEADERS
   Clean typography on mobile
=========================================== */
@media (max-width: 480px) {
    .revma-provider-landing .revma-section-header {
        padding: 0 8px !important;
        margin-bottom: 24px !important;
    }

    .revma-provider-landing .revma-section-header h2 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .revma-provider-landing .revma-section-header p {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
    }

    /* Hero content on provider landing */
    .revma-provider-landing .revma-hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    .revma-provider-landing .revma-hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 375px) {
    .revma-provider-landing .revma-section-header h2 {
        font-size: 1.2rem !important;
    }

    .revma-provider-landing .revma-section-header p {
        font-size: 0.85rem !important;
    }

    .revma-provider-landing .revma-hero-content h1 {
        font-size: 1.4rem !important;
    }

    .revma-provider-landing .revma-hero-subtitle {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 320px) {
    .revma-provider-landing .revma-section-header h2 {
        font-size: 1.1rem !important;
    }

    .revma-provider-landing .revma-section-header p {
        font-size: 0.8rem !important;
    }

    .revma-provider-landing .revma-hero-content h1 {
        font-size: 1.25rem !important;
    }
}

/* ===========================================
   v4.11 - PROVIDER LANDING BREADCRUMB & LIVE BAR
   Prevents text breaking mid-word
=========================================== */

/* Breadcrumb - Never break words */
.revma-provider-landing .revma-breadcrumb,
.revma-providers-page .revma-breadcrumb {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.revma-provider-landing .revma-breadcrumb ol,
.revma-providers-page .revma-breadcrumb ol {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.revma-provider-landing .revma-breadcrumb li,
.revma-providers-page .revma-breadcrumb li,
.revma-provider-landing .revma-breadcrumb a,
.revma-providers-page .revma-breadcrumb a {
    white-space: nowrap !important;
    word-break: normal !important;
}

/* Live bar - Compact but readable on mobile */
@media (max-width: 480px) {
    .revma-provider-landing .revma-live-bar {
        padding: 8px 12px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .revma-provider-landing .revma-live-indicator {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    .revma-provider-landing .revma-live-stat {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    /* Hide email on very small screens - show phone only */
    .revma-provider-landing .revma-live-stat:has(a[href^="mailto"]) {
        display: none !important;
    }

    /* Breadcrumb compact */
    .revma-provider-landing .revma-breadcrumb {
        padding: 10px 12px !important;
    }

    .revma-provider-landing .revma-breadcrumb ol {
        font-size: 0.75rem !important;
        gap: 4px !important;
    }

    .revma-provider-landing .revma-breadcrumb li:not(:last-child)::after {
        margin: 0 4px !important;
    }
}

@media (max-width: 375px) {
    .revma-provider-landing .revma-live-bar {
        padding: 6px 10px !important;
    }

    .revma-provider-landing .revma-live-indicator,
    .revma-provider-landing .revma-live-stat {
        font-size: 0.65rem !important;
    }

    .revma-provider-landing .revma-breadcrumb ol {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 320px) {
    /* On very small screens, hide provider name in breadcrumb, show just icon path */
    .revma-provider-landing .revma-live-bar {
        flex-direction: column !important;
        gap: 4px !important;
    }

    .revma-provider-landing .revma-live-stat {
        font-size: 0.6rem !important;
    }
}

/* ===========================================
   v4.12 - PROVIDER LANDING FAQ WORD BREAKING FIX
   Prevent ugly word hyphenation in FAQ questions
=========================================== */

/* FAQ section - Prevent word breaking in questions */
.revma-provider-landing .revma-faq-section .revma-faq-item,
.revma-provider-landing .revma-faq-list .revma-faq-item,
.revma-provider-landing [class*="faq"] button,
.revma-provider-landing [class*="faq"] .faq-question,
.revma-provider-landing .accordion-header,
.revma-provider-landing .accordion-button,
.revma-provider-landing details summary {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* FAQ question text - NEVER break words */
.revma-provider-landing .revma-faq-question,
.revma-provider-landing .revma-faq-text,
.revma-provider-landing [class*="faq"] h3,
.revma-provider-landing [class*="faq"] h4,
.revma-provider-landing [class*="faq"] .question-text,
.revma-provider-landing [class*="faq"] span,
.revma-provider-landing details summary span,
.revma-provider-landing summary.revma-faq-question span {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    white-space: normal !important;
}

/* Target FAQ text specifically - critical fix */
.revma-provider-landing .revma-faq-text,
.revma-providers-page .revma-faq-text {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
}

/* Also apply to providers page FAQ */
.revma-providers-page .revma-faq-section .revma-faq-item,
.revma-providers-page .revma-faq-list .revma-faq-item,
.revma-providers-page [class*="faq"] button,
.revma-providers-page [class*="faq"] .faq-question,
.revma-providers-page details summary {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

.revma-providers-page .revma-faq-question,
.revma-providers-page [class*="faq"] h3,
.revma-providers-page [class*="faq"] h4,
.revma-providers-page [class*="faq"] span,
.revma-providers-page details summary span {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    white-space: normal !important;
}

/* Global body/html - Disable auto-hyphenation */
.revma-provider-landing,
.revma-providers-page {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Mobile specific - Keep questions readable */
@media (max-width: 768px) {
    .revma-provider-landing [class*="faq"] button,
    .revma-provider-landing details summary,
    .revma-providers-page [class*="faq"] button,
    .revma-providers-page details summary {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 14px 40px 14px 16px !important;
        text-align: left !important;
    }

    .revma-provider-landing [class*="faq"] span,
    .revma-provider-landing details summary span,
    .revma-providers-page [class*="faq"] span,
    .revma-providers-page details summary span {
        word-break: normal !important;
        hyphens: none !important;
    }
}

@media (max-width: 480px) {
    .revma-provider-landing [class*="faq"] button,
    .revma-provider-landing details summary,
    .revma-providers-page [class*="faq"] button,
    .revma-providers-page details summary {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        padding: 12px 36px 12px 14px !important;
    }
}

@media (max-width: 375px) {
    .revma-provider-landing [class*="faq"] button,
    .revma-provider-landing details summary,
    .revma-providers-page [class*="faq"] button,
    .revma-providers-page details summary {
        font-size: 0.8rem !important;
        padding: 10px 32px 10px 12px !important;
    }
}

/* ===========================================
   MOBILE CALLBACK CTA - Before Calculator
=========================================== */
.revma-mobile-callback-cta {
    display: flex !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    background: linear-gradient(180deg, #0f1d30 0%, #1a2d47 100%) !important;
}

.revma-mobile-callback-cta button.revma-btn-callback,
.revma-mobile-callback-cta .revma-btn.revma-btn-callback,
.revma-mobile-callback-cta .revma-callback-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    background-color: #10b981 !important;
    color: white !important;
    border: none !important;
    border-color: transparent !important;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 320px !important;
}

.revma-mobile-callback-cta button.revma-btn-callback:hover,
.revma-mobile-callback-cta .revma-callback-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.revma-mobile-callback-cta button svg,
.revma-mobile-callback-cta .revma-callback-btn svg {
    flex-shrink: 0 !important;
    stroke: white !important;
}

/* ===========================================
   MOBILE TEXT ALIGNMENT - CENTERED & CLEAN
   All text centered on mobile for clean look
=========================================== */
@media (max-width: 768px) {
    /* Hero section - all centered */
    .revma-frontpage .revma-hero,
    .revma-frontpage .revma-hero-content,
    .revma-provider-landing .revma-hero,
    .revma-provider-landing .revma-hero-content,
    .revma-providers-page .revma-hero,
    .revma-providers-page .revma-hero-content,
    .revma-kostos-page .revma-hero,
    .revma-kostos-page .revma-hero-content {
        text-align: center !important;
    }

    /* Headings centered */
    .revma-frontpage h1,
    .revma-frontpage h2,
    .revma-frontpage h3,
    .revma-provider-landing h1,
    .revma-provider-landing h2,
    .revma-provider-landing h3,
    .revma-providers-page h1,
    .revma-providers-page h2,
    .revma-providers-page h3,
    .revma-kostos-page h1,
    .revma-kostos-page h2,
    .revma-kostos-page h3 {
        text-align: center !important;
    }

    /* Subtitle and paragraphs in hero - centered */
    .revma-hero .subtitle,
    .revma-hero-content .subtitle,
    .revma-hero p,
    .revma-hero-content p,
    .revma-providers-hero .subtitle,
    .revma-provider-hero .subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Savings pill - stacked vertically on mobile */
    .revma-savings-pill {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 16px 24px !important;
        gap: 8px !important;
    }

    .revma-savings-pill .revma-savings-icon {
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }

    .revma-savings-pill .revma-savings-content {
        text-align: center !important;
        align-items: center !important;
    }

    .revma-savings-pill .revma-savings-label,
    .revma-savings-pill .revma-savings-value {
        text-align: center !important;
        display: block !important;
    }

    /* Hero CTAs centered */
    .revma-hero-cta {
        justify-content: center !important;
        align-items: center !important;
    }

    /* Hero stats centered */
    .revma-hero-stats {
        justify-content: center !important;
    }

    /* Section content centered */
    .revma-section-header,
    .revma-section-intro {
        text-align: center !important;
    }

    /* Feature cards text centered */
    .revma-feature-card,
    .revma-step-card,
    .revma-benefit-card {
        text-align: center !important;
    }

    /* Trust badges centered */
    .revma-trust-badges,
    .revma-badges-row {
        justify-content: center !important;
    }

    /* Provider logos grid centered */
    .revma-providers-logos {
        justify-content: center !important;
    }

    /* CTA sections centered */
    .revma-cta-section,
    .revma-mid-cta {
        text-align: center !important;
    }

    /* Footer text centered on mobile */
    .revma-footer {
        text-align: center !important;
    }

    .revma-footer-brand,
    .revma-footer-links,
    .revma-footer-bottom {
        text-align: center !important;
        align-items: center !important;
    }

    .revma-footer-links ul {
        text-align: center !important;
    }
}

/* ===========================================
   MOBILE CALCULATOR FIXES
   Clean layout, no overflow, proper spacing
=========================================== */
@media (max-width: 768px) {
    /* Calculator section container */
    .revma-calculator-section {
        padding: 20px 12px !important;
        overflow-x: hidden !important;
    }

    /* Progress steps - horizontal scroll prevention */
    .revma-progress-steps {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 8px !important;
        overflow: hidden !important;
    }

    .revma-progress-step {
        flex: 0 0 auto !important;
        min-width: 70px !important;
        max-width: 80px !important;
        text-align: center !important;
    }

    .revma-progress-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.875rem !important;
    }

    .revma-progress-step span {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    .revma-progress-line {
        display: none !important;
    }

    /* Calculator form container */
    .revma-calculator-wrapper,
    .revma-calculator-form,
    .revma-calc-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    /* Form inputs */
    .revma-calculator-section input,
    .revma-calculator-section select,
    .revma-calculator-section .form-control {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px 16px !important;
        box-sizing: border-box !important;
    }

    /* Quiz options - single column on mobile */
    .revma-quiz-options {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .revma-quiz-option {
        padding: 16px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .revma-quiz-emoji {
        font-size: 1.8rem !important;
        margin-right: 12px !important;
    }

    /* Consumption chips */
    .revma-consumption-chips,
    .revma-filter-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .revma-consumption-chip,
    .revma-filter-chip {
        padding: 10px 16px !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
    }

    /* Buttons full width */
    .revma-calculator-section .revma-btn,
    .revma-calculator-section button[type="submit"] {
        width: 100% !important;
        padding: 16px !important;
        font-size: 1rem !important;
    }

    /* Results cards - full mobile fix */
    .revma-results-grid,
    .rpc-results-grid,
    .rpc-results-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .revma-result-card,
    .rpc-result-card,
    .rpc-provider-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Best choice summary card */
    .rpc-best-choice-summary,
    .rpc-summary-card,
    [class*="best-choice"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        overflow: hidden !important;
    }

    /* Result card content */
    .rpc-result-card .rpc-result-header,
    .rpc-result-card .rpc-result-body,
    .rpc-result-card .rpc-result-footer,
    .rpc-provider-card .rpc-card-header,
    .rpc-provider-card .rpc-card-body {
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Prices - ensure they fit */
    .rpc-monthly-price,
    .rpc-yearly-price,
    .rpc-savings-amount {
        font-size: 1.25rem !important;
        word-break: break-word !important;
    }

    /* Quote button in results */
    .rpc-request-quote-btn,
    .rpc-result-card .revma-btn,
    .rpc-provider-card .revma-btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.875rem !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* Provider logo in results */
    .rpc-provider-logo,
    .rpc-result-card img {
        max-width: 80px !important;
        height: auto !important;
    }

    /* Best choice badge */
    .rpc-best-choice-badge {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }

    /* Cost breakdown */
    .rpc-cost-breakdown,
    .rpc-price-details {
        font-size: 0.8rem !important;
    }

    .rpc-cost-breakdown dt,
    .rpc-cost-breakdown dd {
        display: block !important;
        width: 100% !important;
    }

    /* ============================================
       CALCULATOR RESULTS - MOBILE FIX v2.0
       Fix for cut-off cards and overflow issues
    ============================================ */

    /* Main results container */
    .rpc-results {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Summary card (Καλύτερη Επιλογή) */
    .rpc-summary {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 12px !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 16px !important;
    }

    .rpc-summary-header {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .rpc-summary-header h3 {
        font-size: 1.1rem !important;
    }

    .rpc-summary-badge {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    .rpc-summary-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .rpc-summary-item {
        text-align: center !important;
    }

    .rpc-summary-item .label {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }

    .rpc-summary-item .value {
        font-size: 1.25rem !important;
        word-break: break-word !important;
    }

    .rpc-summary-item .value small {
        font-size: 0.7rem !important;
        display: block !important;
    }

    /* Providers grid */
    .rpc-providers-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        margin: 0 12px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* ============================================
       PROVIDER CARDS - FORCE SINGLE COLUMN MOBILE
       Override 3-column grid with flex column
    ============================================ */

    /* Force single column layout */
    .rpc-provider-card,
    .rpc-providers-grid .rpc-provider-card,
    div.rpc-provider-card {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Rank badge - absolute positioned */
    .rpc-provider-card .rpc-rank,
    .rpc-provider-card > .rpc-rank {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        z-index: 5 !important;
    }

    /* Provider info - full width block */
    .rpc-provider-card .rpc-provider-info,
    .rpc-provider-card > .rpc-provider-info {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding-top: 10px !important;
    }

    /* Provider header - stack vertically */
    .rpc-provider-card .rpc-provider-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .rpc-provider-card .rpc-provider-logo {
        max-width: 120px !important;
        max-height: 45px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .rpc-provider-card .rpc-provider-name {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .rpc-provider-card .rpc-plan-name {
        font-size: 0.85rem !important;
        word-break: break-word !important;
        text-align: center !important;
        color: #64748b !important;
    }

    /* Provider details - centered wrap */
    .rpc-provider-card .rpc-provider-details {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }

    .rpc-provider-card .rpc-detail-item {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
        background: rgba(0,0,0,0.04) !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .rpc-provider-card .rpc-detail-item svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Cost breakdown */
    .rpc-provider-card .rpc-cost-breakdown {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 12px !important;
        font-size: 0.75rem !important;
        padding: 10px !important;
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin: 12px 0 !important;
    }

    .rpc-provider-card .rpc-cost-breakdown span {
        white-space: nowrap !important;
    }

    /* PRICING SECTION - Full width, centered */
    .rpc-provider-card .rpc-provider-pricing,
    .rpc-provider-card > .rpc-provider-pricing {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 16px 0 0 0 !important;
        border-top: 1px solid rgba(0,0,0,0.08) !important;
        margin-top: 12px !important;
    }

    /* Monthly price - big and prominent */
    .rpc-provider-card .rpc-monthly-price {
        font-size: 1.75rem !important;
        font-weight: 800 !important;
        color: #1e293b !important;
        margin-bottom: 4px !important;
    }

    .rpc-provider-card .rpc-monthly-price small {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        color: #64748b !important;
    }

    /* Yearly price */
    .rpc-provider-card .rpc-yearly-price {
        font-size: 0.9rem !important;
        color: #64748b !important;
        margin-bottom: 10px !important;
    }

    /* Savings badge */
    .rpc-provider-card .rpc-savings {
        display: inline-block !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        padding: 8px 16px !important;
        background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
        color: #166534 !important;
        border-radius: 20px !important;
        margin: 10px auto !important;
    }

    /* CTA Button - FULL WIDTH */
    .rpc-provider-card .rpc-cta-btn,
    .rpc-provider-card .rpc-request-quote-btn,
    .rpc-provider-card button.rpc-cta-btn,
    .rpc-provider-card button.rpc-request-quote-btn {
        display: block !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        border-radius: 12px !important;
        margin-top: 12px !important;
        box-sizing: border-box !important;
    }

    /* Best choice card badge */
    .rpc-provider-card.cheapest::before {
        font-size: 0.7rem !important;
        padding: 6px 14px !important;
        top: -12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        white-space: nowrap !important;
    }

    /* Tariff type badge */
    .rpc-tariff-badge,
    .rpc-type-badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }

    /* Actions bar */
    .rpc-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
        padding: 16px 12px !important;
    }

    .rpc-actions button {
        flex: 1 1 45% !important;
        min-width: 120px !important;
        font-size: 0.8rem !important;
        padding: 10px !important;
    }

    /* Chat CTA */
    .rpc-chat-cta {
        margin: 12px !important;
        padding: 16px !important;
    }

    .rpc-send-to-chat-btn {
        font-size: 0.85rem !important;
        padding: 12px 16px !important;
    }
}
