/**
 * Revma Price Calculator - Frontend Styles
 * Extends ui-system.css - uses shared design tokens
 * Version: 1.3.0
 */

/* ============================================
   HIGH-SPECIFICITY OVERRIDES
   These rules use .rpc-ui wrapper for maximum specificity
   to override any theme/plugin styles
============================================ */
.rpc-ui.rpc-calculator .rpc-type-btn {
    height: 52px !important;
    border-radius: var(--revma-radius-input, 14px) !important;
    border: 1px solid var(--revma-border, #e2e8f0) !important;
    background: var(--revma-bg-white, #ffffff) !important;
    color: var(--revma-text-medium, #475569) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    outline: none !important;
    box-shadow: none !important;
}

.rpc-ui.rpc-calculator .rpc-type-btn:hover {
    border-color: var(--revma-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: var(--revma-primary, #2563eb) !important;
}

.rpc-ui.rpc-calculator .rpc-type-btn.active {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    color: #ffffff !important;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)) !important;
}

.rpc-ui.rpc-calculator .rpc-type-btn:focus,
.rpc-ui.rpc-calculator .rpc-type-btn:focus-visible {
    outline: none !important;
    border-color: var(--revma-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.rpc-ui.rpc-calculator .rpc-preset-btn {
    height: 38px !important;
    border-radius: var(--revma-radius-full, 999px) !important;
    border: 1px solid var(--revma-border, #e2e8f0) !important;
    background: var(--revma-bg-white, #ffffff) !important;
    color: var(--revma-text-medium, #475569) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0 16px !important;
    outline: none !important;
    box-shadow: none !important;
}

.rpc-ui.rpc-calculator .rpc-preset-btn:hover {
    border-color: var(--revma-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: var(--revma-primary, #2563eb) !important;
}

.rpc-ui.rpc-calculator .rpc-preset-btn.active {
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.rpc-ui.rpc-calculator .rpc-preset-btn:focus,
.rpc-ui.rpc-calculator .rpc-preset-btn:focus-visible {
    outline: none !important;
    border-color: var(--revma-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.rpc-ui.rpc-calculator .rpc-calculate-btn {
    width: 100% !important;
    height: 56px !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--revma-radius-input, 14px) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)) !important;
    outline: none !important;
}

.rpc-ui.rpc-calculator .rpc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--revma-shadow-cta-glow-hover, 0 12px 32px rgba(37, 99, 235, 0.45)) !important;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
}

.rpc-ui.rpc-calculator .rpc-calculate-btn:focus,
.rpc-ui.rpc-calculator .rpc-calculate-btn:focus-visible {
    outline: none !important;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)), 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.rpc-ui.rpc-calculator .rpc-calculate-btn:disabled {
    background: var(--revma-text-light, #64748b) !important;
    box-shadow: none !important;
}

/* ============================================
   CALCULATOR CONTAINER
============================================ */
.rpc-calculator {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: var(--revma-max-width, 1200px);
    margin: 0 auto;
    padding: 20px;
}

.rpc-calculator * {
    box-sizing: border-box;
}

/* ============================================
   HEADER
============================================ */
.rpc-header {
    text-align: center;
    margin-bottom: 40px;
}

.rpc-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--revma-text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.rpc-header p {
    font-size: 1.1rem;
    color: var(--revma-text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FORM SECTION - Premium Card Style
============================================ */
.rpc-form-section {
    background: var(--revma-bg-white);
    border: 1px solid var(--revma-border);
    border-radius: var(--revma-radius-card, 22px);
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--revma-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.06));
    transition: box-shadow var(--revma-transition, 0.3s ease);
}

.rpc-form-section:hover {
    box-shadow: var(--revma-shadow-card-hover, 0 16px 40px rgba(15, 23, 42, 0.1));
}

.rpc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ============================================
   FORM GROUPS - Labels & Inputs
============================================ */
.rpc-form-group {
    display: flex;
    flex-direction: column;
}

.rpc-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--revma-text-medium);
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rpc-form-group input,
.rpc-form-group select {
    height: 52px;
    padding: 0 16px;
    font-size: 1rem;
    border: 1px solid var(--revma-border);
    border-radius: var(--revma-radius-input, 14px);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--revma-bg-white);
    color: var(--revma-text-dark);
    outline: none;
}

.rpc-form-group input:focus,
.rpc-form-group select:focus {
    border-color: var(--revma-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rpc-form-group input::placeholder {
    color: var(--revma-text-light);
}

.rpc-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

/* ============================================
   INPUT WITH UNIT (kWh)
============================================ */
.rpc-input-wrapper {
    position: relative;
}

.rpc-input-wrapper input {
    width: 100%;
    padding-right: 60px;
}

.rpc-input-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--revma-text-light);
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
}

/* ============================================
   TYPE TOGGLE - Segmented Control Pills
============================================ */
.rpc-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.rpc-type-btn {
    height: 52px;
    border-radius: var(--revma-radius-input, 14px);
    border: 1px solid var(--revma-border, #e2e8f0) !important;
    background: var(--revma-bg-white, #ffffff) !important;
    color: var(--revma-text-medium, #475569) !important;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none !important;
}

.rpc-type-btn:hover {
    border-color: var(--revma-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: var(--revma-primary, #2563eb) !important;
}

.rpc-type-btn.active {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    color: white !important;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)) !important;
}

.rpc-type-btn:focus,
.rpc-type-btn:focus-visible {
    outline: none !important;
    border-color: var(--revma-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.rpc-type-btn.active:focus,
.rpc-type-btn.active:focus-visible {
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)), 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.rpc-type-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CONSUMPTION PRESETS - Mini Pills
============================================ */
.rpc-consumption-presets {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rpc-consumption-presets > span {
    font-size: 0.85rem;
    color: var(--revma-text-light);
    font-weight: 500;
}

.rpc-preset-btn {
    height: 38px;
    border-radius: var(--revma-radius-full, 999px);
    border: 1px solid var(--revma-border, #e2e8f0) !important;
    background: var(--revma-bg-white, #ffffff) !important;
    color: var(--revma-text-medium, #475569) !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none !important;
}

.rpc-preset-btn:hover {
    border-color: var(--revma-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06) !important;
    color: var(--revma-primary, #2563eb) !important;
}

.rpc-preset-btn.active {
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    border-color: transparent !important;
    color: white !important;
}

.rpc-preset-btn:focus,
.rpc-preset-btn:focus-visible {
    outline: none !important;
    border-color: var(--revma-primary, #2563eb) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.rpc-preset-btn.active:focus,
.rpc-preset-btn.active:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* ============================================
   CALCULATE BUTTON - Primary CTA
============================================ */
.rpc-calculate-btn {
    width: 100%;
    height: 56px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--revma-radius-input, 14px);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 24px;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    outline: none !important;
}

.rpc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--revma-shadow-cta-glow-hover, 0 12px 32px rgba(37, 99, 235, 0.45)) !important;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8)) !important;
}

.rpc-calculate-btn:active {
    transform: translateY(0);
}

.rpc-calculate-btn:disabled {
    background: var(--revma-text-light, #64748b) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.rpc-calculate-btn:focus,
.rpc-calculate-btn:focus-visible {
    outline: none !important;
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35)), 0 0 0 3px rgba(37, 99, 235, 0.3) !important;
}

.rpc-calculate-btn .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rpc-spin 0.8s linear infinite;
    margin-right: 10px;
}

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

/* ============================================
   VALIDATION ERRORS
============================================ */
.rpc-validation-errors {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: rpc-fadeIn 0.3s ease;
}

.rpc-validation-errors strong {
    color: #991b1b;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.rpc-validation-errors ul {
    margin: 0;
    padding-left: 20px;
}

.rpc-validation-errors li {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.rpc-validation-errors li:last-child {
    margin-bottom: 0;
}

/* Field error highlight */
.rpc-field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* ============================================
   RESULTS SECTION
============================================ */
.rpc-results {
    display: none;
}

.rpc-results.active,
.rpc-results.rpc-print-visible {
    display: block;
    animation: rpc-fadeIn 0.3s ease;
}

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

/* ============================================
   SUMMARY CARD
============================================ */
.rpc-summary {
    background: linear-gradient(135deg, var(--revma-primary) 0%, #7c3aed 100%);
    border-radius: var(--revma-radius-card, 22px);
    padding: 32px;
    color: white;
    margin-bottom: 30px;
    box-shadow: var(--revma-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.06));
}

.rpc-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.rpc-summary-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.rpc-summary-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.rpc-summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

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

.rpc-summary-item .label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.rpc-summary-item .value {
    font-size: 2rem;
    font-weight: 700;
}

.rpc-summary-item .value small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.rpc-summary-item.savings .value {
    color: #86efac;
}

/* ============================================
   PROVIDER CARDS
============================================ */
.rpc-providers-grid {
    display: grid;
    gap: 16px;
}

.rpc-provider-card {
    background: var(--revma-bg-white);
    border-radius: var(--revma-radius-card, 22px);
    border: 1px solid var(--revma-border-light);
    box-shadow: var(--revma-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.06));
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.rpc-provider-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--revma-shadow-card-hover, 0 16px 40px rgba(15, 23, 42, 0.1));
    border-color: var(--revma-primary-light);
}

.rpc-provider-card.cheapest {
    border: 2px solid var(--revma-secondary);
    box-shadow: var(--revma-shadow-cta-glow-green, 0 8px 24px rgba(16, 185, 129, 0.35));
    overflow: visible;
}

.rpc-provider-card.cheapest::before {
    content: '🏆 ΚΑΛΥΤΕΡΗ ΤΙΜΗ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

/* Rank Badge */
.rpc-rank {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rpc-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.rpc-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.rpc-rank.rank-3 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.rpc-rank.rank-other {
    background: var(--revma-bg-light);
    color: var(--revma-text-medium);
}

/* Provider Info */
.rpc-provider-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpc-provider-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpc-provider-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--revma-bg-light);
    padding: 4px;
}

.rpc-provider-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--revma-text-dark);
}

.rpc-plan-name {
    font-size: 0.875rem;
    color: var(--revma-text-light);
}

.rpc-provider-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--revma-text-medium);
}

.rpc-detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rpc-detail-item svg {
    width: 14px;
    height: 14px;
    color: var(--revma-text-light);
}

.rpc-discount-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.rpc-green-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pricing */
.rpc-provider-pricing {
    text-align: right;
    min-width: 150px;
}

.rpc-monthly-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--revma-text-dark);
}

.rpc-monthly-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--revma-text-light);
}

.rpc-yearly-price {
    font-size: 0.875rem;
    color: var(--revma-text-light);
    margin-top: 4px;
}

.rpc-savings {
    font-size: 0.875rem;
    color: var(--revma-secondary);
    font-weight: 700;
    margin-top: 8px;
}

.rpc-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--revma-primary), var(--revma-primary-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--revma-radius-input, 14px);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rpc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35));
    color: white;
}

