:root {
    --primary: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    /* Slate 500 */
    --background: #0f172a;
    /* Slate 900 */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --input-bg: #f8fafc;
    --success: #10b981;
    --radius: 12px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    background-image: radial-gradient(circle at top right, #1e293b, var(--background));
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 500px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 25%;
    transition: width var(--transition);
}

/* Wizard Card */
.wizard-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    position: relative;
    overflow: hidden;
}

.wizard-header {
    margin-bottom: 30px;
    text-align: center;
}

.wizard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.wizard-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Step transitions */
.step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Option Grid (Step 1) */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--input-bg);
}

.option-card:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-card input {
    display: none;
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.option-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.option-card .label {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 6px;
}

.option-card .desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

/* Amount Range (Step 2) */
.amount-selector {
    text-align: center;
    padding: 20px 0;
}

.range-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.range-display .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.range-display .suffix {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

input[type=range] {
    width: 100%;
    margin: 20px 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Benefit Estimation Box */
.benefit-estimation {
    margin-top: 25px;
    background: #f0f9ff;
    /* Light blue */
    border: 1px solid #bae6fd;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeIn 0.3s ease;
}

.benefit-estimation .estimation-icon {
    font-size: 1.5rem;
}

.benefit-estimation .estimation-text .label {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-estimation .estimation-text .value {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-estimation .estimation-text .sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Form Groups (Common) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--input-bg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Toggle Group (Step 3) */
.toggle-group {
    display: flex;
    gap: 10px;
}

.toggle-option {
    flex: 1;
    position: relative;
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    background: var(--input-bg);
}

.toggle-option input:checked+span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 16px;
}

.btn {
    padding: 14px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    color: var(--text-main);
    background: var(--input-bg);
}

.hidden {
    display: none !important;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

/* Success View */
.success-content {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--success);
}

.success-content h2 {
    margin-bottom: 15px;
}

.success-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* FAQ Section (SEO & Trust) */
.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.faq-header p {
    color: var(--secondary);
    font-size: 0.95rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Slight lighten on hover */
}

.faq-item h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    color: #94a3b8;
    /* Lighter slate for dark bg text */
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .wizard-card {
        padding: 25px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }
}