/* ---------- Get a Quote modal (see quote-form.js) ---------- */
.qf {
    --qf-blue: #075cff;
    --qf-blue-dark: #0047cc;
    --qf-ink: #161c2d;
    --qf-muted: #666;
    --qf-field: #f5f7fb;
    --qf-line: #e7e9ed;
    --qf-error: #d92d20;

    margin: auto; /* site reset sets margin:0 on everything; dialogs centre via auto margins */
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--qf-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
}
.qf *, .qf *::before, .qf *::after { box-sizing: border-box; }
.qf::backdrop { background: rgba(0, 0, 0, 0.75); }
.qf[open] { animation: qf-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.qf[open]::backdrop { animation: qf-fade 0.3s ease; }
@keyframes qf-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes qf-fade { from { opacity: 0; } to { opacity: 1; } }
html.qf-lock { overflow: hidden; }

/* Black bar with the white logo, like the site header */
.qf-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px 0 40px;
    background: #000;
}
.qf-bar img { display: block; height: 26px; width: auto; }
.qf-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.qf-close:hover { background: rgba(255, 255, 255, 0.12); }
.qf-close:focus-visible { outline: 2px solid var(--qf-blue); outline-offset: 2px; }

.qf-body { padding: 44px 40px 40px; }

.qf-label {
    color: var(--qf-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.625px;
    margin: 0 0 16px;
}
.qf-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0;
}
.qf-title em {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: var(--qf-blue);
    font-size: 1.1em;
    letter-spacing: -0.5px;
}
.qf-sub {
    font-size: 17px;
    color: var(--qf-muted);
    letter-spacing: -0.2px;
    margin: 12px 0 32px;
}

.qf-form { display: grid; gap: 12px; }
.qf-field { position: relative; }

.qf-input, .qf-select, .qf-textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--qf-ink);
    background: var(--qf-field);
    border: 1px solid var(--qf-line);
    border-radius: 8px;
    padding: 17px 20px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.qf-input::placeholder, .qf-textarea::placeholder { color: #8a90a0; opacity: 1; }
.qf-input:hover, .qf-select:hover, .qf-textarea:hover { border-color: #d3d7df; }
.qf-input:focus, .qf-select:focus, .qf-textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--qf-blue);
    box-shadow: 0 0 0 4px rgba(7, 92, 255, 0.12);
}
.qf-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }

.qf-phone { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.qf-select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23161c2d' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.qf-invalid { border-color: var(--qf-error) !important; }
.qf-err { display: block; font-size: 13px; color: var(--qf-error); margin: 6px 2px 0; }
.qf-err:empty { display: none; }

.qf-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    font-size: 15px;
    color: var(--qf-muted);
    letter-spacing: -0.1px;
    cursor: pointer;
    user-select: none;
}
.qf-consent input { position: absolute; opacity: 0; pointer-events: none; }
.qf-check {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border: 2px solid #c9ced8;
    border-radius: 4px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s;
}
.qf-check svg { opacity: 0; transition: opacity 0.15s; }
.qf-consent input:checked + .qf-check { background: var(--qf-blue); border-color: var(--qf-blue); }
.qf-consent input:checked + .qf-check svg { opacity: 1; }
.qf-consent input:focus-visible + .qf-check { outline: 2px solid var(--qf-blue); outline-offset: 2px; }
.qf-consent a { color: var(--qf-blue); text-decoration: none; }
.qf-consent a:hover { text-decoration: underline; }

/* Honeypot — invisible to people, bots fill it in */
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 18px 40px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #fff;
    background: var(--qf-blue);
    border: 2px solid var(--qf-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.qf-submit:hover { background: var(--qf-blue-dark); border-color: var(--qf-blue-dark); transform: translateY(-2px); }
.qf-submit:focus-visible { outline: 2px solid var(--qf-ink); outline-offset: 3px; }
.qf-submit[disabled] { cursor: progress; opacity: 0.8; transform: none; }
.qf-spin {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: qf-rot 0.7s linear infinite;
}
.qf-submit.is-loading .qf-spin { display: block; }
.qf-submit.is-loading .qf-arrow { display: none; }
@keyframes qf-rot { to { transform: rotate(360deg); } }

.qf-status { font-size: 14px; color: var(--qf-error); text-align: center; margin: 4px 0 0; }
.qf-status:empty { display: none; }
.qf-status a { color: inherit; }

.qf-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--qf-muted);
    margin: 4px 0 0;
}
.qf-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; }

.qf-done { text-align: center; padding: 24px 0 8px; }
.qf-done-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--qf-blue);
    color: #fff;
}
.qf-done .qf-sub { margin-bottom: 32px; }
.qf-done .qf-submit { width: auto; }

.qf [hidden] { display: none !important; }

@media (max-width: 600px) {
    .qf-bar { height: 60px; padding: 0 12px 0 20px; }
    .qf-bar img { height: 22px; }
    .qf-body { padding: 32px 20px 24px; }
    .qf-title { font-size: 30px; letter-spacing: -0.8px; }
    .qf-sub { font-size: 16px; margin-bottom: 24px; }
    .qf-phone { grid-template-columns: 116px 1fr; gap: 10px; }
    .qf-select { padding-left: 14px; padding-right: 30px; background-position: right 12px center; }
    .qf-input, .qf-textarea { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .qf[open], .qf[open]::backdrop { animation: none; }
    .qf-submit:hover { transform: none; }
}
