/* ==========================================================================
   VraagEnergie.nl - Design System & Stylesheet
   Theme: Dutch Energy Market - Emerald Green, Deep Navy & Warm Energy Orange
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #00B074;
    --primary-hover: #009663;
    --primary-light: rgba(0, 176, 116, 0.1);
    --secondary: #FF6B00; /* Dutch Warm Energy Accent */
    --secondary-hover: #E05E00;
    --secondary-light: rgba(255, 107, 0, 0.1);
    
    --bg-dark: #0B192C;
    --bg-card-dark: #1E293B;
    --bg-light: #F8FAFC;
    --bg-card-light: #FFFFFF;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-on-dark: #F8FAFC;
    
    --border-light: #E2E8F0;
    --border-dark: #334155;
    
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-yellow: #EAB308;
    --status-success: #10B981;
    --status-pending: #F59E0B;
    --status-error: #EF4444;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 176, 116, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ticker Bar */
.ticker-wrap {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    gap: 32px;
    animation: ticker 35s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ticker-badge {
    background: rgba(0, 176, 116, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ticker-badge.gas {
    background: rgba(255, 107, 0, 0.2);
    color: var(--secondary);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header & Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 176, 116, 0.3);
}

.brand-logo span.dot-nl {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark);
    color: white !important;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-nav-admin:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 60px 0 80px 0;
    background: radial-gradient(100% 100% at 50% 0%, rgba(0, 176, 116, 0.08) 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 span.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p.lead-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.usp-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.usp-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Trust Pill */
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065F46;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.trust-pill svg {
    color: var(--status-success);
}

/* Multi-Step Wizard Card */
.wizard-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
}

/* Progress Header */
.wizard-progress {
    margin-bottom: 32px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--border-light);
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 18px;
    left: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
    transition: width var(--transition-normal);
}

.step-indicator {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-light);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all var(--transition-fast);
}

.step-indicator.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 12px rgba(0, 176, 116, 0.4);
}

.step-indicator.completed {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.step-label.active {
    color: var(--primary);
    font-weight: 700;
}

/* Form Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 24px;
}

.step-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 6px;
}

.step-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 12px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #F8FAFC;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 176, 116, 0.12);
}

/* Grid Selections (Housing & Persons) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.option-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all var(--transition-fast);
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.option-card .icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    display: block;
}

.option-card .title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Consumption Calculator Cards */
.calculator-box {
    background: #F1F5F9;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-field-group {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.calc-header.elec { color: var(--primary); }
.calc-header.gas { color: var(--secondary); }

.calc-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-input {
    width: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: right;
}

.calc-unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Toggle Switch Component */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Double Opt-In Consent Box */
.optin-consent-box {
    background: rgba(0, 176, 116, 0.05);
    border: 1.5px solid rgba(0, 176, 116, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.doi-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-dark);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

/* Wizard Navigation Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary {
    background: #F1F5F9;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #E2E8F0;
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 176, 116, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 116, 0.45);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    color: white;
    width: 100%;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
}

/* Features Grid Section */
.features-section {
    padding: 80px 0;
    background: white;
    border-top: 1px solid var(--border-light);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-light);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 176, 116, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Modal Overlay & Double Opt-in Email Preview */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 25, 44, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.email-modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .email-modal {
    transform: scale(1);
}

.email-header {
    background: var(--bg-dark);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.email-body {
    padding: 32px 28px;
}

.email-meta {
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.email-meta div {
    margin-bottom: 4px;
}

.email-meta span.label {
    font-weight: 700;
    color: var(--text-muted);
    display: inline-block;
    width: 80px;
}

.email-cta-box {
    text-align: center;
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    margin: 24px 0;
}

.btn-verify-optin {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 176, 116, 0.4);
    transition: transform var(--transition-fast);
}

.btn-verify-optin:hover {
    transform: scale(1.03);
    color: white;
}

/* Admin Dashboard Styles */
.admin-header {
    background: var(--bg-dark);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-table-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 60px;
}

.admin-toolbar {
    padding: 20px 24px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    padding-left: 38px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.lead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.lead-table th {
    background: #F1F5F9;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.lead-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.lead-table tr:hover {
    background: #F8FAFC;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge.verified {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .features-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .usps-grid, .options-grid, .calc-row, .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .form-input-row {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .wizard-card {
        padding: 20px;
    }
}
