:root {
    --wcbq-primary: #ff6f4b;
    --wcbq-secondary: #ff9f29;
    --wcbq-accent: #e74f56;
    --wcbq-surface: #ffffff;
    --wcbq-text: #10284d;
    --wcbq-overlay: #0d1f38;
    --wcbq-backdrop-blur: blur(4px);
    --wcbq-button-radius: 12px;
    --wcbq-offset-x: 18px;
    --wcbq-offset-y: 18px;
}

.wcbq-modal,
.wcbq-modal * {
    box-sizing: border-box;
}

.wcbq-modal {
    font-family: "Manrope", "Segoe UI", sans-serif;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
}

.wcbq-modal[hidden] {
    display: none !important;
}

.wcbq-modal .wcbq-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 159, 41, 0.18), transparent 30%),
        radial-gradient(circle at 80% 100%, rgba(231, 79, 86, 0.18), transparent 28%),
        rgba(7, 16, 28, 0.76);
    backdrop-filter: var(--wcbq-backdrop-blur);
}

.wcbq-modal .wcbq-dialog {
    position: relative;
    width: min(1120px, calc(100% - 26px));
    min-height: 650px;
    max-height: calc(100vh - 24px);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    background: var(--wcbq-surface);
    color: var(--wcbq-text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    animation: wcbq-pop 0.3s ease forwards;
}

.wcbq-modal .wcbq-anim-off {
    animation: none;
    transform: none;
    opacity: 1;
}

.wcbq-modal .wcbq-anim-soft {
    animation-duration: 0.2s;
}

.wcbq-modal .wcbq-anim-intense {
    animation-duration: 0.42s;
}

.wcbq-modal .wcbq-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    color: #16345f;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d8e1f0;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: none;
}

.wcbq-modal .wcbq-close:hover {
    background: #fff;
}

.wcbq-modal .wcbq-visual {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    background: #08142a;
    isolation: isolate;
}

.wcbq-modal .wcbq-video,
.wcbq-modal .wcbq-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.wcbq-modal .wcbq-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 174, 75, 0.62), transparent 36%),
        linear-gradient(158deg, rgba(14, 34, 66, 0.95), rgba(8, 18, 37, 0.93));
}

.wcbq-modal .wcbq-icons {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 26px;
    z-index: 2;
}

.wcbq-modal .wcbq-icons span {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
    animation: wcbq-float 4.6s ease-in-out infinite;
}

.wcbq-modal .wcbq-icons span:nth-child(2) {
    animation-delay: 0.6s;
}

.wcbq-modal .wcbq-icons span:nth-child(3) {
    animation-delay: 1.3s;
}

.wcbq-modal .wcbq-icons span:nth-child(4) {
    animation-delay: 2s;
}

.wcbq-modal .wcbq-visual-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 26px;
    color: #fff;
    z-index: 2;
}

.wcbq-modal .wcbq-visual-text p {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.wcbq-modal .wcbq-visual-text h2 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.18;
    color: #fff;
    font-size: clamp(26px, 2.4vw, 40px);
}

.wcbq-modal .wcbq-content {
    padding: 28px 30px 20px;
    display: flex;
    flex-direction: column;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.wcbq-modal .wcbq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-right: 48px;
}

.wcbq-modal .wcbq-head h3 {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--wcbq-text);
    font-size: clamp(30px, 2.6vw, 44px);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.wcbq-modal #wcbqStepLabel {
    font-size: 19px;
    font-weight: 800;
    color: #3a557f;
}

.wcbq-modal .wcbq-progress {
    margin-top: 14px;
    border-radius: 999px;
    background: #e4eaf5;
    height: 8px;
    overflow: hidden;
}

.wcbq-modal .wcbq-progress span {
    display: block;
    height: 100%;
    width: 25%;
    border-radius: inherit;
    background: linear-gradient(130deg, var(--wcbq-secondary), var(--wcbq-primary), var(--wcbq-accent));
    transition: width 0.22s ease;
}

