.cq-lock {
    overflow: hidden !important;
}

.cq-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(8px);
}

.cq-modal {
    position: relative;
    width: min(680px, 100%);
    min-height: 200px;
    max-height: min(760px, calc(100dvh - 48px));
    overflow: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    background: #111;
    box-shadow: 0 28px 100px rgba(0,0,0,.6);
    color: #f5f5f3;
    font-family: inherit;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.24) transparent;
}

.cq-modal::-webkit-scrollbar {
    width: 6px;
}

.cq-modal::-webkit-scrollbar-track {
    background: transparent;
}

.cq-modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.22);
    border: 0;
    border-radius: 0;
}

.cq-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.34);
}

.cq-inner {
    padding: 22px 48px;
}

.cq-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.cq-close:hover {
    background: rgba(255,255,255,.08);
}

.cq-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.cq-title {
    margin: 0;
    max-width: 590px;
    padding-right: 36px;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.15;
    font-weight: 500;
    text-transform: none;
}

.cq-subtitle {
    margin: 0;
    max-width: 590px;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
}


.cq-options {
    display: grid;
    gap: 0;
    margin-top: 22px;
}

.cq-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: none;
}


.cq-option > input[data-cq-option] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #d6bb85;
    cursor: pointer;
}

.cq-option-label {
    line-height: 1.4;
    cursor: pointer;
}

.cq-custom {
    grid-column: 2;
    width: 100%;
    height: 50px;
    min-height: 50px;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 0;
    outline: 0;
    background: #181818;
    color: #fff;
    font: inherit;
    resize: vertical;
}

.cq-custom:focus,
.cq-textarea:focus,
.cq-contact-input:focus {
    border-color: rgba(214,187,133,.72);
}

.cq-textarea,
.cq-contact-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 0;
    outline: 0;
    background: #181818;
    color: #fff;
    font: inherit;
}

.cq-textarea {
    min-height: 130px;
    resize: vertical;
}

.cq-contact-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.cq-field-label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.cq-contact-list .cq-contact-input {
    margin-top: 0;
}

textarea.cq-contact-input {
    min-height: 110px;
    resize: vertical;
}

.cq-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.cq-button {
    appearance: none;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 24px;
    border: 1px solid #d6bb85;
    border-radius: 0;
    background: #d6bb85;
    color: #0a0a0a;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cq-button:hover {
    filter: brightness(1.05);
}

.cq-button:disabled {
    opacity: .55;
    cursor: wait;
}

.cq-error {
    margin-top: 16px;
    color: #ff8f8f;
    font-size: 14px;
    line-height: 1.45;
}

.cq-progress {
    height: 2px;
    margin: 0 48px;
    background: rgba(255,255,255,.08);
}

.cq-progress-bar {
    height: 100%;
    background: #d6bb85;
    transition: width .2s ease;
}

.cq-required {
    color: #d6bb85;
}

.cq-title .cq-required {
    display: none;
}

.cq-button,
.cq-close,
.cq-option-label,
.cq-contact-input,
.cq-textarea,
.cq-custom {
    touch-action: manipulation;
}

@media (max-width: 640px) {
    .cq-overlay {
        min-height: 100dvh;
        align-items: flex-end;
        padding: 0;
    }

    .cq-modal {
        width: 100%;
        max-height: 94dvh;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cq-inner {
        padding: 22px max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    }

    .cq-progress {
        margin: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px));
    }

    .cq-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .cq-options {
        gap: 0;
        margin-top: 18px;
    }

    .cq-option {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .cq-actions {
        margin-top: 24px;
    }

    .cq-button {
        width: auto;
        min-width: 180px;
        min-height: 50px;
        margin: 0 auto;
    }

    .cq-close {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 380px) {
    .cq-button {
        width: 100%;
        min-width: 0;
    }
}
