/* ==========================================================================
   SITE COST CALCULATOR - PREMIUM GLASSMORPHIC DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
    --color-bg: #07080d;
    --color-bg-panel: rgba(13, 16, 27, 0.45);
    --color-bg-card: rgba(22, 28, 45, 0.35);
    --color-bg-card-hover: rgba(30, 38, 62, 0.5);
    --color-bg-inner: rgba(255, 255, 255, 0.02);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-active: rgba(99, 102, 241, 0.6);
    --color-text-main: #ffffff;
    --color-text-muted: #9aa2c1;
    --color-text-secondary: #636b8f;
    --surface-toggle: rgba(255, 255, 255, 0.03);
    --surface-toggle-border: rgba(255, 255, 255, 0.05);
    --surface-toggle-hover: rgba(255, 255, 255, 0.1);
    --surface-toggle-active: rgba(255, 255, 255, 0.1);
    --header-divider: rgba(255, 255, 255, 0.05);
    --scrollbar-track: rgba(7, 8, 13, 0.8);
    --lang-menu-bg: #f5f0e6;
    --lang-menu-text: #1a1f2e;
    --lang-menu-muted: #6b7280;
    --orb-opacity: 0.45;
    --orb-blend: screen;
    --price-box-bg: rgba(255, 255, 255, 0.02);
    --receipt-bg: rgba(13, 16, 27, 0.6);
    --provider-bg: rgba(13, 18, 33, 0.4);
    --featured-agency-bg: rgba(15, 32, 39, 0.7);
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-teal: #14b8a6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    --grad-success: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-green) 100%);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.25);
    --blur-glass: blur(18px);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

[data-theme="light"] {
    --color-bg: #f4f6fb;
    --color-bg-panel: rgba(255, 255, 255, 0.82);
    --color-bg-card: rgba(255, 255, 255, 0.9);
    --color-bg-card-hover: rgba(255, 255, 255, 1);
    --color-bg-inner: rgba(99, 102, 241, 0.04);
    --color-border: rgba(15, 23, 42, 0.1);
    --color-border-active: rgba(99, 102, 241, 0.55);
    --color-text-main: #0f172a;
    --color-text-muted: #475569;
    --color-text-secondary: #64748b;
    --surface-toggle: rgba(15, 23, 42, 0.05);
    --surface-toggle-border: rgba(15, 23, 42, 0.1);
    --surface-toggle-hover: rgba(15, 23, 42, 0.08);
    --surface-toggle-active: #ffffff;
    --header-divider: rgba(15, 23, 42, 0.08);
    --scrollbar-track: #e8ecf4;
    --lang-menu-bg: #ffffff;
    --lang-menu-text: #0f172a;
    --lang-menu-muted: #64748b;
    --orb-opacity: 0.28;
    --orb-blend: normal;
    --price-box-bg: rgba(99, 102, 241, 0.06);
    --receipt-bg: rgba(255, 255, 255, 0.95);
    --provider-bg: rgba(255, 255, 255, 0.92);
    --featured-agency-bg: rgba(240, 253, 250, 0.95);
    --shadow-premium: 0 16px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-neon: 0 0 18px rgba(99, 102, 241, 0.18);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

/* Fonts Helper */
.font-outfit {
    font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   3. Glowing Abstract Background
   -------------------------------------------------------------------------- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: var(--orb-blend);
    opacity: var(--orb-opacity);
    animation: orbFloat 15s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -150px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 30%;
    right: 25%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   4. App Container & Global Header
   -------------------------------------------------------------------------- */
.app-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 10;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--header-divider);
}

.logo a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
}

.logo-accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-main {
    color: var(--color-text-main);
}

/* Switcher Buttons (Currency & Language) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-group {
    display: flex;
    background: var(--surface-toggle);
    padding: 3px;
    border-radius: 30px;
    border: 1px solid var(--surface-toggle-border);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--color-text-main);
}

.toggle-btn.active {
    background: var(--surface-toggle-active);
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.currency-toggle .toggle-btn.active,
.theme-toggle .toggle-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
}

.theme-toggle .toggle-btn {
    padding: 6px 12px;
    min-width: 36px;
}

.theme-toggle .toggle-btn i {
    font-size: 0.85rem;
}

/* Language dropdown (7 locales) */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-toggle);
    border: 1px solid var(--surface-toggle-border);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 148px;
}

