/*
 * Home Valuation form styles.
 * !important is used on a few properties because many WordPress themes set
 * aggressive defaults for h2, p, button, input, and label elements via
 * .entry-content selectors that would otherwise win the specificity battle.
 */

.hv-form {
    max-width: 660px !important;
    margin: 2rem auto !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
    color: #111 !important;
    box-sizing: border-box !important;
}

.hv-form *,
.hv-form *::before,
.hv-form *::after {
    box-sizing: border-box;
}

.hv-form .hv-heading {
    margin: 0 0 0.75rem !important;
    font-size: 3rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #228fcc !important;
}

.hv-form .hv-sub {
    margin: 0 0 1.75rem !important;
    color: #555 !important;
    font-size: 2rem !important;
    line-height: 1.45 !important;
}

.hv-form .hv-label {
    display: block !important;
    margin: 1rem 0 0.4rem !important;
    font-weight: 600 !important;
    font-size: 2rem !important;
    color: #111 !important;
}

.hv-form .hv-input {
    width: 100% !important;
    padding: 1.2rem 1.4rem !important;
    border: 1px solid #d0d4d9 !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    background: #fff !important;
    color: #111 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.hv-form .hv-input:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 1px !important;
    border-color: transparent !important;
}

.hv-form .hv-address-container {
    width: 100% !important;
    position: relative !important;
}

.hv-form .hv-pac-list {
    list-style: none !important;
    margin: 0.25rem 0 0 !important;
    padding: 0.4rem 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 1px solid #d0d4d9 !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
}

.hv-form .hv-pac-list[hidden] {
    display: none !important;
}

.hv-form .hv-pac-item {
    padding: 1rem 1.2rem !important;
    font-size: 1.5rem !important;
    color: #111 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    border: 0 !important;
}

.hv-form .hv-pac-item:hover,
.hv-form .hv-pac-item.is-active {
    background: #f4f7fb !important;
}

.hv-form .hv-button {
    display: block !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    padding: 1.15rem 1.5rem !important;
    background: #1f6feb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.hv-form .hv-button:disabled {
    background: #228fcc !important;
    cursor: not-allowed !important;
}

.hv-form .hv-button:not(:disabled):hover {
    background: #1858c2 !important;
}

.hv-form .hv-error {
    color: #b3261e !important;
    margin-top: 0.85rem !important;
    font-size: 1rem !important;
}

.hv-form .hv-spinner {
    width: 44px !important;
    height: 44px !important;
    margin: 1.5rem auto !important;
    border: 3px solid #e0e4e8 !important;
    border-top-color: #1f6feb !important;
    border-radius: 50% !important;
    animation: hv-spin 0.9s linear infinite !important;
}

@keyframes hv-spin {
    to { transform: rotate(360deg); }
}

.hv-form .hv-range-mid {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 0.4rem !important;
    color: #111 !important;
}

.hv-form .hv-range-lo-hi {
    text-align: center !important;
    color: #555 !important;
    margin-bottom: 1.75rem !important;
    font-size: 1.5rem !important;
}

.hv-form .hv-property ul,
.hv-form .hv-comps ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem !important;
}

.hv-form .hv-property li {
    display: inline-block !important;
    margin: 0 1rem 0.5rem 0 !important;
    color: #444 !important;
    font-size: 1.5rem !important;
}

.hv-form .hv-comps li {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #eef0f3 !important;
    font-size: 1.4rem !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.hv-form .hv-comps h3 {
    font-size: 2rem !important;
    margin: 1.5rem 0 0.75rem !important;
    color: #111 !important;
    font-weight: 600 !important;
}

.hv-form .hv-cta {
    margin-top: 1.5rem !important;
    padding: 1.25rem 1.4rem !important;
    background: #f4f7fb !important;
    border-radius: 8px !important;
    font-size: 1.5rem !important;
    line-height: 1.45 !important;
    color: #1a1a1a !important;
}

.hv-form .hv-disclaimer {
    margin-top: 1.5rem !important;
    font-size: 1.1rem !important;
    color: #888 !important;
    line-height: 1.5 !important;
}

@media (max-width: 600px) {
    .hv-form {
        margin: 1rem !important;
        padding: 1.5rem !important;
    }
    .hv-form .hv-heading { font-size: 2.5rem !important; }
    .hv-form .hv-range-mid { font-size: 2.5rem !important; }

    /* Bigger, more tappable dropdown items on mobile */
    .hv-form .hv-pac-list {
        max-height: 60vh !important;
        padding: 0.5rem 0 !important;
    }
    .hv-form .hv-pac-item {
        padding: 1.25rem 1.1rem !important;
        font-size: 1.4rem !important;
        line-height: 1.45 !important;
        border-bottom: 1px solid #eef0f3 !important;
        min-height: 60px !important;
    }
    .hv-form .hv-pac-item:last-child {
        border-bottom: 0 !important;
    }
}
