.hero .hero-content {
    max-width: 900px;
    text-align: center;
}

.home-estimator {
    width: 100%;
    max-width: 620px;
    margin: 18px auto 0;
    display: grid;
    gap: 8px;
    text-align: left;
}

.home-estimator-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 36px;
    align-items: center;
    min-height: 46px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 8px 20px rgba(0, 35, 72, .16);
}

.home-estimator-label {
    padding-left: 14px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
}

.home-estimator-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: 0;
}

.home-estimator-input:focus,
.home-estimator-input:focus-visible {
    outline: 3px solid rgba(0, 85, 164, .32);
    outline-offset: 4px;
}

.home-estimator-input[aria-invalid="true"] {
    color: #0f172a;
}

.home-estimator-input::placeholder {
    color: #64748b;
    font-weight: 700;
}

.home-estimator-field {
    position: relative;
    min-width: 0;
}

.home-estimator-icon {
    display: grid;
    place-items: center;
    width: 36px;
    color: var(--bleu-france);
}

.home-estimator-icon svg {
    width: 20px;
    height: 20px;
}

.home-estimator-when {
    grid-template-columns: 92px 1fr 1fr 36px;
}

.home-estimator-toggle {
    height: 36px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .55);
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.home-estimator-toggle.active {
    background: var(--bleu-france);
    color: #fff;
}

.home-estimator-later {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-estimator-later.show {
    display: grid;
}

.home-estimator-later input {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .9);
    padding: 0 14px;
    color: #0f172a;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(0, 35, 72, .14);
}

.home-estimator-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.home-estimator-btn {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.home-estimator-btn.estimate {
    background: #0f172a;
}

.home-estimator-btn.order {
    background: var(--bleu-france);
}

.home-estimator-btn:hover,
.home-estimator-btn:focus-visible {
    filter: brightness(1.08);
}

.home-estimator-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: -92px;
    right: -36px;
    z-index: 40;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .24);
}

.home-estimator-suggestions.show {
    display: block;
}

.home-estimator-suggestion {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    padding: 12px 16px;
    text-align: left;
    color: #0f172a;
    font: inherit;
    cursor: pointer;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.home-estimator-suggestion:hover,
.home-estimator-suggestion:focus,
.home-estimator-suggestion.selected {
    background: #eff6ff;
    outline: 0;
}

.home-estimator-suggestion strong {
    display: block;
    color: #003d7a;
    font-size: 14px;
    line-height: 1.25;
}

.home-estimator-suggestion-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0055a4;
    font-size: 16px;
    line-height: 1;
}

.home-estimator-suggestion-text span {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.home-estimator-result {
    display: none;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .94);
    border-left: 4px solid var(--bleu-france);
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 10px 26px rgba(0, 35, 72, .16);
}

.home-estimator-result.error {
    border-left-color: #EF4135;
    background: #fff7f7;
}

.home-estimator-result.loading {
    border-left-color: #0055A4;
    background: #f8fbff;
}

.home-estimator-result.show {
    display: block;
}

.home-estimator-result strong {
    color: #0055a4;
    font-size: 18px;
}

@media (max-width: 620px) {
    .home-estimator {
        gap: 8px;
        margin-bottom: 18px;
    }

    .home-estimator-row {
        grid-template-columns: 82px minmax(0, 1fr) 36px;
        min-height: 48px;
    }

    .home-estimator-label,
    .home-estimator-input,
    .home-estimator-toggle,
    .home-estimator-btn {
        font-size: 13px;
    }

    .home-estimator-label {
        padding-left: 12px;
    }

    .home-estimator-when {
        grid-template-columns: 82px 1fr 1fr 36px;
    }

    .home-estimator-toggle {
        height: 36px;
    }

    .home-estimator-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .home-estimator-btn {
        min-height: 48px;
    }

    .home-estimator-suggestions {
        left: -82px;
        right: -36px;
        top: calc(100% + 8px);
    }
}

@media (max-width: 480px) {
    .hero .hero-content {
        max-width: 100%;
    }

    .home-estimator {
        gap: 6px;
        margin-top: 12px;
        margin-bottom: 10px;
    }

    .home-estimator-row {
        grid-template-columns: 72px minmax(0, 1fr) 32px;
        min-height: 40px;
        box-shadow: 0 5px 14px rgba(0, 35, 72, .12);
    }

    .home-estimator-label,
    .home-estimator-toggle,
    .home-estimator-btn {
        font-size: 12px;
    }

    .home-estimator-input {
        font-size: 16px;
    }

    .home-estimator-label {
        padding-left: 10px;
    }

    .home-estimator-icon {
        width: 32px;
    }

    .home-estimator-icon svg {
        width: 18px;
        height: 18px;
    }

    .home-estimator-when {
        grid-template-columns: 72px 1fr 1fr 32px;
    }

    .home-estimator-toggle {
        height: 32px;
    }

    .home-estimator-later {
        gap: 6px;
    }

    .home-estimator-later input {
        min-height: 38px;
        padding: 0 10px;
        font-size: 16px;
    }

    .home-estimator-actions {
        gap: 6px;
    }

    .home-estimator-btn {
        min-height: 42px;
        padding: 0 8px;
    }

    .home-estimator-result {
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.35;
        box-shadow: 0 6px 16px rgba(0, 35, 72, .12);
    }

    .home-estimator-result strong {
        font-size: 15px;
    }

    .home-estimator-result span {
        color: #334155;
    }

    .home-estimator-suggestions {
        left: -72px;
        right: -32px;
        max-height: 46vh;
    }

    .home-estimator-suggestion {
        padding: 10px 12px;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 8px;
    }

    .home-estimator-suggestion-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}