.lang-dropdown-trigger:hover,
.lang-dropdown.open .lang-dropdown-trigger {
    border-color: rgba(99, 102, 241, 0.35);
    background: var(--surface-toggle-hover);
}

.lang-trigger-native {
    flex: 1;
    text-align: left;
}

.lang-trigger-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

.lang-trigger-chevron {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-trigger-chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--lang-menu-bg);
    border: 1px solid var(--surface-toggle-border);
    border-radius: 14px;
    box-shadow: var(--shadow-premium);
    z-index: 200;
}

.lang-dropdown-menu[hidden] {
    display: none;
}

.lang-dropdown-menu li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    color: var(--lang-menu-text);
    font-size: 0.88rem;
    font-weight: 500;
}

.lang-dropdown-menu li:hover {
    background: var(--surface-toggle-hover);
}

.lang-dropdown-menu li.active {
    background: var(--accent-indigo);
    color: #ffffff;
}

.lang-dropdown-menu li.active .lang-option-code {
    color: rgba(255, 255, 255, 0.75);
}

.lang-option-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lang-menu-muted);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   5. Glassmorphism Panels (Layout)
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--color-bg-panel);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.glass-panel-inner {
    background: var(--color-bg-inner);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .glass-panel-inner {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Main Wizard Card */
.wizard-card {
    padding: 40px;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

/* --------------------------------------------------------------------------
   6. Progress Indicator
   -------------------------------------------------------------------------- */
.progress-bar-container {
    margin-bottom: 40px;
    position: relative;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 80px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: rgba(22, 28, 45, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 16px;
    z-index: 1;
}

/* Active and Completed Step styles */
.step-dot.active .step-num {
    background: var(--color-bg);
    border-color: var(--accent-indigo);
    color: var(--color-text-main);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.step-dot.active .step-label {
    color: var(--accent-indigo);
}

.step-dot.completed .step-num {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: white;
}

.step-dot.completed .step-label {
    color: var(--color-text-main);
}

/* Progress Fill Line */
.progress-fill-track {
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: var(--grad-primary);
    box-shadow: var(--shadow-neon);
    width: 0%;
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   7. Buttons Design
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-md {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-tertiary:hover {
    color: var(--color-text-main);
}

/* Glowing Border Effect for buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-neon);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(30deg);
    transition: var(--transition-smooth);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { transform: translate(-30%, -30%) rotate(30deg); }
    100% { transform: translate(30%, 30%) rotate(30deg); }
}

.icon-left {
    margin-right: 8px;
}

.icon-right {
    margin-left: 8px;
}

.badge {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   8. Wizard Multi-Step Layout & Transitions
   -------------------------------------------------------------------------- */
.wizard-steps-wrapper {
    position: relative;
    flex-grow: 1;
}

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

/* Header Text elements in steps */
.step-header {
    margin-bottom: 30px;
}

.step-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-indigo);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. STEP 0: Welcome Screen Layout
   -------------------------------------------------------------------------- */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    max-width: 750px;
    margin: 0 auto;
    gap: 20px;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.welcome-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   10. Options Selection Cards (Grid, Hover & Check state)
   -------------------------------------------------------------------------- */
.options-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 10px;
}

.grid-site-types {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-features {
    grid-template-columns: repeat(3, 1fr);
}

.grid-design {
    grid-template-columns: repeat(3, 1fr);
}

.grid-stack {
    grid-template-columns: repeat(2, 1fr);
}

/* Basic Option Card */
.option-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    display: block;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.option-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.option-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.option-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

/* Checked option state */
.option-card input:checked + .card-content .card-icon {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-neon);
}

.option-card input:checked {
    border-color: var(--accent-indigo);
}

/* Standard styling fallback since radio elements are hidden */
.option-card:has(input:checked) {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-neon);
}

/* Checkbox specific aesthetic tweaks */
.checkbox-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.checkbox-card:has(input:checked)::before {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    content: '✓';
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --------------------------------------------------------------------------
   11. STEP 5: Results Dashboard Styling
   -------------------------------------------------------------------------- */
.results-header {
    margin-bottom: 35px;
    text-align: center;
}

.results-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 8px;
}

.results-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Providers Brackets Cards */
.providers-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.provider-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    border-radius: 20px;
    position: relative;
    padding: 30px;
    background: var(--provider-bg);
}

/* Glow effects for Provider Cards */
#cardFreelancer:hover {
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

#cardStudio:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

#cardAgency:hover {
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
}

/* Highlighting the studio option */
.featured-provider {
    background: var(--color-bg-card-hover);
    border: 1.5px solid var(--accent-indigo);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.08);
    transform: translateY(-8px);
}

.featured-provider:hover {
    transform: translateY(-12px) scale(1.02);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-neon);
}