/* ============================================
   QUICK CALCULATOR
============================================ */
.rpc-quick-calculator {
    background: var(--revma-bg-white);
    border-radius: var(--revma-radius-card, 22px);
    border: 1px solid var(--revma-border);
    box-shadow: var(--revma-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.06));
    padding: 24px;
    max-width: 400px;
}

.rpc-quick-calculator h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--revma-text-dark);
    margin-bottom: 16px;
}

.rpc-quick-form {
    display: flex;
    gap: 12px;
}

.rpc-quick-form input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--revma-border);
    border-radius: var(--revma-radius-input, 14px);
    font-size: 1rem;
}

.rpc-quick-form button {
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--revma-primary), var(--revma-primary-dark));
    color: white;
    border: none;
    border-radius: var(--revma-radius-input, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rpc-quick-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--revma-shadow-cta-glow, 0 8px 24px rgba(37, 99, 235, 0.35));
}

.rpc-quick-result {
    margin-top: 16px;
    padding: 16px;
    background: var(--revma-bg-light);
    border-radius: 12px;
    display: none;
}

.rpc-quick-result.active {
    display: block;
}

/* ============================================
   CHARTS SECTION
============================================ */
.rpc-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.rpc-chart-card {
    background: var(--revma-bg-white);
    border-radius: var(--revma-radius-card, 22px);
    border: 1px solid var(--revma-border);
    box-shadow: var(--revma-shadow-card, 0 8px 24px rgba(15, 23, 42, 0.06));
    padding: 24px;
}

