.estimate-page .page-heading { margin-bottom: 1.3rem; }

.estimate-notice,
.estimate-progress,
.estimate-form {
    max-width: 56rem;
}

.estimate-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
    padding: 0;
    list-style: none;
    margin: 1.3rem 0 1rem;
}

.estimate-progress li {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .55rem;
    font-weight: 650;
    line-height: 1.2;
    border-bottom: 2px solid var(--line);
    overflow-wrap: anywhere;
}

.estimate-progress li[aria-current] {
    border-color: #aa4b23;
    color: #8c4120;
}

.estimate-progress span {
    display: grid;
    place-items: center;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #e7ebe8;
}

.estimate-progress li[aria-current] span {
    background: #18232d;
    color: #fff;
}

.estimate-step h2 { margin: 0 0 1rem; }

.estimate-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1rem;
}

.estimate-wide { grid-column: 1 / -1; }
.estimate-fields label { min-width: 0; font-weight: 650; }
.estimate-fields :is(input, select, textarea) { min-width: 0; font-weight: 400; }
.estimate-fields [aria-invalid="true"] { border-color: #a02616; }
.estimate-optional, .estimate-hint { color: var(--muted); font-size: .9rem; font-weight: 400; }
.estimate-hint { margin: 0; }

.estimate-review {
    margin-top: 1.4rem;
    padding: clamp(.85rem, 2vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
}

.estimate-review dl { margin: 0; }
.estimate-review dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: .15rem .7rem;
    padding: .5rem 0;
    border-top: 1px solid var(--line);
}

.estimate-review dt { font-weight: 700; }
.estimate-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.estimate-step .check { margin-top: 1rem; }
.estimate-step .check input { flex: 0 0 1.2rem; }
.estimate-form [hidden] { display: none; }

@media (max-width: 620px) {
    .estimate-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .estimate-fields, .estimate-review dl > div { grid-template-columns: minmax(0, 1fr); }
    .estimate-actions .button { flex: 1 1 auto; }
}
