.quick-quote-trigger {
    position: fixed;
    z-index: 80;
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0 23px;
    border: 1px solid #bafe80;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 24% -12%, #f0ffd1 0%, transparent 60%),
        radial-gradient(ellipse at 85% 105%, #bff943 0%, transparent 60%),
        linear-gradient(160deg, #b9f360 14%, #76c629 62%, #9fe735);
    box-shadow: inset 0 2px 5px #efffd699, inset 0 -3px 6px #357b3450, 0 4px 18px #131b0e80;
    color: #142305;
    font: 700 16px/1.2 system-ui, sans-serif;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}

.quick-quote-trigger:hover {
    filter: brightness(1.09);
    transform: translateY(-2px);
}

.quick-quote-trigger:focus-visible,
.quick-quote :focus-visible {
    outline: 2px solid #b6f46e;
    outline-offset: 3px;
}

.quick-quote {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(calc(100% - 28px), 510px);
    max-height: calc(100% - 28px);
    margin: auto;
    padding: clamp(17px, 4vw, 27px);
    border: 1px solid #4d593e;
    border-radius: 19px;
    background: #171b15;
    color: #f5f7f2;
    color-scheme: dark;
    font: 400 16px/1.4 system-ui, sans-serif;
    overflow: auto;
    overscroll-behavior: contain;
}

.quick-quote::backdrop {
    background: rgb(0 0 0 / 72%);
}

html:has(.quick-quote[open]) {
    overflow: hidden;
}

.quick-quote__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.quick-quote__heading h2 {
    margin: 0;
    color: #cbfc8d;
    font: 750 25px/1.2 system-ui, sans-serif;
}

.quick-quote__close,
.quick-quote__submit {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quick-quote__close {
    min-width: 44px;
    background: #30382c;
    color: inherit;
    font-size: 25px;
}

.quick-quote__submit {
    padding: 0 16px;
    background: #bbf47e;
    color: #142305;
}

.quick-quote__submit:disabled {
    opacity: .7;
    cursor: wait;
}

.quick-quote__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-quote label {
    display: block;
    margin: 0 0 12px;
    font-weight: 600;
}

.quick-quote input,
.quick-quote textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-top: 5px;
    padding: 9px;
    border: 1px solid #677460;
    border-radius: 7px;
    background: #242b22;
    color: inherit;
    font: 400 16px/1.3 system-ui, sans-serif;
}

.quick-quote textarea {
    resize: vertical;
}

.quick-quote__hint {
    color: #c6d0bf;
    font-size: 13px;
    font-weight: 400;
}

.quick-quote__error,
.quick-quote__success {
    margin: 0 0 12px;
}

.quick-quote__error {
    color: #ffb4a8;
}

.quick-quote__success {
    color: #cbfc8d;
}

.quick-quote__error:empty,
.quick-quote__success:empty {
    margin: 0;
}

@media (max-width: 480px) {
    .quick-quote__fields {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-quote-trigger {
        transition: none;
    }

    .quick-quote-trigger:hover {
        transform: none;
    }
}