.rpc-chart-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--revma-text-dark);
    margin-bottom: 20px;
}

/* ============================================
   ACTIONS (Print/Share)
============================================ */
.rpc-actions {
    text-align: center;
    margin-top: 30px;
}

.rpc-print-btn,
.rpc-share-btn {
    height: 52px;
    padding: 0 24px;
    border-radius: var(--revma-radius-input, 14px);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rpc-print-btn {
    border: 2px solid #2563eb;
    background: #ffffff;
    color: #2563eb;
    margin-right: 12px;
}

.rpc-print-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

.rpc-share-btn {
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.rpc-share-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

/* ============================================
   TOOLTIP
============================================ */
.rpc-tooltip {
    position: relative;
    cursor: help;
    color: var(--revma-text-light);
}

.rpc-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--revma-bg-dark);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.rpc-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   QUOTE MODAL
============================================ */
.rpc-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rpc-quote-modal.active {
    display: flex;
}

.rpc-quote-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.rpc-quote-modal-content {
    position: relative;
    background: var(--revma-bg-white);
    border-radius: var(--revma-radius-card, 22px);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: rpcModalSlideIn 0.3s ease;
}

@keyframes rpcModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rpc-quote-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--revma-bg-light);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--revma-text-light);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.rpc-quote-modal-close:hover {
    background: var(--revma-border);
    color: var(--revma-text-dark);
}

.rpc-quote-modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.rpc-quote-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--revma-text-dark);
    margin: 0 0 8px;
}

.rpc-quote-modal-header p {
    font-size: 0.95rem;
    color: var(--revma-text-light);
    margin: 0;
}

#rpc-quote-plan-info {
    padding: 16px 32px;
}

.rpc-quote-plan-summary {
    background: linear-gradient(135deg, var(--revma-primary-bg), #e0f2fe);
    padding: 18px 22px;
    border-radius: 14px;
    border-left: 4px solid var(--revma-primary);
}

.rpc-quote-plan-summary strong {
    color: var(--revma-text-dark);
}

.rpc-quote-price {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--revma-primary);
}

#rpc-quote-form {
    padding: 0 32px 32px;
}

.rpc-quote-field {
    margin-bottom: 20px;
}

.rpc-quote-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--revma-text-medium);
    margin-bottom: 8px;
}

.rpc-quote-field input[type="text"],
.rpc-quote-field input[type="tel"],
.rpc-quote-field input[type="email"],
.rpc-quote-field textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--revma-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--revma-bg-white);
}

.rpc-quote-field textarea {
    height: auto;
    padding: 14px 16px;
    min-height: 100px;
    resize: vertical;
}

.rpc-quote-field input:focus,
.rpc-quote-field textarea:focus {
    outline: none;
    border-color: var(--revma-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rpc-quote-field input::placeholder,
.rpc-quote-field textarea::placeholder {
    color: var(--revma-text-light);
}

.rpc-quote-consent {
    margin-bottom: 24px;
}

.rpc-quote-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--revma-text-medium);
    cursor: pointer;
}

.rpc-quote-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--revma-primary);
}

.rpc-quote-actions {
    text-align: center;
}

.rpc-quote-submit-btn {
    width: 100%;
    height: 52px;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--revma-secondary), #059669);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.rpc-quote-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.rpc-quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
#rpc-quote-success {
    padding: 48px 32px;
    text-align: center;
}

