/* Request an Estimate pop-up. Uses the site's existing variables and .btn classes. */
html.ef-lock { overflow: hidden; }
.ef-dialog { border: 0; padding: 0; border-radius: 18px; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--white, #fff); color: var(--ink, #111); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.ef-dialog[open] { display: flex; flex-direction: column; }
.ef-dialog::backdrop { background: rgba(0,0,0,.6); }
.ef-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line, #d9d9d9); background: var(--white, #fff); }
.ef-head img { width: 40px; height: 40px; flex: none; }
.ef-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; flex: 1; }
.ef-head h2:focus { outline: none; }
.ef-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--grey, #f2f2f2); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--black, #000); }
.ef-close:hover { background: var(--black, #000); color: var(--white, #fff); }
.ef-body { overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ef-dialog :focus-visible { outline: 3px solid var(--teal, #2db0ac); outline-offset: 2px; }
.ef-dialog fieldset { border: 1px solid var(--line, #d9d9d9); border-radius: 12px; margin: 0 0 16px; padding: 12px 14px 4px; min-width: 0; }
.ef-dialog fieldset.ef-inner { border: 0; padding: 0; margin: 0; }
.ef-dialog legend { font-weight: 700; padding: 0 6px; }
.ef-inner legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.ef-field { margin-bottom: 14px; }
.ef-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.ef-dialog input[type=text], .ef-dialog input[type=email], .ef-dialog input[type=tel], .ef-dialog select, .ef-dialog textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink, #111); background: #fff; border: 2px solid #8a8a8a; border-radius: 10px; }
.ef-dialog textarea { resize: vertical; }
.ef-dialog input[type=range] { width: 100%; min-height: 44px; accent-color: var(--teal, #2db0ac); }
.ef-dialog output { font-weight: 400; color: var(--grey-mid, #6b6b6b); }
.ef-ends { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--grey-mid, #6b6b6b); }
.ef-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ef-radios, .ef-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ef-checks { flex-direction: column; }
.ef-radios label, .ef-checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; margin: 0; }
.ef-radios input, .ef-checks input { width: 22px; height: 22px; flex: none; accent-color: var(--teal, #2db0ac); }
[data-ef-extra][hidden] { display: none !important; }
.ef-checks em { font-style: normal; color: var(--grey-mid, #6b6b6b); font-size: .9rem; }
.ef-hint, .ef-hint-inline { color: var(--grey-mid, #6b6b6b); font-size: .9rem; margin: 2px 0 12px; }
.ef-blinds-note { margin: -2px 0 8px 32px; }
.ef-hint-inline { font-weight: 400; margin: 0; }
.ef-req { color: #b00020; }
.ef-err { color: #b00020; font-weight: 600; font-size: .92rem; margin: 4px 0 0; }
.has-error input:not([type=radio]):not([type=checkbox]):not([type=range]), .has-error select, .has-error textarea { border-color: #b00020; }
.ef-banner { background: #fdecea; border: 2px solid #b00020; color: #5f0011; border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.ef-notice { background: #eef7f7; border: 2px solid var(--teal, #2db0ac); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.ef-lead { margin-top: 0; }
.ef-disclaimer, .ef-alt { font-size: .92rem; color: var(--grey-mid, #6b6b6b); }
.ef-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ef-actions .btn { min-height: 48px; cursor: pointer; }
.ef-actions .btn[disabled] { opacity: .6; cursor: not-allowed; }
.ef-done h3 { margin-top: 0; font-size: 1.4rem; }
.ef-done h3:focus { outline: none; }
.ef-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ef-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .ef-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ef-row2 { grid-template-columns: 1fr; }
  .ef-actions .btn { flex: 1 1 100%; }
}
@media (forced-colors: active) { .ef-dialog { border: 2px solid CanvasText; } }

.ef-labelrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ef-labelrow label { margin: 0; }
.ef-help-btn { flex: none; width: 44px; height: 44px; margin: -6px 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font: inherit; font-weight: 800; color: var(--black, #000); position: relative; }
.ef-help-btn span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--black, #000); background: #fff; font-size: 1rem; line-height: 1; }
.ef-help-btn[aria-expanded="true"] span, .ef-help-btn:hover span { background: var(--black, #000); color: #fff; }
.ef-help { background: #eef7f7; border: 2px solid var(--teal, #2db0ac); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.ef-help p { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.ef-help-close { min-height: 44px; padding: 8px 16px; border: 2px solid var(--black, #000); border-radius: 999px; background: #fff; color: var(--black, #000); font: inherit; font-weight: 600; cursor: pointer; }
.ef-help-close:hover { background: var(--black, #000); color: #fff; }
.ef-dialog fieldset[hidden], .ef-dialog .ef-field[hidden] { display: none !important; }
