:root {
    --primary: #1f7aec;
    --secondary: #0d8a53;
    --bg-soft: #f5f7fb;
    --text: #1a1a1a;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
}

.estimation-hero {
    background: linear-gradient(120deg, #f0f6ff 0%, #f7f9ff 50%, #f0fff9 100%);
    padding: 60px 0 40px;
}

.estimation-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8f3ff;
    color: #0f62fe;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-size: 12px;
}

.estimation-hero h1 {
    font-size: 34px;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 700;
}

.estimation-hero .lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: center;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 24px;
    gap: 12px;
}

.hero-highlights div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.hero-highlights strong {
    display: block;
    font-size: 20px;
    color: var(--text);
}

.hero-highlights span {
    color: var(--muted);
    font-size: 14px;
}

.hero-cta {
    display: flex;
    justify-content: flex-end;
}

.cta-card {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    width: 100%;
}

.cta-card p {
    margin-bottom: 16px;
}

.cta-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(120deg, #3b82f6, #0ea5e9);
    color: #fff;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
}

.cta-btn:hover {
    opacity: 0.9;
}

.cta-link {
    display: inline-block;
    color: #a5b4fc;
    text-decoration: underline;
}

.estimation-wrapper {
    padding: 40px 0 80px;
    background: var(--bg-soft);
}

.estimation-card {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 28px;
    margin-bottom: 28px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--muted);
    font-weight: 600;
    border: 1px solid var(--border);
}

.step.active {
    background: linear-gradient(120deg, #1f7aec, #4ade80);
    color: #fff;
    border-color: transparent;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
}

.step-panel h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
}

.type-item .icon {
    font-size: 26px;
}

.type-item:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(31, 122, 236, 0.15);
    transform: translateY(-2px);
}

.type-item.active {
    background: linear-gradient(120deg, #e0f2fe, #dcfce7);
    border-color: #9dd6ff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-group button {
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.pill-group button.active {
    background: #1f7aec;
    color: #fff;
    border-color: #1f7aec;
}

.extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.extras label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text);
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.actions .primary,
.result-actions .primary,
.lead-form .primary {
    background: linear-gradient(120deg, #1f7aec, #0ea5e9);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.actions .secondary,
.result-actions .secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.actions button {
    min-width: 140px;
}

.actions #submit-estimation {
    display: none;
}

.estimation-result {
    background: #0b1221;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-top: 20px;
    border: 1px solid #1f2937;
}

.hidden {
    display: none !important;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.result-header .label {
    color: #cbd5e1;
    margin-bottom: 4px;
}

.result-header .amount {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.result-header .range {
    color: #94a3b8;
}

.badge-soft {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: #cbd5e1;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.result-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.result-card .label {
    color: #cbd5e1;
    margin-bottom: 6px;
}

.result-card .value {
    font-size: 18px;
    font-weight: 700;
}

.lead-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-top: 12px;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    margin-top: 10px;
}

.lead-form input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #111827;
    color: #e2e8f0;
}

.lead-form input::placeholder {
    color: #94a3b8;
}

.lead-form button {
    border: none;
    cursor: pointer;
}

.lead-box .success {
    color: #4ade80;
    margin-top: 8px;
}

.lead-box .error {
    color: #f87171;
    margin-top: 8px;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.trust-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.trust-card .icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.trust-card h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.trust-card p {
    color: var(--muted);
}

.help {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta {
        justify-content: flex-start;
    }
    .estimation-card {
        padding: 22px;
    }
    .lead-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .actions {
        flex-direction: column;
    }
    .actions button,
    .actions a,
    .result-actions a {
        width: 100%;
        text-align: center;
    }
    .result-header .amount {
        font-size: 26px;
    }
}
