/* Approved form repairs: scoped to enquiries and the contact form. */
dialog.enquiry-popup {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 18px;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
    color: inherit;
}
dialog.enquiry-popup[open] { display: flex; }
dialog.enquiry-popup::backdrop { background: rgba(0, 0, 0, .6); }
.enquiry-popup .enquiry-popup-inner {
    width: min(100%, 760px);
    max-height: calc(100dvh - 36px);
    padding: 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}
.enquiry-popup #enquiry-title {
    margin: 0 48px 10px 0;
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.25;
}
.enquiry-popup .close-popup {
    top: 12px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    border: 0;
    border-radius: 4px;
    color: #164d46;
    background: #edf3f0;
    font-size: 28px;
    line-height: 1;
}
.enquiry-popup .enquiry-help,
.contact-form-fields .form-help {
    width: auto;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}
:is(.enquiry-form-fields, .contact-form-fields) .form-field { min-width: 0; }
:is(.enquiry-form-fields, .contact-form-fields) .form-field > label {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}
.enquiry-popup .form-grid { gap: 18px; }
.enquiry-popup .form-row { gap: 18px; }
.enquiry-popup :is(input, textarea) { min-width: 0; padding: 12px 14px; }
.enquiry-popup input[readonly] { background: #edf3f0; color: #164d46; }
.enquiry-popup textarea { min-height: 110px; height: 110px; resize: vertical; }
:is(.enquiry-form-fields, .contact-form-fields) .wpcf7-not-valid-tip {
    position: static;
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}
.contact-form-fields fieldset.form-radio {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.contact-form-fields fieldset.form-radio legend {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}
.contact-form-fields #contact-sms-help { margin: 15px 0 0; }
.wpcf7-form.sent .contact-form-fields { display: none; }
.enquiry-popup :focus-visible,
.contact-form-fields :focus-visible {
    outline: 3px solid #247064;
    outline-offset: 3px;
}
.enquire-now-btn.product-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}
@media (max-width: 540px) {
    .enquiry-popup .enquiry-popup-inner { padding: 20px; }
    .enquiry-popup .form-row,
    .contact-form-fields .form-row { grid-template-columns: minmax(0, 1fr); }
    .enquiry-popup .wpcf7-submit { width: 100%; min-height: 44px; }
}
