/* Price estimate: floating button + dialog (views/partials/landing/quote.php, js/quote.js). */
:root { --nq-pink: #ee86ab; --nq-pink-d: #d9578a; --nq-ink: #2b1420; --nq-mut: #7b6470; --nq-line: #ecdde3; --nq-bg: #fff; --nq-soft: #fdf3f7; }

.nq-fab {
    position: fixed; right: 18px; bottom: 22px; z-index: 900;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 20px 13px 16px; border: 0; border-radius: 999px; cursor: pointer;
    font: 700 15px/1 inherit; color: #3a1426;
    background: linear-gradient(135deg, #ffc2d6, #ee86ab);
    box-shadow: 0 10px 30px rgba(238, 134, 171, .5), 0 2px 8px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nq-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(238, 134, 171, .6), 0 2px 8px rgba(0, 0, 0, .25); }
.nq-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.nq-open .nq-fab { display: none; }
html.nq-open { overflow: hidden; }

.nq-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.nq-modal[hidden] { display: none; }
.nq-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 14, .72); }
.nq-panel {
    position: relative; width: min(1240px, 100%); max-height: calc(100vh - 24px); overflow: auto;
    background: var(--nq-bg); color: var(--nq-ink); color-scheme: light; border-radius: 20px; padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5); outline: 0;
}
.nq-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px; background: linear-gradient(135deg, #ffd3e2, #f59bbb); border-radius: 20px 20px 0 0;
}
.nq-title, .nq-done-title { margin: 0; font-size: 21px; font-weight: 700; color: #3a1426; }
.nq-title::before { content: "✦ "; opacity: .65; }
.nq-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); color: #3a1426; font-size: 26px; line-height: 1; cursor: pointer; }
.nq-x:hover { background: #fff; }
.nq-form { padding: 16px 22px 18px; }
.nq-done { padding: 28px 24px 30px; }

.nq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.nq-set { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.nq-set legend { display: flex; align-items: center; font-weight: 700; font-size: 15.5px; margin-bottom: 10px; padding: 0; color: var(--nq-ink); }

.nq-step {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px;
    border-radius: 50%; background: var(--nq-pink-d); color: #fff; font-size: 13px; font-weight: 700;
}
.nq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.nq-select { position: relative; }
.nq-select::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
    border-right: 2px solid var(--nq-pink-d); border-bottom: 2px solid var(--nq-pink-d); transform: rotate(45deg);
}
.nq-select select {
    width: 100%; appearance: none; -webkit-appearance: none; padding: 13px 40px 13px 14px; font: 600 15px/1.3 inherit;
    color: var(--nq-ink); background: #fff; border: 1.5px solid var(--nq-pink); border-radius: 12px; box-sizing: border-box; cursor: pointer;
    text-overflow: ellipsis;
}
.nq-select select:hover { background: var(--nq-soft); }
.nq-select select:focus { outline: 0; border-color: var(--nq-pink-d); box-shadow: 0 0 0 3px rgba(238, 134, 171, .25); }
.nq-select option:disabled { color: #b9a5ae; }

.nq-picked { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.nq-pick {
    display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px;
    background: var(--nq-soft); border: 1.5px solid #f4cddc; border-left: 4px solid var(--nq-pink-d); border-radius: 12px;
}
.nq-pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nq-pick-text strong { font-size: 14.5px; color: var(--nq-ink); }
.nq-pick-text small { font-size: 12.5px; color: var(--nq-mut); }
.nq-pick-price { font-weight: 700; color: var(--nq-pink-d); font-size: 14px; text-align: right; }
.nq-pick-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--nq-mut); font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.nq-pick-x:hover { background: #f8dfe9; color: #c0334a; }
.nq-contact { font-style: normal; color: #8a5a00 !important; background: #fff3cd; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.nq-field { display: block; margin-bottom: 4px; }
.nq-field > span { display: block; font-size: 12.5px; color: var(--nq-mut); margin: 6px 0 3px; }
.nq-field input, .nq-field textarea, .nq-search input {
    width: 100%; padding: 8px 11px; font: 14.5px/1.4 inherit; color: var(--nq-ink); background: #fff;
    border: 1.5px solid var(--nq-line); border-radius: 10px; box-sizing: border-box;
}
.nq-field textarea { resize: none; }
.nq-field input:focus, .nq-field textarea:focus, .nq-search input:focus { outline: 0; border-color: var(--nq-pink-d); box-shadow: 0 0 0 3px rgba(238, 134, 171, .25); }
.nq-field input.is-bad, .nq-field textarea.is-bad { border-color: #d6455d; }

.nq-search { display: flex; gap: 8px; }
.nq-btn { border: 0; border-radius: 10px; padding: 10px 16px; font: 700 14.5px/1 inherit; cursor: pointer; }
.nq-btn-line { background: var(--nq-soft); color: var(--nq-pink-d); border: 1.5px solid var(--nq-pink); }
.nq-btn-line:hover { background: #f8dfe9; }
.nq-btn-main { width: 100%; padding: 14px 18px; font-size: 16px; color: #3a1426; background: linear-gradient(135deg, #ffc2d6, #ee86ab); box-shadow: 0 8px 20px rgba(238, 134, 171, .4); }
.nq-btn-main:hover { filter: brightness(1.04); }
.nq-btn[disabled] { opacity: .6; cursor: progress; }
.nq-link { border: 0; background: none; padding: 0; color: var(--nq-pink-d); font: 600 13.5px/1.2 inherit; text-decoration: underline; cursor: pointer; }

.nq-results { list-style: none; margin: 8px 0 0; padding: 0; border: 1.5px solid var(--nq-line); border-radius: 10px; overflow: hidden; }
.nq-results[hidden] { display: none; }
.nq-results button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-top: 1px solid var(--nq-line); background: #fff; color: var(--nq-ink); font: 13.5px/1.4 inherit; cursor: pointer; }
.nq-results li:first-child button { border-top: 0; }
.nq-results button:hover, .nq-results button:focus-visible { background: var(--nq-soft); outline: 0; }
.nq-results .nq-none { padding: 10px 12px; color: var(--nq-mut); font-size: 13.5px; }

.nq-map { height: clamp(200px, 36vh, 300px); margin-top: 10px; border-radius: 12px; border: 1.5px solid var(--nq-line); overflow: hidden; isolation: isolate; background: #eef1f4; }
.nq-map-msg { position: absolute; inset: auto 8px 8px; z-index: 800; margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff3cd; color: #6b4e00; font-size: 13px; }
.nq-search { position: relative; }
.nq-mapbar { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0 4px; font-size: 12.5px; color: var(--nq-mut); }

.nq-est { background: var(--nq-soft); border: 1.5px solid #f4cddc; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.nq-est-empty { margin: 0; color: var(--nq-mut); font-size: 14px; }
.nq-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; }
.nq-row > span:last-child { white-space: nowrap; text-align: right; }
.nq-row small { display: block; color: var(--nq-mut); font-size: 12.5px; }
.nq-row-sub { color: var(--nq-mut); }
.nq-total { margin-top: 8px; padding-top: 8px; border-top: 1.5px dashed #f0b9cf; }
.nq-total strong { display: block; font-size: 13px; font-weight: 600; color: var(--nq-mut); }
/* one line, always: quote.js shrinks the figure until it fits the box */
.nq-total b { display: block; font-size: 20px; line-height: 1.25; color: var(--nq-pink-d); white-space: nowrap; }
.nq-warn { margin: 6px 0 0; padding: 6px 9px; line-height: 1.4; border-radius: 8px; background: #fff3cd; color: #6b4e00; font-size: 12.5px; }
.nq-hint { margin: 6px 0 0; color: var(--nq-mut); font-size: 13px; }

.nq-err { margin: 2px 0 6px; color: #c0334a; font-size: 13px; }
.nq-err[hidden] { display: none; }
.nq-err-form { font-weight: 600; margin: 0 0 8px; }
.nq-note { margin: 10px 0 0; color: var(--nq-mut); font-size: 12.5px; line-height: 1.5; }

.nq-done { text-align: center; padding: 14px 4px 6px; }
.nq-done[hidden] { display: none; }
.nq-done p { color: var(--nq-mut); margin: 8px 0 14px; }
.nq-done .nq-est { text-align: left; max-width: 460px; margin: 0 auto 16px; }
.nq-done .nq-btn-main { max-width: 260px; }

@media (max-width: 1080px) {
    .nq-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .nq-map { height: 240px; }
}
@media (max-width: 820px) {
    .nq-modal { padding: 0; align-items: flex-end; }
    .nq-panel { border-radius: 20px 20px 0 0; max-height: 94vh; }
    .nq-head { border-radius: 20px 20px 0 0; padding: 12px 16px; }
    .nq-form { padding: 14px 16px 20px; }
    .nq-map { height: 220px; }
    .nq-fab { right: 12px; bottom: 16px; padding: 12px 16px 12px 13px; }
    /* the send button stays in reach while the form scrolls */
    .nq-btn-main { position: sticky; bottom: 0; box-shadow: 0 -10px 18px rgba(255, 255, 255, .95), 0 8px 20px rgba(238, 134, 171, .4); }
}