/* Provider Header Section */
.provider-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.provider-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.segment-freelancer {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.segment-studio {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.segment-agency {
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.provider-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.provider-sub {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Provider Price section */
.provider-price-box {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    background: var(--price-box-bg);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.price-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.featured-provider .price-value {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Provider Details section */
.provider-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.detail-label {
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-value {
    color: var(--color-text-main);
    font-weight: 600;
}

.risk-level {
    font-weight: 700;
}
.risk-high { color: var(--accent-red); }
.risk-med { color: var(--accent-yellow); }
.risk-none { color: var(--accent-teal); }

.text-yellow { color: var(--accent-yellow); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-teal { color: var(--accent-teal); }

/* Provider lists */
.provider-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-features-list li {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.provider-features-list li i {
    font-size: 0.85rem;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. Receipt / Breakdown Section
   -------------------------------------------------------------------------- */
.receipt-section {
    margin-bottom: 30px;
    background: var(--receipt-bg);
}

.receipt-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.receipt-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.receipt-table-wrapper {
    overflow-x: auto;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.receipt-table th {
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.receipt-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
}

.col-service {
    font-weight: 500;
    color: var(--color-text-main);
}

.col-share {
    font-family: var(--font-heading);
    font-weight: 500;
}

.col-cost {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
}

.text-right {
    text-align: right;
}

.config-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.summary-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Performance / Timeline Gauges
   -------------------------------------------------------------------------- */
.gauges-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.gauge-box {
    background: rgba(255, 255, 255, 0.01);
}

.gauge-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.gauge-bar-wrap {
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    position: relative;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.gauge-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.fill-reliability {
    background: var(--grad-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.fill-timeline {
    background: var(--grad-success);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

.gauge-percentage {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.gauge-info-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   14. Final Action Panel (CTA / PDF)
   -------------------------------------------------------------------------- */
.actions-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
}

.btn-edge-cta {
    background: var(--grad-success);
    color: white;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.btn-edge-cta:hover {
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
    background: var(--grad-success);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14b. Agency Card Emphasis (Recommended) & In-Card CTA
   -------------------------------------------------------------------------- */
.featured-agency {
    background: var(--featured-agency-bg);
    border: 1.5px solid var(--accent-teal);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.18);
    transform: translateY(-8px);
}

.featured-agency:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(20, 184, 166, 0.25);
    border-color: var(--accent-teal);
}

.featured-agency .price-value {
    background: var(--grad-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-badge.agency-variant {
    background: var(--grad-success);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.35);
}

.provider-cta {
    margin-top: 22px;
    width: 100%;
}

/* --------------------------------------------------------------------------
   14c. Lead Capture Form
   -------------------------------------------------------------------------- */
.lead-section {
    margin-bottom: 30px;
    background: rgba(20, 184, 166, 0.04);
    border: 1px solid rgba(20, 184, 166, 0.18);
}

.lead-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.lead-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lead-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lead-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.lead-input::placeholder {
    color: var(--color-text-secondary);
}

.lead-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.lead-textarea {
    resize: vertical;
    min-height: 52px;
}

.lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    cursor: pointer;
}

.lead-consent input {
    margin-top: 2px;
    accent-color: var(--accent-teal);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lead-error {
    display: none;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
}

.lead-error.visible {
    display: block;
}

.lead-form #btnLeadSubmit {
    align-self: flex-start;
}

.lead-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 10px;
}

.lead-success.visible {
    display: flex;
}

.lead-success-icon {
    font-size: 2.6rem;
    color: var(--accent-teal);
    margin-bottom: 4px;
}

.lead-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.lead-success p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    max-width: 460px;
    line-height: 1.5;
}

.lead-section.submitted .lead-form,
.lead-section.submitted .lead-info {
    display: none;
}

/* --------------------------------------------------------------------------
   15. App Footer
   -------------------------------------------------------------------------- */
.app-footer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    padding: 10px 0 20px 0;
}

.app-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
}

.app-footer a:hover {
    color: var(--accent-indigo);
}

.footer-asterisk {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   15b. AEO crawlable corpus & noscript fallback
   -------------------------------------------------------------------------- */
.aeo-corpus {
    margin-top: 24px;
    padding: 32px 40px;
}

.aeo-corpus-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

[data-theme="light"] .orb-1 {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .orb-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .orb-3 {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .step-num {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--color-text-secondary);
}

[data-theme="light"] .wizard-footer {
    border-top-color: var(--header-divider);
}

[data-theme="light"] .receipt-table th,
[data-theme="light"] .receipt-table td {
    border-bottom-color: var(--color-border);
}

[data-theme="light"] .summary-tag {
    background: var(--surface-toggle);
    border-color: var(--surface-toggle-border);
}

[data-theme="light"] .btn-secondary {
    background: var(--surface-toggle);
    border-color: var(--surface-toggle-border);
    color: var(--color-text-main);
}

[data-theme="light"] .card-icon {
    background: var(--surface-toggle);
    border-color: var(--surface-toggle-border);
}

.aeo-corpus-sub {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--accent-teal);
}

.aeo-corpus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.aeo-corpus-list a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.aeo-corpus-list a:hover {
    text-decoration: underline;
}

.aeo-corpus-meta {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.aeo-corpus-meta a {
    color: var(--accent-indigo);
}

.noscript-fallback {
    padding: 24px;
    margin: 20px;
    background: #07080d;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 12px;
    max-width: 720px;
    line-height: 1.6;
}

.noscript-fallback h1 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.noscript-fallback h2 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
    color: #94a3b8;
}

.noscript-fallback a {
    color: #14b8a6;
}

/* --------------------------------------------------------------------------
   16. FAQ Accordion Styles (SEO / AEO)
   -------------------------------------------------------------------------- */
.app-faq {
    margin-top: 40px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.faq-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.faq-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    transition: var(--transition-smooth);
    padding: 0;
}

.faq-item:hover,
.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 24px;
    color: var(--color-text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--accent-indigo);
}

.faq-chevron {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-indigo);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. Media Queries (Responsiveness)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .providers-comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-provider,
    .featured-agency {
        transform: none;
    }
    
    .featured-provider:hover,
    .featured-agency:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .wizard-card {
        padding: 24px;
        min-height: 480px;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .step-title {
        font-size: 1.4rem;
    }
    
    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-design {
        grid-template-columns: 1fr;
    }
    
    .grid-stack {
        grid-template-columns: 1fr;
    }
    
    .gauges-container-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-panel {
        flex-direction: column;
    }
    
    .actions-panel .btn {
        width: 100%;
    }
    
    .lead-fields {
        grid-template-columns: 1fr;
    }
    
    .lead-form #btnLeadSubmit {
        align-self: stretch;
        width: 100%;
    }
    
    .app-header {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 20px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .currency-toggle .toggle-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .theme-toggle .toggle-btn {
        padding: 6px 10px;
        min-width: 32px;
    }
    
    .lang-dropdown {
        width: 100%;
    }
    
    .lang-dropdown-trigger {
        width: 100%;
        min-width: 0;
    }
    
    .lang-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }
    
    .steps-indicator {
        display: none;
    }
    
    .progress-fill-track {
        left: 0;
        right: 0;
        top: 0;
    }
    
    .progress-bar-container {
        margin-bottom: 24px;
    }
    
    .aeo-corpus {
        padding: 24px;
        margin-top: 24px;
    }
    
    .app-faq {
        padding: 24px;
        margin-top: 24px;
    }
    
    .faq-title {
        font-size: 1.4rem;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 16px 16px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .grid-features {
        grid-template-columns: 1fr;
    }
    
    .wizard-card {
        padding: 16px;
    }
}