.wcbq-modal .wcbq-form {
    margin-top: 18px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcbq-modal .wcbq-step {
    display: none;
    animation: wcbq-step-in 0.2s ease;
}

.wcbq-modal .wcbq-step.is-active {
    display: block;
}

.wcbq-modal .wcbq-step h4 {
    margin: 0 0 14px;
    color: var(--wcbq-text);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.wcbq-modal .wcbq-step-hint {
    margin: -4px 0 10px;
    color: #4f678b;
    font-size: 14px;
}

.wcbq-modal .wcbq-step-inline-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d7e3f5;
    background: linear-gradient(180deg, #f6f9ff, #eef4ff);
    margin: 0 0 12px;
}

.wcbq-modal .wcbq-step-inline-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(120px, 24vh, 210px);
    object-fit: cover;
}

.wcbq-modal .wcbq-step label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 700;
    color: #2a446d;
    font-size: 14px;
}

.wcbq-modal .wcbq-step input,
.wcbq-modal .wcbq-step textarea {
    width: 100%;
    border: 1px solid #d9e2f2;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--wcbq-text);
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wcbq-modal .wcbq-step input:focus,
.wcbq-modal .wcbq-step textarea:focus {
    border-color: #96add2;
    box-shadow: 0 0 0 3px rgba(84, 124, 182, 0.14);
}

.wcbq-modal .wcbq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wcbq-modal .wcbq-list {
    display: grid;
    gap: 9px;
}

.wcbq-modal .wcbq-list.wcbq-2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wcbq-modal .wcbq-grid button,
.wcbq-modal .wcbq-list button {
    border: 1px solid #dce5f4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    color: #12335f;
    font-weight: 800;
    text-align: left;
    padding: 13px 14px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.25;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcbq-modal .wcbq-grid button:hover,
.wcbq-modal .wcbq-list button:hover {
    transform: translateY(-1px);
    border-color: #c2d2eb;
}

.wcbq-modal .wcbq-grid button.is-selected,
.wcbq-modal .wcbq-list button.is-selected {
    border-color: var(--wcbq-primary);
    background: linear-gradient(180deg, rgba(255, 159, 41, 0.08), rgba(231, 79, 86, 0.06));
    box-shadow: 0 10px 18px rgba(231, 79, 86, 0.14);
}

.wcbq-modal .wcbq-option-text {
    display: inline-block;
}

.wcbq-modal .wcbq-option-text-wrap {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #c8d7f0;
    border-radius: 12px;
    background: #f8fbff;
}

.wcbq-modal .wcbq-option-text-wrap[hidden] {
    display: none !important;
}

.wcbq-modal .wcbq-consent {
    margin-top: 10px;
    display: grid !important;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-weight: 500 !important;
    color: #2f486e;
}

.wcbq-modal .wcbq-consent input {
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
}

.wcbq-modal .wcbq-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.wcbq-modal .wcbq-error {
    margin: 8px 0 0;
    min-height: 22px;
    color: #cc3d3d;
    font-size: 14px;
    font-weight: 700;
}

.wcbq-modal .wcbq-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcbq-modal .wcbq-btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.wcbq-modal .wcbq-btn:hover {
    transform: translateY(-1px);
}

.wcbq-modal .wcbq-primary {
    color: #fff;
    background: linear-gradient(130deg, #ff9b2f, #ff7340, #ef4f5f);
    box-shadow: 0 12px 22px rgba(239, 79, 95, 0.25);
}

.wcbq-modal .wcbq-ghost {
    color: #173864;
    background: #edf3fd;
}

.wcbq-modal #wcbqSubmit {
    display: none;
}

.wcbq-modal .wcbq-success {
    margin: auto 0;
    text-align: center;
    padding: 10px 10px 24px;
}

.wcbq-modal .wcbq-success h4 {
    margin: 0 0 8px;
    font-size: clamp(28px, 2.2vw, 40px);
    color: var(--wcbq-text);
    line-height: 1.05;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.wcbq-modal .wcbq-success p {
    margin: 0 0 18px;
    color: #566b8d;
    font-size: 15px;
}

.wcbq-open {
    border: 0;
    border-radius: 999px;
    padding: 10px 22px 10px 12px;
    background:
        linear-gradient(120deg, #2d95ea 0%, #20c3df 52%, #18dba9 100%);
    color: #fff;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(21, 125, 187, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
    isolation: isolate;
}

.wcbq-open::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: -1;
}

.wcbq-open .wcbq-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-size: 19px;
    line-height: 1;
}

.wcbq-open span:last-child {
    font-size: 16px;
    line-height: 1;
}

.wcbq-open:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow:
        0 16px 28px rgba(21, 125, 187, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wcbq-open:active {
    transform: translateY(0);
}

.wcbq-floating-btn {
    backdrop-filter: blur(3px);
}

.wcbq-modal .wcbq-consent a {
    color: #1e5ab7;
    text-decoration: underline;
}

.wcbq-modal .wcbq-consent a:hover {
    color: #123f86;
}

.wcbq-inline-btn {
    display: inline-flex;
}

.wcbq-floating-btn {
    position: fixed;
    bottom: var(--wcbq-offset-y);
    z-index: 9998;
}

.wcbq-pos-right {
    right: var(--wcbq-offset-x);
}

.wcbq-pos-left {
    left: var(--wcbq-offset-x);
}

.wcbq-woo-wrap {
    margin-top: 12px;
}

.wcbq-woo-btn {
    width: 100%;
}

@keyframes wcbq-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes wcbq-pop {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes wcbq-step-in {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 980px) {
    .wcbq-modal .wcbq-dialog {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: calc(100vh - 16px);
        overflow: auto;
    }

    .wcbq-modal .wcbq-visual {
        min-height: 230px;
    }

    .wcbq-modal .wcbq-step h4 {
        font-size: 32px;
    }
}

@media (max-width: 760px) {
    .wcbq-modal .wcbq-content {
        padding: 18px 14px 14px;
    }

    .wcbq-modal .wcbq-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-right: 0;
    }

    .wcbq-modal #wcbqStepLabel {
        font-size: 15px;
    }

    .wcbq-modal .wcbq-grid,
    .wcbq-modal .wcbq-list.wcbq-2col {
        grid-template-columns: 1fr;
    }

    .wcbq-modal .wcbq-step h4 {
        font-size: 30px;
    }

    .wcbq-floating-btn {
        right: 12px;
        left: 12px;
        justify-content: center;
        bottom: 12px;
    }

    .wcbq-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 761px) {
    .wcbq-hide-desktop {
        display: none !important;
    }
}

.wcbq-dialog.wcbq-media-right {
    direction: rtl;
}

.wcbq-dialog.wcbq-media-right > .wcbq-visual,
.wcbq-dialog.wcbq-media-right > .wcbq-content {
    direction: ltr;
}

.wcbq-step-bg {
    position: absolute;
    inset: 0;
    opacity: 0.95;
    pointer-events: none;
    transition: background 0.35s ease;
}

.wcbq-step-media-image,
.wcbq-step-media-video,
.wcbq-step-media-icon {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wcbq-step-media-image,
.wcbq-step-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcbq-step-media-icon {
    display: grid;
    place-items: center;
    font-size: clamp(84px, 16vw, 190px);
    color: rgba(255, 255, 255, 0.2);
}

.wcbq-step-media-image[hidden],
.wcbq-step-media-video[hidden],
.wcbq-step-media-icon[hidden] {
    display: none !important;
}

.wcbq-step-media-off .wcbq-step-media-image,
.wcbq-step-media-off .wcbq-step-media-video,
.wcbq-step-media-off .wcbq-step-media-icon,
.wcbq-step-media-off .wcbq-step-bg {
    display: none !important;
}

@media (max-width: 980px) {
    .wcbq-modal .wcbq-backdrop,
    .wcbq-floating-btn {
        backdrop-filter: none;
    }

    .wcbq-modal .wcbq-dialog {
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    }

    .wcbq-modal .wcbq-icons span {
        animation: none;
        filter: none;
    }

    .wcbq-modal .wcbq-grid button:hover,
    .wcbq-modal .wcbq-list button:hover,
    .wcbq-open:hover,
    .wcbq-modal .wcbq-btn:hover {
        transform: none;
    }

    .wcbq-modal .wcbq-grid button.is-selected,
    .wcbq-modal .wcbq-list button.is-selected,
    .wcbq-modal .wcbq-primary {
        box-shadow: 0 8px 16px rgba(239, 79, 95, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcbq-modal .wcbq-dialog,
    .wcbq-modal .wcbq-step,
    .wcbq-modal .wcbq-progress span,
    .wcbq-modal .wcbq-grid button,
    .wcbq-modal .wcbq-list button,
    .wcbq-modal .wcbq-btn,
    .wcbq-open,
    .wcbq-modal .wcbq-icons span,
    .wcbq-step-bg {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .wcbq-modal .wcbq-backdrop,
    .wcbq-floating-btn {
        backdrop-filter: none !important;
    }

    .wcbq-modal .wcbq-icons span {
        filter: none !important;
    }
}
