/* RFQ form finish — shared light-surface controls and recoverable error states. */

html body #quoteForm .rfq-details-toggle__indicator,
html body .inline-rfq #quoteForm .rfq-details-toggle__indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border: 1px solid rgba(29, 29, 31, 0.18) !important;
    border-radius: 999px !important;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    font-size: 18px !important;
    font-weight: 550 !important;
    line-height: 1 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: currentColor !important;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

html body #quoteForm .rfq-details-toggle[aria-expanded="true"] .rfq-details-toggle__indicator,
html body .inline-rfq #quoteForm .rfq-details-toggle[aria-expanded="true"] .rfq-details-toggle__indicator {
    border-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #ffffff !important;
}

html body .inline-rfq #quoteForm .rfq-details-toggle {
    min-height: 52px !important;
    gap: 14px !important;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
    html body .inline-rfq #quoteForm .rfq-details-toggle:hover {
        border-color: rgba(29, 29, 31, 0.42) !important;
        background: #f5f5f7 !important;
    }
}

html body .inline-rfq #quoteForm .rfq-optional-details:not([hidden]) {
    display: block !important;
    padding: 18px !important;
    border: 1px solid #d7dce2 !important;
    border-radius: 14px !important;
    background: #fafafa !important;
}

html body .inline-rfq #quoteForm .field-error:empty,
html body .inline-rfq #quoteForm .form-status:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
}

html body .inline-rfq #quoteForm .field-error:not(:empty) {
    display: block !important;
    min-height: 0 !important;
    margin: 7px 0 0 !important;
    color: #b42318 !important;
    font-size: 13px !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

html body .inline-rfq #quoteForm .form-status.is-visible:not(:empty) {
    display: block !important;
    margin: 2px 0 0 !important;
    padding: 12px 14px !important;
    border: 1px solid rgba(180, 35, 24, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(180, 35, 24, 0.06) !important;
    color: #8f1d16 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
}

html body .inline-rfq #quoteForm .privacy-consent {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 44px !important;
}

html body .inline-rfq #quoteForm .privacy-consent input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    margin: 2px 0 0 !important;
}

html body .inline-rfq #quoteForm .privacy-consent.has-error {
    padding: 10px 12px !important;
    border: 1px solid rgba(180, 35, 24, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(180, 35, 24, 0.04) !important;
}

@media (max-width: 760px) {
    html body.inline-rfq-in-view :is(.whatsapp-float, .back-to-top) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 12px, 0) !important;
    }

    html body .inline-rfq #quoteForm .rfq-optional-details:not([hidden]) {
        padding: 14px !important;
    }

    html body .inline-rfq #quoteForm .rfq-details-toggle {
        min-height: 50px !important;
        padding: 10px 11px 10px 14px !important;
        text-align: left !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body #quoteForm .rfq-details-toggle,
    html body #quoteForm .rfq-details-toggle__indicator {
        transition: none !important;
    }
}
