/* Dialogs for HubSpot meetings and the quote form (hubspot.js). */
/* In layer components (theme inc/layers.php): after main.css component rules on ties, as when unlayered. */
@layer components {
.grc-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--white); color: inherit; box-shadow: 0 24px 64px var(--shade-a25); overflow: auto; }
.grc-dialog::backdrop { background: var(--shade-a55); }
.grc-dialog--quote { width: min(var(--modal-w-sm), calc(100vw - 32px)); } /* wider, so the form needs no scrolling (owner, 2026-11-20) */
.grc-dialog__close { position: sticky; top: 8px; float: right; margin: 8px 8px -48px 0; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-strong); font-size: var(--fs-3xl); line-height: 1; cursor: pointer; }
.grc-dialog__close:hover, .grc-dialog__close:focus-visible { background: var(--line); }
.grc-dialog__frame { display: block; width: 100%; height: min(720px, calc(100dvh - 64px)); border: 0; }
.grc-dialog .lp-form { max-width: none; border: 0; box-shadow: none; border-radius: 0; }
.lp-form__done { display: grid; gap: 12px; outline: none; }
.lp-form__done h2 { font-size: var(--fs-lead); }
@media (max-width: 640px) {
	.grc-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
	.grc-dialog--quote { height: fit-content; max-height: 100dvh; }
	.grc-dialog__frame { height: calc(100dvh - 8px); }
}
.grc-dialog--meet:has(.grc-lead) { width: min(520px, calc(100vw - 32px)); height: fit-content; }
.grc-lead { display: grid; gap: 14px; padding: 36px 32px 28px; }
.grc-lead h2 { margin: 0; font-size: var(--fs-2xl); font-weight: 600; }
.grc-lead__intro { margin: -6px 0 4px; color: var(--ink-2, var(--ink-2)); font-size: var(--fs-md); }
.grc-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grc-lead label { display: grid; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2, var(--ink-2)); }
.grc-lead input, .grc-lead textarea { font: inherit; font-weight: 400; font-size: var(--fs-md); padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; min-height: 44px; width: 100%; background: var(--white); color: inherit; }
.grc-lead input:focus, .grc-lead textarea:focus { outline: 2px solid var(--accent, var(--accent)); outline-offset: 1px; }
.grc-lead__err { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--red-lt); color: var(--red-dk); font-size: var(--fs-small); }
.grc-lead__fine { margin: 0; font-size: var(--fs-2xs); color: var(--ink-3, var(--ink-3)); }
@media (max-width: 640px) { .grc-dialog--meet:has(.grc-lead) { height: 100dvh; } .grc-lead { padding: 56px 20px 24px; } .grc-lead__row { grid-template-columns: 1fr; } }
}