.rpc-quote-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--revma-secondary), #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    animation: rpcSuccessPop 0.5s ease;
}

@keyframes rpcSuccessPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#rpc-quote-success h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--revma-text-dark);
    margin: 0 0 12px;
}

#rpc-quote-success p {
    color: var(--revma-text-medium);
    margin: 0 0 24px;
}

.rpc-quote-close-btn {
    height: 48px;
    padding: 0 32px;
    background: var(--revma-bg-light);
    color: var(--revma-text-medium);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.rpc-quote-close-btn:hover {
    background: var(--revma-border);
}

/* Home/Business Toggle */
.rpc-quote-field--toggle {
    margin-bottom: 16px;
}

.rpc-quote-toggle {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.rpc-quote-toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rpc-quote-toggle-option input {
    display: none;
}

.rpc-quote-toggle-option span {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background: var(--revma-bg-light);
    border: 2px solid var(--revma-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--revma-text-medium);
    transition: all 0.2s;
}

.rpc-quote-toggle-option input:checked + span {
    background: linear-gradient(135deg, var(--revma-primary-bg), #e0f2fe);
    border-color: var(--revma-primary);
    color: var(--revma-primary);
}

.rpc-quote-toggle-option:hover span {
    border-color: var(--revma-primary);
}

/* Honeypot field (anti-spam) - completely hidden */
.rpc-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Field Error States */
.rpc-quote-field-error {
    display: none;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 6px;
}

.rpc-quote-field--error input,
.rpc-quote-field--error textarea {
    border-color: #dc2626 !important;
}

.rpc-quote-field--error .rpc-quote-field-error {
    display: block;
}

.rpc-quote-consent .rpc-quote-field-error {
    margin-top: 8px;
}

.rpc-quote-consent.rpc-quote-field--error {
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 12px;
}

.rpc-quote-consent.rpc-quote-field--error .rpc-quote-field-error {
    display: block;
    color: #dc2626;
    font-weight: 500;
}

/* Response Time */
.rpc-quote-response-time {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--revma-success, #22c55e);
    font-weight: 500;
}

/* Trust Text */
.rpc-quote-trust {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--revma-text-light);
    line-height: 1.4;
}

/* Spinner */
.rpc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rpcSpin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Privacy Link */
.rpc-quote-consent a {
    color: var(--revma-primary);
    text-decoration: underline;
}

.rpc-quote-consent a:hover {
    text-decoration: none;
}

/* Body scroll lock */
body.rpc-modal-open {
    overflow: hidden;
}

/* CTA Button as green */
.rpc-request-quote-btn {
    background: linear-gradient(135deg, var(--revma-secondary), #059669) !important;
    border: none !important;
}

.rpc-request-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* ============================================
   ANIMATIONS
============================================ */
.rpc-provider-card {
    animation: rpc-slideIn 0.3s ease forwards;
    opacity: 0;
}

.rpc-provider-card:nth-child(1) { animation-delay: 0.05s; }
.rpc-provider-card:nth-child(2) { animation-delay: 0.1s; }
.rpc-provider-card:nth-child(3) { animation-delay: 0.15s; }
.rpc-provider-card:nth-child(4) { animation-delay: 0.2s; }
.rpc-provider-card:nth-child(5) { animation-delay: 0.25s; }
.rpc-provider-card:nth-child(6) { animation-delay: 0.3s; }
.rpc-provider-card:nth-child(7) { animation-delay: 0.35s; }
.rpc-provider-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes rpc-slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading skeleton */
.rpc-skeleton {
    background: linear-gradient(90deg, var(--revma-bg-light) 25%, var(--revma-border) 50%, var(--revma-bg-light) 75%);
    background-size: 200% 100%;
    animation: rpc-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes rpc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 768px) {
    .rpc-calculator {
        padding: 16px;
    }

    .rpc-header h2 {
        font-size: 1.5rem;
    }

    .rpc-form-section {
        padding: 20px;
        border-radius: 14px;
    }

    .rpc-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rpc-type-toggle {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rpc-consumption-presets {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rpc-consumption-presets > span {
        width: 100%;
    }

    .rpc-preset-btn {
        flex: 1;
    }

    /* PROVIDER CARD - FORCE SINGLE COLUMN MOBILE */
    .rpc-provider-card {
        display: block !important;
        grid-template-columns: unset !important;
        text-align: center;
        padding: 20px 16px !important;
        position: relative;
    }

    .rpc-rank {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        margin: 0 !important;
    }

    .rpc-provider-info {
        display: block !important;
        width: 100% !important;
        text-align: center;
        padding-top: 8px;
    }

    .rpc-provider-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

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

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

    .rpc-plan-name {
        font-size: 0.85rem !important;
        color: #64748b;
    }

    .rpc-provider-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 12px 0;
    }

    .rpc-detail-item {
        font-size: 0.8rem !important;
    }

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

    /* PRICING - Full width centered */
    .rpc-provider-pricing {
        display: block !important;
        width: 100% !important;
        text-align: center;
        border-top: 1px solid #e2e8f0;
        padding-top: 16px !important;
        margin-top: 12px;
    }

    .rpc-monthly-price {
        font-size: 1.75rem !important;
        font-weight: 800 !important;
        display: block !important;
        margin-bottom: 4px;
    }

    .rpc-monthly-price small {
        font-size: 0.9rem !important;
        font-weight: 500;
    }

    .rpc-yearly-price {
        font-size: 0.9rem !important;
        color: #64748b;
        display: block !important;
        margin-bottom: 10px;
    }

    .rpc-savings {
        display: inline-block !important;
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
        color: #166534 !important;
        border-radius: 20px !important;
        margin: 10px 0 !important;
    }

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

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

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

    .rpc-print-btn,
    .rpc-share-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
============================================ */
@media (max-width: 480px) {
    .rpc-quote-modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }

    .rpc-quote-modal-header,
    #rpc-quote-plan-info,
    #rpc-quote-form {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================
   PRINT STYLES - Professional Print Template
============================================ */
@media print {
    /* Enable color printing */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        background: white !important;
        font-size: 11pt !important;
        color: #1e293b !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* FORCE SHOW key elements - high specificity */
    body .revma-frontpage,
    body .revma-calculator-section,
    body .revma-calculator-wrapper,
    body .rpc-ui.rpc-calculator,
    body .rpc-calculator,
    body .rpc-results,
    body .rpc-results.active,
    body .rpc-results.rpc-print-visible,
    body .rpc-summary,
    body .rpc-providers-grid,
    body .rpc-provider-card,
    body.rpc-printing .rpc-results,
    body.rpc-printing .rpc-summary,
    body.rpc-printing .rpc-providers-grid,
    body.rpc-printing .rpc-provider-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Hide UI elements */
    .revma-site-header,
    .revma-hero-section,
    .revma-tariff-legend,
    .revma-mobile-callback-cta,
    .revma-progress-steps,
    .revma-section-header,
    .revma-calc-help,
    .revma-expert-section,
    .revma-providers-preview,
    .revma-trust-section,
    .revma-faq-section,
    .revma-cta-section,
    .revma-footer,
    .revma-sticky-cta,
    #revma-scroll-top,
    .revma-ai-toggle,
    .revma-ai-widget,
    .rlg-popup-overlay,
    .rlg-social-proof,
    .rpc-form-section,
    .rpc-actions,
    .rpc-chat-cta,
    .rpc-recommendations-block,
    .rpc-charts,
    .rpc-cta-btn,
    .rpc-request-quote-btn,
    .rpc-provider-badges,
    .rpc-cost-breakdown {
        display: none !important;
    }

    /* Calculator styling */
    .rpc-calculator {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: white !important;
        border: none !important;
    }

    /* Print header */
    .rpc-results::before {
        content: "⚡ REVMASTOKOSTOS.GR - Σύγκριση Τιμολογίων Ρεύματος";
        display: block !important;
        font-size: 16pt;
        font-weight: 700;
        color: #2563eb;
        text-align: center;
        padding: 10px 0 15px 0;
        margin-bottom: 20px;
        border-bottom: 3px solid #f59e0b;
    }

    /* Summary card - Professional look */
    .rpc-summary {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        color: white !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        page-break-inside: avoid;
    }

    .rpc-summary-header h3 {
        font-size: 14pt !important;
        margin-bottom: 15px !important;
    }

    .rpc-summary-content {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px !important;
    }

    .rpc-summary-item .label {
        font-size: 9pt !important;
    }

    .rpc-summary-item .value {
        font-size: 14pt !important;
        font-weight: 700 !important;
    }

    /* Provider cards - Clean print layout */
    .rpc-providers-grid {
        display: block !important;
    }

    .rpc-provider-card {
        display: grid !important;
        grid-template-columns: 40px 1fr 180px !important;
        gap: 15px !important;
        align-items: center !important;
        padding: 15px !important;
        margin-bottom: 12px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        background: white !important;
    }

    .rpc-provider-card.cheapest {
        border: 2px solid #10b981 !important;
        background: #f0fdf4 !important;
    }

    .rpc-provider-card.cheapest::before {
        content: "✓ ΚΑΛΥΤΕΡΗ ΤΙΜΗ";
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: #10b981;
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 8pt;
        font-weight: 700;
    }

    .rpc-rank {
        width: 32px !important;
        height: 32px !important;
        font-size: 12pt !important;
        background: #f1f5f9 !important;
        color: #1e293b !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .rpc-provider-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .rpc-provider-header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .rpc-provider-logo {
        max-width: 80px !important;
        max-height: 30px !important;
    }

    .rpc-provider-name {
        font-size: 11pt !important;
        font-weight: 700 !important;
    }

    .rpc-plan-name {
        font-size: 9pt !important;
        color: #64748b !important;
    }

    .rpc-provider-details {
        display: flex !important;
        gap: 10px !important;
        font-size: 8pt !important;
        color: #64748b !important;
    }

    .rpc-detail-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .rpc-detail-item svg {
        width: 12px !important;
        height: 12px !important;
    }

    .rpc-cost-breakdown {
        display: none !important;
    }

    .rpc-provider-pricing {
        text-align: right !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .rpc-monthly-price {
        font-size: 14pt !important;
        font-weight: 800 !important;
        color: #1e293b !important;
    }

    .rpc-monthly-price small {
        font-size: 9pt !important;
        font-weight: 500 !important;
    }

    .rpc-yearly-price {
        font-size: 9pt !important;
        color: #64748b !important;
    }

    .rpc-savings {
        font-size: 9pt !important;
        color: #10b981 !important;
        font-weight: 600 !important;
    }

    /* Footer info */
    .rpc-results {
        position: relative;
    }

    /* Page footer */
    @page {
        margin: 1.5cm;
        size: A4;
    }
}

/* ============================================
   RECOMMENDATIONS BLOCK - "Η Πρότασή μας"
   Smart revenue optimization section
   @since 1.6.4
============================================ */
.rpc-recommendations-block {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--revma-radius-card, 22px);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

.rpc-rec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rpc-rec-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
}

.rpc-rec-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.rpc-rec-tooltip {
    cursor: help;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rpc-rec-tooltip:hover {
    opacity: 1;
}

/* Cards container */
.rpc-rec-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Single card variant (when cheapest is high-commission) */
.rpc-rec--single .rpc-rec-cards {
    max-width: 400px;
    margin: 0 auto;
}

/* Individual recommendation card */
.rpc-rec-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rpc-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Best Value card styling */
.rpc-rec-card--best_value {
    border: 2px solid #22c55e;
    position: relative;
}

.rpc-rec-card--best_value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 14px 14px 0 0;
}

/* Cheapest card styling */
.rpc-rec-card--cheapest {
    border: 2px solid #3b82f6;
}

.rpc-rec-card--cheapest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 14px 14px 0 0;
}

/* Badge */
.rpc-rec-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rpc-rec-card--best_value .rpc-rec-badge {
    background: #dcfce7;
    color: #166534;
}

.rpc-rec-card--cheapest .rpc-rec-badge {
    background: #dbeafe;
    color: #1e40af;
}

/* Logo */
.rpc-rec-logo {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpc-rec-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rpc-rec-logo-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--revma-primary, #2563eb), var(--revma-primary-dark, #1d4ed8));
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Provider info */
.rpc-rec-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rpc-rec-provider {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--revma-text-dark, #1e293b);
}

.rpc-rec-plan {
    font-size: 0.9rem;
    color: var(--revma-text-medium, #64748b);
}

/* Price */
.rpc-rec-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.rpc-rec-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--revma-text-dark, #1e293b);
}

.rpc-rec-period {
    font-size: 0.9rem;
    color: var(--revma-text-medium, #64748b);
}

.rpc-rec-price-diff {
    display: block;
    width: 100%;
    font-size: 0.85rem;
    color: #f59e0b;
    font-weight: 600;
    margin-top: 2px;
}

/* Subtitle */
.rpc-rec-subtitle {
    font-size: 0.85rem;
    color: var(--revma-text-medium, #64748b);
    font-style: italic;
}

/* CTA Button */
.rpc-rec-cta {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rpc-rec-card--best_value .rpc-rec-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.rpc-rec-card--best_value .rpc-rec-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.rpc-rec-card--cheapest .rpc-rec-cta {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rpc-rec-card--cheapest .rpc-rec-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Disclosure text */
.rpc-rec-disclosure {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.8rem;
    color: #78716c;
    text-align: center;
    font-style: italic;
}

/* Why Recommended bullets */
.rpc-rec-reasons {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 8px;
    text-align: left;
    font-size: 0.8rem;
}

.rpc-rec-reasons li {
    color: #166534;
    margin-bottom: 4px;
    line-height: 1.4;
}

.rpc-rec-reasons li:last-child {
    margin-bottom: 0;
}

/* Price diff text styling */
.rpc-rec-price-diff {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: #78716c;
    font-weight: 500;
    margin-top: 4px;
    font-style: italic;
}

/* Mini label pill for Best Value card */
.rpc-rec-mini-label {
    display: inline-block;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 1;
}

.rpc-rec-card {
    position: relative;
}

/* Tiny disclaimer inside Best Value card */
.rpc-rec-disclaimer {
    display: block;
    font-size: 10px;
    color: #a8a29e;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .rpc-recommendations-block {
        padding: 20px;
        margin-bottom: 20px;
    }

    .rpc-rec-cards {
        grid-template-columns: 1fr;
    }

    .rpc-rec--single .rpc-rec-cards {
        max-width: 100%;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .rpc-recommendations-block {
        padding: 16px;
        border-radius: 16px;
    }

    .rpc-rec-header h3 {
        font-size: 1.1rem;
    }

    .rpc-rec-card {
        padding: 16px;
    }

    .rpc-rec-amount {
        font-size: 1.5rem;
    }
}

/* Print - hide recommendations */
@media print {
    .rpc-recommendations-block {
        display: none;
    }
}

/* ============================================
   PROVIDER BADGES
   Provider-specific badges shown in result cards
   @since 1.6.4
============================================ */
/* Prices updated date */
.rpc-prices-updated {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin: 8px 0 16px;
}

/* Cost breakdown row */
.rpc-cost-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.75rem;
    color: #64748b;
}

.rpc-cost-breakdown .rpc-breakdown-label {
    width: 100%;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

.rpc-provider-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.rpc-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.rpc-provider-badge:hover {
    transform: scale(1.05);
}

/* Badge type-specific colors - Professional solid colors */
.rpc-provider-badge[data-badge-type="best_value"] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="fixed"] {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="popular"] {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="combo"] {
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="reliability"] {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="corporate"] {
    background: linear-gradient(135deg, #475569, #334155) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(71, 85, 105, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="no_clause"] {
    background: linear-gradient(135deg, #0d9488, #0f766e) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4) !important;
}

.rpc-provider-badge[data-badge-type="low_price"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.4) !important;
}

/* Provider-specific badge styling (optional overrides) */
.rpc-badge--heron {
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.rpc-badge--nrg {
    border: 1px solid rgba(146, 64, 14, 0.2);
}

.rpc-badge--enerwave {
    border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .rpc-provider-badges {
        gap: 4px;
    }

    .rpc-provider-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============================================
   ENHANCED VALIDATION STATES
   Better UX for kWh input validation
   @since 1.6.5
============================================ */

/* kWh validation hints */
.rpc-consumption-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--revma-text-light, #64748b);
    margin-top: 6px;
    transition: color 0.2s ease;
}

.rpc-consumption-hint.is-warning {
    color: #f59e0b;
}

.rpc-consumption-hint.is-error {
    color: #dc2626;
}

/* Input range indicator */
.rpc-input-range-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--revma-text-light, #94a3b8);
    margin-top: 4px;
    padding: 0 2px;
}

/* Friendly error for out-of-range values */
.rpc-consumption-error {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #dc2626;
    animation: rpc-fadeIn 0.2s ease;
}

.rpc-consumption-error.is-visible {
    display: flex;
}

.rpc-consumption-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   CARD ALIGNMENT FIXES
   Ensure consistent badge/CTA positioning
   @since 1.6.5
============================================ */

/* Ensure all provider cards have same structure height */
.rpc-provider-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start; /* Changed from center for consistent top alignment */
}

/* Provider info takes available space */
.rpc-provider-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px; /* Ensure minimum height for alignment */
}

/* Badges always at same position */
.rpc-provider-badges {
    margin-top: auto; /* Push to bottom of info section */
    min-height: 28px; /* Reserve space even when empty */
}

/* Pricing section alignment */
.rpc-provider-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 100px; /* Match info section */
}

/* CTA button always at bottom */
.rpc-provider-pricing .rpc-cta-btn {
    margin-top: auto;
}

/* Recommendation cards alignment */
.rpc-rec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 320px; /* Consistent card height */
}

.rpc-rec-card .rpc-rec-cta {
    margin-top: auto; /* Push CTA to bottom */
}

/* ============================================
   ACCESSIBILITY: FOCUS STATES
   Keyboard navigation support
   @since 1.6.5
============================================ */

/* Focus ring for interactive elements */
.rpc-cta-btn:focus-visible,
.rpc-request-quote-btn:focus-visible,
.rpc-rec-cta:focus-visible {
    outline: 3px solid var(--revma-primary, #2563eb) !important;
    outline-offset: 2px !important;
}

.rpc-provider-badge:focus-visible {
    outline: 2px solid var(--revma-primary, #2563eb);
    outline-offset: 1px;
}

/* Skip link for screen readers */
.rpc-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--revma-primary, #2563eb);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}

.rpc-skip-link:focus {
    top: 0;
}

/* ============================================
   DEBUG LABELS HIDDEN
   Remove any debug/development labels
   @since 1.6.5
============================================ */

/* Hide debug labels in production */
.rpc-debug-label,
[data-debug],
.debug-only {
    display: none !important;
}

/* Hide any "DEV" or "TEST" indicators */
.rpc-dev-indicator,
.rpc-test-mode-banner {
    display: none !important;
}

/* ============================================
   v3.0 - BEST CHOICE BADGE & SAVINGS TEXT
   Enhanced first result card styling
============================================ */

/* Best Choice Card - First result highlight */
.rpc-provider-card.rpc-best-choice {
    border: 2px solid var(--primary, #2563EB) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-soft, 0 10px 25px rgba(0, 0, 0, 0.06)) !important;
    position: relative;
    overflow: visible;
}

.rpc-provider-card.rpc-best-choice::before {
    display: none !important; /* Hide ribbon-style badge */
}

/* Best Choice Top Badge - Prominent pill */
.rpc-best-choice-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary, #2563EB) 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    z-index: 10;
}

.rpc-best-choice-badge::before {
    content: '🏆';
    font-size: 0.9rem;
}

/* Savings Text - Below price */
.rpc-savings-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #059669;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    text-align: center;
}

.rpc-savings-text::before {
    content: '💰 ';
}

/* Savings highlight animation on load */
.rpc-savings-text.rpc-animate-in {
    animation: rpc-savings-pulse 0.6s ease-out;
}

@keyframes rpc-savings-pulse {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Best Choice card hover - enhanced */
.rpc-provider-card.rpc-best-choice:hover {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), var(--shadow-hover, 0 20px 40px rgba(0, 0, 0, 0.1)) !important;
    transform: translateY(-6px);
}

/* Price emphasis in best choice card */
.rpc-provider-card.rpc-best-choice .rpc-monthly-price {
    color: var(--primary, #2563EB);
}

/* CTA button in best choice card */
.rpc-provider-card.rpc-best-choice .rpc-request-quote-btn {
    background: linear-gradient(135deg, var(--primary, #2563EB) 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

.rpc-provider-card.rpc-best-choice .rpc-request-quote-btn:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5) !important;
}

/* ============================================
   v3.0 - MOBILE-FIRST QA BREAKPOINTS
   320px / 375px / 414px coverage
============================================ */

/* Extra small: 320px (iPhone SE, older devices) */
@media (max-width: 320px) {
    .rpc-calculator {
        padding: 12px !important;
    }

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

    .rpc-header h2 {
        font-size: 1.35rem !important;
    }

    .rpc-calculate-btn,
    .rpc-ui.rpc-calculator .rpc-calculate-btn {
        height: 48px !important;
        font-size: 0.95rem !important;
        padding: 0 16px !important;
    }

    .rpc-type-btn,
    .rpc-ui.rpc-calculator .rpc-type-btn {
        height: 44px !important;
        font-size: 0.85rem !important;
    }

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

    .rpc-best-choice-badge {
        font-size: 0.7rem !important;
        padding: 6px 14px !important;
        top: -12px !important;
    }

    .rpc-savings-text {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }

    /* Prevent horizontal scroll */
    .rpc-form-grid {
        grid-template-columns: 1fr !important;
    }

    .rpc-type-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .rpc-presets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* Small mobile: 375px (iPhone standard) */
@media (max-width: 375px) and (min-width: 321px) {
    .rpc-calculator {
        padding: 14px !important;
    }

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

    .rpc-header h2 {
        font-size: 1.5rem !important;
    }

    .rpc-type-buttons {
        gap: 8px !important;
    }

    .rpc-best-choice-badge {
        font-size: 0.75rem !important;
        padding: 7px 16px !important;
    }
}

/* Medium mobile: 414px (iPhone Plus/Max sizes) */
@media (max-width: 414px) and (min-width: 376px) {
    .rpc-calculator {
        padding: 16px !important;
    }

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

    .rpc-header h2 {
        font-size: 1.6rem !important;
    }
}

/* Mobile shared rules: prevent horizontal overflow */
@media (max-width: 480px) {
    .rpc-calculator,
    .rpc-form-section,
    .rpc-results,
    .rpc-provider-card {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* No text truncation on CTAs */
    .rpc-calculate-btn,
    .rpc-request-quote-btn,
    .rpc-cta-btn {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Ensure buttons fit */
    .rpc-request-quote-btn {
        font-size: 0.85rem !important;
        padding: 10px 16px !important;
    }

    /* Results cards full width */
    .rpc-results-list {
        gap: 16px !important;
    }

    .rpc-provider-card {
        padding: 20px !important;
    }

    /* Best choice badge responsive */
    .rpc-best-choice-badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: fit-content !important;
        margin: 0 auto 16px !important;
    }

    /* Cheapest card badge - pill style on mobile */
    .rpc-provider-card.cheapest::before {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
        top: -10px !important;
    }

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

/* ============================================
   v3.1 - CALCULATOR UX POLISH
   - Loading state with intelligence perception
   - Auto-scroll to results
   - Consultant CTA after results
============================================ */

/* Loading overlay */
.rpc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: var(--radius, 14px);
    backdrop-filter: blur(4px);
}

.rpc-loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: rpc-spin-fast 0.8s linear infinite;
    margin-bottom: 16px;
}

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

.rpc-loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.rpc-loading-subtext {
    font-size: 0.85rem;
    color: #64748b;
}

/* Loading progress bar */
.rpc-loading-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.rpc-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563EB, #10b981);
    border-radius: 2px;
    animation: rpc-progress-fill 1.8s ease-out forwards;
}

@keyframes rpc-progress-fill {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

/* Results consultant CTA */
.rpc-consultant-cta {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius, 14px);
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rpc-consultant-cta-text {
    flex: 1;
}

.rpc-consultant-cta-title {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 4px;
}

.rpc-consultant-cta-subtitle {
    font-size: 0.85rem;
    color: #15803d;
}

.rpc-consultant-cta .revma-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35) !important;
}

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

/* Results appear animation */
.rpc-results.active {
    animation: rpc-results-appear 0.5s ease-out;
}

@keyframes rpc-results-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll margin for auto-scroll */
.rpc-results {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .rpc-consultant-cta {
        flex-direction: column;
        text-align: center;
    }

    .rpc-consultant-cta .revma-btn {
        width: 100%;
    }
}

/* ============================================
   SEND TO AI CHAT CTA
============================================ */
.rpc-chat-cta {
    display: none; /* Hidden until results are shown */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--revma-radius-lg, 16px);
    border: 1px dashed rgba(37, 99, 235, 0.3);
}

.rpc-results.active + .rpc-chat-cta,
.rpc-chat-cta.visible {
    display: flex;
}

.rpc-send-to-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #ffffff;
    color: #2563eb;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #2563eb;
    border-radius: var(--revma-radius-full, 999px);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.rpc-send-to-chat-btn:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.rpc-send-to-chat-btn:active {
    transform: translateY(0);
}

.rpc-send-to-chat-btn svg {
    flex-shrink: 0;
}

.rpc-chat-cta-hint {
    font-size: 0.85rem;
    color: var(--revma-text-light, #64748b);
    text-align: center;
}

/* Show CTA when results are active */
.rpc-results.active ~ .rpc-chat-cta {
    display: flex;
}

/* Success state after clicking */
.rpc-send-to-chat-btn.sent {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.rpc-send-to-chat-btn.sent::after {
    content: " ✓";
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rpc-chat-cta {
        margin-top: 20px;
        padding: 16px;
    }

    .rpc-send-to-chat-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
