/* =========================================================
   Request-a-Quote popup — shared modal triggered by the "Request a
   Quote" buttons on the Pricing sections of Home and Our Services (the
   three tiers on both pages had no real link in the source data -
   href="#" on the live site - so rather than leave them dead, clicking
   one now opens this form instead).

   Same [hidden]-toggle convention as .hec-fp-popup (see front-page.css)
   - never opacity/visibility tricks, el.hidden is the only thing gating
   visibility so a delayed/blocked script can't leave the trigger
   buttons doing nothing without at least degrading to a normal, if
   inert, link.

   Visual treatment is deliberately different from the CTA popup: a
   glassmorphism card (semi-transparent, blurred) rather than a solid
   gradient, with a heavy bottom-weighted shadow and a blurred/dimmed
   backdrop behind it.
   ========================================================= */
.hec-quote-popup__overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.6);
    z-index: 9998;
}
.hec-quote-popup__box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: min(92vw, 480px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.5em 2em;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: rgba(16, 16, 20, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    /* Strong, bottom-weighted shadow - a tall vertical offset with no
       spread reads as the card "floating" above the page, tinted with
       the brand purple rather than a flat black. */
    box-shadow:
        0 45px 80px -20px rgba(0, 0, 0, 0.75),
        0 25px 45px -10px rgba(165, 2, 168, 0.35);
}
.hec-quote-popup__close {
    position: absolute;
    top: 0.75em;
    right: 0.75em;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: var(--fp-accent) !important;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.hec-quote-popup__close:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
}
.hec-quote-popup__title {
    font-family: var(--fp-heading-font);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--fp-accent);
    margin: 0 0 0.3em;
}
.hec-quote-popup__tier {
    display: inline-block;
    font-family: var(--fp-body-font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--fp-secondary, #A502A8);
    background-color: rgba(165, 2, 168, 0.15);
    border: 1px solid rgba(165, 2, 168, 0.4);
    border-radius: 999px;
    padding: 0.3em 0.9em;
    margin-bottom: 1.2em;
}
.hec-quote-popup__field {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    margin-bottom: 1.1em;
    text-align: left;
}
.hec-quote-popup__field label {
    font-family: var(--fp-body-font);
    font-size: 0.85rem;
    color: var(--fp-text, #FAFAFA);
    opacity: 0.85;
}
.hec-quote-popup__field input,
.hec-quote-popup__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7em 0.9em;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--fp-accent, #FFFFFF);
    font-family: var(--fp-body-font, 'Inter', sans-serif);
    font-size: 0.9rem;
}
.hec-quote-popup__field input::placeholder,
.hec-quote-popup__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.hec-quote-popup__field textarea {
    min-height: 90px;
    resize: vertical;
}
.hec-quote-popup__box .hec-fp-button {
    width: 100%;
    justify-content: center;
    margin-top: 0.5em;
}
.hec-quote-popup__msg {
    margin: 1em 0 0;
    font-family: var(--fp-body-font);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fp-text, #FAFAFA);
    text-align: center;
}
.hec-quote-popup__msg.is-success {
    color: #4ade80;
}
.hec-quote-popup__msg.is-error {
    color: #f87171;
}

@media (max-width: 575px) {
    .hec-quote-popup__box { padding: 2em 1.5em; }
}
