/* ─── Estimate form ─── */
.estimate-price-range,
.estimate-invite {
    text-align: center;
}

.estimate-price-range {
    max-width: 44rem;
    margin: 0 auto 12px;
}

.price-section__cta {
    padding: 9px 16px;
    font-size: 0.82rem;
}

.estimate-invite {
    margin: 0 auto 22px;
    color: var(--primary-deep);
}

.estimate-form {
    max-width: 760px;
    margin: 0 auto;
}

.estimate-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.estimate-form__field {
    display: flex;
    flex-direction: column;
}

.estimate-form__field--full {
    margin-top: 14px;
}

.estimate-form__field label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.estimate-form__field input,
.estimate-form__field textarea,
.estimate-form__field select {
    width: 100%;
    border: 1px solid rgba(53, 74, 72, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    font-size: 0.98rem;
    background: rgba(250, 252, 251, 0.92);
    color: var(--ink);
    resize: vertical;
}

.estimate-form__field input:focus,
.estimate-form__field textarea:focus,
.estimate-form__field select:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
    background: rgba(255, 255, 255, 0.98);
}

.estimate-form__group-label {
    margin: 0 0 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.estimate-checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.estimate-checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--ink);
}

.estimate-checkbox-group input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.estimate-form__actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.estimate-form__message {
    margin: 0;
    text-align: center;
    color: var(--ink-soft);
}

.estimate-form__message.is-error {
    color: #a33a00;
}

.estimate-form__message.is-loading {
    color: var(--primary-deep);
}

/* ─── Estimate modal ─── */
.estimate-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.estimate-modal[hidden] {
    display: none !important;
}

.estimate-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 54, 53, 0.32);
    backdrop-filter: blur(8px);
}

.estimate-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 860px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.estimate-modal__content {
    position: relative;
    margin-bottom: 0;
    border: 1px solid rgba(53, 74, 72, 0.14);
    background: rgba(247, 250, 248, 0.94);
    box-shadow: 0 30px 80px rgba(43, 58, 56, 0.18);
    backdrop-filter: blur(16px);
}

.estimate-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding-right: 56px;
}

.estimate-modal__header .estimate-invite {
    margin-bottom: 0;
}

.estimate-modal__view[hidden] {
    display: none !important;
}

.estimate-result {
    text-align: center;
}

.estimate-result .estimate-modal__header {
    display: block;
    padding-right: 0;
}

.estimate-result__amount {
    margin: 8px 0 18px;
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.95;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.estimate-result__summary {
    max-width: 40rem;
    margin: 0 auto;
}

.estimate-result__summary p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.estimate-result__actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.estimate-result__edit {
    padding: 10px 18px;
    border: 1px solid rgba(53, 74, 72, 0.16);
    border-radius: 999px;
    background: rgba(239, 245, 241, 0.92);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.estimate-result__edit:hover,
.estimate-result__edit:focus-visible {
    background: rgba(231, 239, 235, 0.98);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.14);
}

.estimate-result__cta {
    min-width: 190px;
}

.estimate-result__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 10px 18px;
    border: 1px solid rgba(53, 74, 72, 0.16);
    border-radius: 999px;
    background: rgba(247, 250, 248, 0.88);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    outline: none;
}

.estimate-result__secondary:hover,
.estimate-result__secondary:focus-visible {
    background: rgba(231, 239, 235, 0.98);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.14);
}

.estimate-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(53, 74, 72, 0.14);
    border-radius: 999px;
    background: rgba(239, 245, 241, 0.92);
    color: var(--primary-deep);
    font: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    outline: none;
}

.estimate-modal__close:hover,
.estimate-modal__close:focus-visible {
    background: rgba(231, 239, 235, 0.98);
}

.estimate-modal__close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.18);
}

body.has-modal-open {
    overflow: hidden;
}

.contact-form__status {
    margin-top: 1rem;
    text-align: center;
}

.contact-form__status--success {
    color: #1f6b3a;
}

.contact-form__status--error {
    color: #9b2c2c;
}

@media (max-width: 600px) {
    .estimate-form__grid {
        grid-template-columns: 1fr;
    }

    .estimate-modal {
        padding: 12px;
    }

    .estimate-modal__header {
        padding-right: 44px;
    }

    .estimate-modal__dialog {
        max-height: calc(100vh - 24px);
    }
}
