.fs-estimate-page {
    max-width: 730px;
}

.fs .fs-estimate-layout {
    align-items: start;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.fs-estimate-layout #service-areas {
    margin-top: 32px;
}

.fs-estimate {
    min-width: 0;
    padding: clamp(15px, 3vw, 32px);
    border: 1px solid #656052;
    border-radius: 16px;
    background: var(--ink-2);
    color: var(--fg-on-ink);
}

.fs-estimate[hidden],
.fs-estimate [hidden],
.fs-estimate-fallback[hidden] {
    display: none;
}

.fs-estimate-progress {
    display: grid;
    gap: 7px;
    margin-bottom: clamp(15px, 2.4vw, 24px);
    color: #d4ccbd;
    font-size: 12px;
    font-weight: 740;
}

.fs-estimate-progress progress {
    appearance: none;
    width: 100%;
    height: 5px;
    border: 0;
    border-radius: 5px;
    background: #575348;
    overflow: hidden;
    accent-color: var(--gold);
}

.fs-estimate-progress progress::-webkit-progress-bar { background: #575348; }
.fs-estimate-progress progress::-webkit-progress-value { background: var(--gold); }
.fs-estimate-progress progress::-moz-progress-bar { background: var(--gold); }

.fs .fs-estimate h3 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.fs .fs-estimate section > p {
    margin: 10px 0 0;
    color: #d4ccbd;
    font-size: 13px;
}

.fs-estimate-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 12px 0 0;
    min-width: 0;
    border: 0;
}

.fs-estimate-jobs,
.fs-estimate-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fs-estimate-choice {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 7px 9px;
    border: 1px solid #71695c;
    border-radius: 8px;
    color: #faf4e8;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.27;
    cursor: pointer;
}

.fs-estimate-choice:has(input:checked) {
    border-color: var(--gold);
    background: #352c16;
}

.fs-estimate-choice input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--gold);
}

.fs-estimate-choice svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.fs-estimate-field {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
}

.fs-estimate-optional {
    color: #d4ccbd;
    font-size: 12px;
    font-weight: 500;
}

.fs .fs-estimate-field :is(input, textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin: 5px 0 0;
    padding: 10px 12px;
    border: 1px solid #817769;
    border-radius: 8px;
    background: #121212;
    color: #faf4e8;
    font: 500 16px/1.45 var(--f-body);
}

.fs-estimate-field textarea {
    resize: vertical;
}

.fs .fs-estimate-field textarea.fs-estimate-draft {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 13em;
    max-height: 24em;
    field-sizing: content;
}

.fs-estimate-actions,
.fs-estimate-review-actions {
    display: flex;
    gap: 8px;
    margin-top: 17px;
}

.fs-estimate-actions > button {
    flex: 1;
}

.fs button.fs-estimate-secondary {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #817769;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.25;
}

.fs button.fs-estimate-secondary:hover {
    border-color: var(--gold);
}

.fs .fs-estimate [data-estimate-next-label] {
    font-size: inherit;
}

.fs .fs-estimate-sms {
    margin-top: 12px;
    width: 100%;
}

.fs .fs-estimate :is(a, button, input, textarea):focus-visible {
    outline-color: var(--gold);
}

.fs-estimate-fallback a {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .fs .fs-estimate-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .fs-estimate-choice svg {
        width: 14px;
        height: 14px;
    }
}
