/* Quick quote strip — full-width lead capture under company strip */
.qq-strip {
    font-family: Inter, system-ui, sans-serif;
    background: #0b5d57;
    color: #fff;
    padding: 14px var(--site-gutter, 40px);
    border: 0;
    box-shadow: none;
}

.qq-strip-inner {
    width: 100%;
    max-width: var(--site-max, 1360px);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.qq-heading {
    flex: 1;
    min-width: 0;
}

.qq-heading-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.qq-heading-sub {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #cfe8e5;
    line-height: 1.35;
}

.qq-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.qq-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 190px;
    flex-shrink: 0;
}

.qq-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.qq-input {
    height: 42px;
    width: 100%;
    border: 0;
    background: #fff;
    color: #10201f;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    padding: 0 12px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

select.qq-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2310201f' d='M1.2 1.3 6 6.1l4.8-4.8 1.1 1.1L6 8.3.1 2.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 28px;
    cursor: pointer;
}

.qq-input::placeholder {
    color: #8a9a98;
}

.qq-input:focus {
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.55);
}

.qq-error {
    display: none;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #ffc9c4;
    line-height: 1.3;
}

.qq-field.is-invalid .qq-error {
    display: block;
}

.qq-field.is-invalid .qq-input {
    box-shadow: 0 0 0 2px #ff8a80;
}

.qq-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.qq-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.qq-btn:focus-visible {
    outline: 3px solid #f2a900;
    outline-offset: 2px;
}

.qq-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.qq-btn-primary {
    background: #f2a900;
    color: #10201f;
    border: 0;
}

.qq-btn-primary:hover:not(:disabled) {
    background: #ffb814;
}

.qq-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}

.qq-btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.qq-success {
    display: none;
    flex: 1;
    align-items: center;
    min-height: 42px;
    font-size: 15px;
    font-weight: 600;
    color: #dcf3e6;
    line-height: 1.4;
}

.qq-strip.is-done .qq-form,
.qq-strip.is-done .qq-heading {
    display: none;
}

.qq-strip.is-done .qq-success {
    display: flex;
}

.qq-mobile-toggle {
    display: none;
}

/* Tablet — avoid horizontal overflow of fixed-width fields */
@media (max-width: 1024px) and (min-width: 768px) {
    .qq-strip {
        padding: 14px var(--site-gutter, 24px);
    }

    .qq-strip-inner {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 12px;
    }

    .qq-heading {
        flex: 1 1 100%;
    }

    .qq-form {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
        gap: 12px;
        flex-shrink: 1;
    }

    .qq-field {
        width: auto;
        min-width: 0;
    }

    .qq-actions {
        grid-column: 1 / -1;
        gap: 10px;
    }

    .qq-btn {
        flex: 1;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .qq-strip {
        padding: 14px var(--site-gutter, 16px);
    }

    .qq-strip-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .qq-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .qq-field {
        width: 100%;
    }

    .qq-actions {
        width: 100%;
        gap: 10px;
    }

    .qq-btn {
        flex: 1;
    }

    /* Collapsed sticky CTA that expands the form */
    .qq-strip.is-collapsed {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        padding: 10px 16px;
        box-shadow: 0 -6px 20px rgba(7, 59, 55, 0.2);
    }

    .qq-strip.is-collapsed .qq-heading,
    .qq-strip.is-collapsed .qq-form,
    .qq-strip.is-collapsed .qq-success {
        display: none;
    }

    .qq-strip.is-collapsed .qq-mobile-toggle {
        display: flex;
        width: 100%;
    }

    .qq-strip.is-expanded-mobile .qq-mobile-toggle {
        display: none;
    }

    .qq-strip.is-expanded-mobile {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        max-height: min(90vh, 520px);
        overflow-y: auto;
        padding-bottom: 18px;
        box-shadow: 0 -8px 28px rgba(7, 59, 55, 0.28);
    }

    body.qq-mobile-open {
        padding-bottom: 72px;
    }
}
