html, body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 183, 77, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.16), transparent 22%),
        linear-gradient(180deg, #f7efe3 0%, #f3efe8 100%);
    color: #1f2937;
    min-height: 100%;
}

body {
    margin: 0;
}

a, .btn-link {
    color: #a64514;
}

.btn-primary {
    color: #fff;
    background-color: #1f5c5a;
    border-color: #1b4d4c;
}

.btn-primary:hover {
    background-color: #174543;
    border-color: #143938;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 0.18rem rgba(166, 69, 20, 0.18);
}

.form-control-soft, .form-select-soft {
    border-color: #d9cab5;
    background-color: rgba(255, 255, 255, 0.88);
}

.form-control-soft:focus, .form-select-soft:focus {
    border-color: #a64514;
    background-color: #fff;
}

.valuation-shell {
    min-height: 100vh;
}

.valuation-page {
    max-width: 1180px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(31, 92, 90, 0.96), rgba(15, 23, 42, 0.94));
    color: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 0.98;
    margin: 0.35rem 0 1rem;
}

.hero-copy p {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.hero-metrics {
    display: grid;
    gap: 0.75rem;
}

.metric-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.metric-card.active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 0.35rem;
}

.metric-card strong {
    font-size: 1rem;
}

.search-panel {
    border-radius: 28px;
    overflow: hidden;
}

#lead-section {
    animation: riseIn 280ms ease;
}

#valuation-section {
    animation: riseIn 280ms ease;
}

.btn-accent {
    color: #fff;
    background: linear-gradient(135deg, #a64514, #cc6a22);
    border: none;
    box-shadow: 0 18px 30px rgba(166, 69, 20, 0.18);
}

.btn-accent:hover {
    color: #fff;
    background: linear-gradient(135deg, #8f3b10, #b65a1c);
}

.status-banner {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    font-weight: 600;
}

.status-idle {
    color: #3f3d39;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #dfd2c1;
}

.status-loading {
    color: #234e52;
    background: rgba(31, 92, 90, 0.08);
    border: 1px solid rgba(31, 92, 90, 0.12);
}

.status-results {
    color: #234e52;
    background: rgba(31, 92, 90, 0.08);
    border: 1px solid rgba(31, 92, 90, 0.12);
}

.status-empty {
    color: #7c4d11;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.18);
}

.status-error {
    color: #7d1f1f;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.16);
}

.empty-state,
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 180px;
    border-radius: 22px;
    border: 1px dashed #d8cab8;
    background: rgba(255, 255, 255, 0.68);
    text-align: left;
    padding: 1.5rem;
}

.empty-state {
    flex-direction: column;
}

.empty-state i {
    font-size: 2.5rem;
    color: #a64514;
}

.empty-state h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.empty-state p {
    margin-bottom: 0;
    color: #5b5f66;
    max-width: 58ch;
    text-align: center;
}

.result-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.form-check-label {
    color: #4b5563;
}

.panel-block {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e6d9c7;
}

.valuation-card {
    padding: 1.15rem;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1f5c5a, #16383a);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.valuation-range {
    margin: 0.5rem 0 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.05;
}

.table-clean thead th {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #7a6b58;
    border-bottom: 1px solid #e8ddcf;
}

.table-clean tbody tr {
    border-bottom: 1px solid #eee4d8;
}

.table-clean tbody td {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

@media (max-width: 991.98px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .hero-panel,
    .search-panel {
        border-radius: 22px;
    }

    .valuation-card,
    .panel-block {
        border-radius: 18px;
    }

    .empty-state,
    .loading-state {
        min-height: 160px;
    }
}

.section-divider {
    border: none;
    border-top: 2px dashed #d9cab5;
    opacity: 0.6;
}

.address-search-block {
    animation: riseIn 280ms ease;
}

.step2-success-banner {
    display: flex;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    color: #155724;
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.16);
}

.step2-success-banner i {
    font-size: 1.4rem;
    color: #28a745;
}

#continue-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

#lead-form .form-control.is-valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#lead-form .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

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