/* Enhanced Vehicle Comparison Tool with Valuation Feature */
/* Auto De Bruin Brand Compliant Styling */

.vehicle-comparison-section {
    background: #f8fafc;
    padding: 60px 0;
    margin: 0;
    overflow: hidden;
}

.vehicle-comparison-section .container {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header Section */
.comparison-header {
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: #ffffff;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comparison-header .header-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.comparison-header .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.comparison-header .header-icon {
    font-size: 48px;
    opacity: 0.8;
}

/* Input Section */
.comparison-input-section {
    padding: 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.input-group label i {
    color: #264F7F;
    font-size: 16px;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #264F7F;
    box-shadow: 0 0 0 3px rgba(38, 79, 127, 0.1);
}

/* License plate validation states */
.form-control.valid {
    border-color: #059669;
    background-color: #f0fdf4;
}

.form-control.valid:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.invalid {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-control.invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.partial {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.form-control.partial:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Mileage validation states */
.form-control.warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.form-control.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.input-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.action-buttons {
    text-align: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #264F7F;
    color: #ffffff;
    border: 2px solid #264F7F;
}

.btn-primary:hover {
    background: #1e3f66;
    border-color: #1e3f66;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 79, 127, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #d1d5db;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.2);
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #6b7280;
    font-weight: 500;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #264F7F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Comparison Results */
.comparison-results {
    padding: 40px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.results-summary {
    font-size: 16px;
    color: #6b7280;
}

/* Clean Comparison Table */
.comparison-table-container {
    margin-bottom: 40px;
}

.comparison-table {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    color: #ffffff;
}

.header-cell {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-cell.specification {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 16px;
    justify-content: center;
}

.vehicle-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.vehicle-subtitle {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    background: #ffffff;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.comparison-row:hover {
    background: #f8fafc;
}

.comparison-row:last-child {
    border-bottom: none;
}

.row-cell {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.row-cell.specification {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    border-right: 1px solid #e2e8f0;
}

.row-cell.current-vehicle {
    justify-content: center;
    text-align: center;
    color: #1e293b;
    font-weight: 500;
}

.row-cell.target-vehicle {
    justify-content: center;
    text-align: center;
    color: #1e293b;
    font-weight: 500;
    position: relative;
}

/* Comparison indicators */
.spec-improvement {
    color: #059669;
    font-weight: 600;
    position: relative;
}

.spec-improvement::after {
    content: "↗";
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.spec-decline {
    color: #dc2626;
    font-weight: 600;
    position: relative;
}

.spec-decline::after {
    content: "↘";
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.spec-neutral {
    color: #6b7280;
    font-weight: 500;
}

.hybrid-badge {
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.8;
}

/* Electric vehicle indicators */
.electric-indicator {
    color: #10b981;
    font-weight: 600;
}

.hybrid-indicator {
    color: #3b82f6;
    font-weight: 600;
}

/* Power display enhancements */
.power-combined {
    font-size: 0.9em;
}

.power-combined .kw-value {
    color: #059669;
    font-weight: 600;
}

.power-combined .pk-value {
    color: #6b7280;
    margin-left: 4px;
}

/* Estimated value indicator styling */
.estimated-value {
    display: inline-block;
    font-size: 0.75em;
    color: #666;
    margin-left: 2px;
    cursor: help;
    opacity: 0.7;
    font-weight: normal;
}

.estimated-value:hover {
    opacity: 1;
    color: #333;
}

/* Special styling for unknown values */
.spec-unknown {
    color: #9ca3af;
    font-style: italic;
}

/* Highlight row on hover */
.comparison-row:hover .row-cell {
    background: #f8fafc;
}

.comparison-row:hover .row-cell.specification {
    background: #f1f5f9;
}

/* Valuation Section */
.valuation-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #bae6fd;
    padding: 30px;
    margin: 30px 0;
}

.valuation-header {
    text-align: center;
    margin-bottom: 24px;
}

.valuation-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.value-display {
    text-align: center;
    margin-bottom: 24px;
}

.value-range {
    font-size: 36px;
    font-weight: 700;
    color: #25D366;
    margin-bottom: 8px;
}

.value-subtitle {
    font-size: 16px;
    color: #6b7280;
}

.valuation-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.factor-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.factor-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.factor-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.valuation-disclaimer {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.valuation-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Benefits Section */
.benefits-section {
    margin-top: 40px;
}

.benefits-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.benefit-icon {
    font-size: 24px;
    color: #059669;
    margin-bottom: 12px;
}

.benefit-title {
    font-size: 16px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

/* Multi-Step Lead Capture Flow */
.lead-capture-flow {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 40px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #f8fafc;
    padding: 0 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #264F7F;
    color: #ffffff;
}

.progress-step.completed .step-number {
    background: #059669;
    color: #ffffff;
}

.step-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #264F7F;
    font-weight: 600;
}

/* Lead Steps */
.lead-step {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Step 3 - Wider layout for summary */
.lead-step[data-step="3"] {
    max-width: 900px;
    padding: 50px;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.step-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Neuromarketing Elements */
.neuro-header {
    position: relative;
    padding-top: 20px;
}

.excitement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.usp-text {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.usp-text strong {
    color: #0c4a6e;
}

/* Summary Content */
.summary-content {
    margin-top: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.summary-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px 0;
    text-align: center;
    position: relative;
}

.summary-card h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #264F7F 0%, #1e3f66 100%);
    border-radius: 2px;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.summary-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.summary-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.summary-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 18px;
    display: block;
}

/* Urgency Section */
.urgency-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.urgency-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.urgency-section h4 {
    font-size: 28px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 2;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: #92400e;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.benefits-list i {
    color: #059669;
    font-size: 18px;
    background: #ffffff;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Final CTA */
.final-cta {
    text-align: center;
    margin: 50px 0 40px 0;
    position: relative;
}

.btn-xl {
    padding: 24px 60px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-xl:hover::before {
    left: 100%;
}

.btn-xl:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: #ffffff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.guarantee-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guarantee-text i {
    color: #059669;
}

/* Valuation CTA */
.valuation-cta {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.valuation-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.lead-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.form-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

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

.condition-group label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #6b7280;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Single button in form-actions (step 1) */
.form-actions:has(button:only-child) {
    justify-content: center;
}

/* Step 2 specific button layout */
.lead-step[data-step="2"] .form-actions {
    justify-content: space-between;
}

.lead-step[data-step="2"] .form-actions .btn-secondary {
    order: 1;
}

.lead-step[data-step="2"] .form-actions .btn-primary {
    order: 2;
}

.privacy-note {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Success/Error/Warning Messages - Toast Style */
.success-message,
.error-message,
.warning-message {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    text-align: left;
}

.success-message.show,
.error-message.show,
.warning-message.show {
    transform: translateX(0);
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    color: #065f46;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.warning-message {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin: 20px 0;
    padding: 16px;
}

.warning-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #92400e;
    font-weight: 500;
}

.warning-content i {
    color: #f59e0b;
    font-size: 18px;
}

.success-content,
.error-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.success-content i,
.error-content i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.success-content i {
    color: #22c55e;
}

.error-content i {
    color: #ef4444;
}

.success-content h4,
.error-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.success-content h4 {
    color: #065f46;
}

.error-content h4 {
    color: #991b1b;
}

.success-content p,
.error-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Close button for messages */
.message-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .vehicle-comparison-section .container {
        margin: 0 20px !important;
        max-width: calc(100% - 40px) !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vehicle-comparison-section {
        padding: 40px 0;
    }

    .vehicle-comparison-section .container {
        margin: 0 15px !important;
        border-radius: 8px;
        max-width: calc(100% - 30px) !important;
    }

    .comparison-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Mobile Comparison Table */
    .comparison-table {
        border-radius: 8px;
    }

    .table-header {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .header-cell {
        padding: 16px;
    }

    .header-cell.specification {
        display: none; /* Hide specification header on mobile */
    }

    .comparison-row {
        grid-template-columns: 1fr;
        border-bottom: 2px solid #e2e8f0;
        margin-bottom: 16px;
    }

    .row-cell.specification {
        background: #264F7F;
        color: #ffffff;
        font-weight: 600;
        text-align: center;
        border-right: none;
        border-radius: 8px 8px 0 0;
    }

    .row-cell.current-vehicle,
    .row-cell.target-vehicle {
        padding: 12px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .row-cell.current-vehicle::before {
        content: "Uw voertuig: ";
        font-weight: 600;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
    }

    .row-cell.target-vehicle::before {
        content: "Deze occasion: ";
        font-weight: 600;
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
    }

    .row-cell.target-vehicle {
        border-radius: 0 0 8px 8px;
    }

    /* Mobile Multi-Step Flow */
    .lead-capture-flow {
        padding: 20px;
    }

    .progress-indicator {
        margin-bottom: 30px;
    }

    .progress-indicator::before {
        left: 10%;
        right: 10%;
    }

    .progress-step {
        padding: 0 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .lead-step {
        padding: 24px;
        margin: 0 -4px; /* Extend to edges on mobile */
    }

    .lead-step {
        max-width: none;
        margin: 0 15px;
        padding: 25px 20px;
        border-radius: 8px;
    }

    .lead-step[data-step="3"] {
        max-width: none;
        padding: 30px 20px;
    }

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

    .step-header h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .step-header p {
        font-size: 14px;
        line-height: 1.4;
    }

    .excitement-badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    .usp-text {
        font-size: 14px;
        padding: 12px;
    }

    .summary-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-item {
        padding: 16px;
    }

    .summary-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .summary-value {
        font-size: 16px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefits-list li {
        padding: 12px;
        gap: 12px;
    }

    .urgency-section {
        padding: 20px;
        margin-bottom: 24px;
    }

    .urgency-section h4 {
        font-size: 18px;
    }

    .benefits-list {
        max-width: none;
    }

    .benefits-list li {
        font-size: 14px;
        padding: 6px 0;
    }

    .btn-xl {
        padding: 16px 24px;
        font-size: 18px;
        width: 100%;
    }

    .guarantee-text {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .comparison-header .header-content h3 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .comparison-header .subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .comparison-header .header-icon {
        font-size: 32px;
    }

    .comparison-input-section {
        padding: 20px;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 6px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group label {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .input-help {
        font-size: 12px;
        margin-top: 4px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .comparison-results {
        padding: 20px;
    }

    .results-header {
        margin-bottom: 30px;
    }

    .results-header h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .results-summary {
        font-size: 14px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vs-divider {
        min-height: auto;
        padding: 15px 0;
        order: 2; /* Place between columns */
    }

    .vs-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
        transform: rotate(90deg);
    }

    .current-vehicle {
        order: 1;
    }

    .target-vehicle {
        order: 3;
    }

    .column-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .column-header h5 {
        font-size: 16px;
    }

    .vehicle-specs {
        padding: 16px;
    }

    .spec-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .spec-label {
        font-size: 12px;
        color: #6b7280;
    }

    .spec-value {
        font-size: 14px;
    }

    .valuation-section {
        padding: 20px;
        margin: 20px 0;
    }

    .valuation-header h4 {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .value-range {
        font-size: 28px;
    }

    .valuation-factors {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .factor-item {
        padding: 12px;
    }

    .factor-label {
        font-size: 11px;
    }

    .factor-value {
        font-size: 14px;
    }

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

    .benefit-item {
        padding: 16px;
    }

    .benefit-icon {
        font-size: 20px;
    }

    .benefit-title {
        font-size: 14px;
    }

    .benefit-description {
        font-size: 13px;
    }

    .lead-capture-section {
        padding: 20px;
    }

    .lead-form {
        padding: 20px;
    }

    .form-header h4 {
        font-size: 18px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-section h5 {
        font-size: 14px;
    }

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

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .condition-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .condition-group label {
        font-size: 13px;
    }

    .form-actions {
        margin-top: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .lead-step[data-step="2"] .form-actions {
        flex-direction: column-reverse; /* Previous button at bottom, Next at top */
    }

    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 16px;
    }

    .privacy-note {
        font-size: 11px;
        margin-top: 12px;
    }

    .success-message,
    .error-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 16px;
    }

    .success-content h4,
    .error-content h4 {
        font-size: 20px;
    }

    .success-content i,
    .error-content i {
        font-size: 36px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .vehicle-comparison-section {
        padding: 30px 0;
    }

    .vehicle-comparison-section .container {
        margin: 0 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .comparison-header {
        padding: 16px;
    }

    .comparison-header .header-content h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .comparison-header .subtitle {
        font-size: 13px;
    }

    .comparison-input-section {
        padding: 16px;
    }

    .input-grid {
        gap: 12px;
        margin-bottom: 16px;
    }

    .comparison-results {
        padding: 16px;
    }

    .results-header {
        margin-bottom: 20px;
    }

    .valuation-section {
        padding: 16px;
    }

    .valuation-factors {
        grid-template-columns: 1fr;
    }

    .lead-step {
        margin: 0 10px;
        padding: 20px 16px;
    }

    .lead-step[data-step="3"] {
        padding: 25px 16px;
    }

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

    .step-header h3 {
        font-size: 18px;
    }

    .step-header p {
        font-size: 13px;
    }

    .lead-capture-section {
        padding: 16px;
    }

    .lead-form {
        padding: 16px;
    }

    .value-range {
        font-size: 22px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-actions {
        margin-top: 16px;
        gap: 10px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .comparison-header {
        padding: 16px 20px;
    }

    .comparison-header .header-content h3 {
        font-size: 22px;
    }

    .vs-circle {
        transform: none; /* Don't rotate in landscape */
    }

    .comparison-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
    }

    .vs-divider {
        order: initial;
        min-height: 150px;
    }

    .current-vehicle,
    .target-vehicle {
        order: initial;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .form-control {
        min-height: 44px; /* iOS accessibility guideline */
    }

    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .spec-item {
        padding: 12px 0;
    }

    .factor-item {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .spinner {
        border-width: 1px;
    }

    .vehicle-badge {
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Thank You Section */
.thank-you-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 80px 0;
    margin: 0;
    overflow: hidden;
}

.thank-you-section .container {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.thank-you-content {
    padding: 60px 40px;
    text-align: center;
}

.thank-you-header {
    margin-bottom: 50px;
}

.success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.thank-you-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.thank-you-header .subtitle {
    font-size: 18px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.thank-you-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.detail-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.detail-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.detail-card ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
    line-height: 1.6;
}

.detail-card ul li {
    margin-bottom: 8px;
}

.detail-card p {
    margin: 0 0 8px 0;
    color: #475569;
    line-height: 1.6;
}

.detail-card p:last-child {
    margin-bottom: 0;
}

.thank-you-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-actions .btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.thank-you-actions .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.thank-you-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.thank-you-actions .btn-secondary {
    background: #ffffff;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thank-you-actions .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Thank You Section - Mobile */
@media (max-width: 768px) {
    .thank-you-section {
        padding: 40px 0;
    }

    .thank-you-section .container {
        margin: 0 15px !important;
        max-width: calc(100% - 30px) !important;
    }

    .thank-you-content {
        padding: 40px 20px;
    }

    .thank-you-header h2 {
        font-size: 24px;
    }

    .thank-you-header .subtitle {
        font-size: 16px;
    }

    .success-icon {
        font-size: 48px;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .thank-you-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .thank-you-section .container {
        margin: 0 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .detail-card {
        padding: 20px;
    }
}
