.w4y-widget {
    --w4y-widget-ink: #ffffff;
    --w4y-widget-muted: rgba(255, 255, 255, 0.68);
    --w4y-widget-border: rgba(121, 251, 255, 0.32);
    --w4y-widget-surface: #000000;
    --w4y-widget-soft: #161616;
    --w4y-widget-danger: #ff8a8a;
    --w4y-widget-accent: #50efd0;
    --w4y-widget-glow: #d9ff00;
    --w4y-widget-glow-rgb: 217, 255, 0;
    --w4y-widget-icon: #ffffff;
    --w4y-widget-button: #131212;
    --w4y-widget-radius: 22px;
    --w4y-widget-size: 68px;
    --w4y-widget-z-index: 2147482000;
    --w4y-widget-field-radius: 11px;
    --w4y-widget-submit-radius: 12px;
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: var(--w4y-widget-z-index);
    color: var(--w4y-widget-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    animation: 240ms cubic-bezier(0.2, 0.8, 0.2, 1) w4y-widget-reveal;
}

.w4y-widget,
.w4y-widget * {
    box-sizing: border-box;
}

.w4y-widget button,
.w4y-widget input,
.w4y-widget textarea {
    margin: 0;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.w4y-widget button {
    appearance: none;
}

.w4y-widget-fab {
    position: relative;
    display: flex;
    width: var(--w4y-widget-size);
    height: var(--w4y-widget-size);
    margin-left: auto !important;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--w4y-widget-glow);
    border-radius: var(--w4y-widget-radius);
    background: var(--w4y-widget-button);
    color: var(--w4y-widget-icon);
    box-shadow:
        0 10px 28px rgba(19, 18, 18, 0.23),
        0 0 12px rgba(var(--w4y-widget-glow-rgb), 0.3);
    cursor: pointer;
    transition: transform 180ms, box-shadow 180ms, filter 180ms;
}

.w4y-widget-fab::before,
.w4y-widget-fab::after {
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(var(--w4y-widget-glow-rgb), 0.84);
    border-radius: calc(var(--w4y-widget-radius) + 6px);
    box-shadow:
        0 0 12px rgba(var(--w4y-widget-glow-rgb), 0.46),
        inset 0 0 8px rgba(var(--w4y-widget-glow-rgb), 0.18);
    opacity: 0;
    pointer-events: none;
    content: "";
    will-change: transform, opacity;
    animation: 3.4s cubic-bezier(0.16, 0.7, 0.3, 1) infinite w4y-widget-wave;
}

.w4y-widget-fab::after {
    animation-delay: 1.7s;
}

.w4y-widget.is-open .w4y-widget-fab::before,
.w4y-widget.is-open .w4y-widget-fab::after {
    opacity: 0;
    animation: none;
}

.w4y-widget-fab:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow:
        0 13px 32px rgba(19, 18, 18, 0.27),
        0 0 18px rgba(var(--w4y-widget-glow-rgb), 0.44);
}

.w4y-widget-fab:active {
    transform: translateY(0) scale(0.97);
}

.w4y-widget-fab:focus-visible {
    outline: 3px solid rgba(var(--w4y-widget-glow-rgb), 0.62);
    outline-offset: 4px;
}

.w4y-widget a:focus-visible,
.w4y-widget button:focus-visible,
.w4y-widget input:focus-visible,
.w4y-widget textarea:focus-visible {
    outline: 3px solid rgba(80, 239, 208, 0.72);
    outline-offset: 3px;
}

.w4y-widget-fab svg {
    position: relative;
    z-index: 1;
    width: calc(var(--w4y-widget-size) * 0.53);
    height: calc(var(--w4y-widget-size) * 0.53);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.w4y-widget-panel {
    width: min(390px, calc(100vw - 24px));
    max-height: min(650px, calc(100dvh - var(--w4y-widget-size) - 32px));
    margin-bottom: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 20px;
    background:
        linear-gradient(#000000, #000000) padding-box,
        linear-gradient(
            180deg,
            #79fbff 0%,
            #49efff 18%,
            #57f7ff 40%,
            #37dff6 70%,
            #2ad7ee 100%
        ) border-box;
    color: var(--w4y-widget-ink);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.54),
        0 0 20px rgba(91, 255, 246, 0.12);
    transform-origin: bottom right;
    animation: 190ms cubic-bezier(0.2, 0.8, 0.2, 1) w4y-widget-open;
}

.w4y-widget-panel[hidden] {
    display: none !important;
}

.w4y-widget-header {
    display: flex;
    min-height: 92px;
    padding: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--w4y-widget-surface);
}

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

.w4y-widget-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: none;
    color: var(--w4y-widget-ink) !important;
    font-family: inherit;
    font-size: 23px !important;
    font-weight: 600;
    line-height: 1.23 !important;
    letter-spacing: -0.035em;
    text-transform: none;
}

.w4y-widget-close {
    display: flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #131212;
    color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 170ms, color 170ms;
}

.w4y-widget-close:hover {
    border-color: rgba(80, 239, 208, 0.62);
    background: #1d1c1c;
    color: #ffffff;
}

.w4y-widget-close svg,
.w4y-widget-success-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.w4y-widget-body {
    max-height: calc(min(650px, 100dvh - var(--w4y-widget-size) - 32px) - 92px);
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--w4y-widget-surface);
    scrollbar-width: thin;
}

.w4y-widget-body::-webkit-scrollbar {
    width: 8px;
}

.w4y-widget-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: padding-box rgba(121, 251, 255, 0.42);
}

.w4y-widget-form-intro {
    margin: 0 0 16px !important;
    padding: 0;
    color: var(--w4y-widget-muted) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.w4y-widget-form {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 16px;
}

.w4y-widget-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.w4y-widget-field label {
    margin: 0;
    padding: 0;
    color: var(--w4y-widget-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.w4y-widget-required {
    color: var(--w4y-widget-danger);
}

.w4y-widget-input {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 16px 20px;
    border: 2px solid transparent !important;
    border-radius: max(28px, var(--w4y-widget-field-radius)) !important;
    background:
        linear-gradient(#000000, #000000) padding-box,
        linear-gradient(
            180deg,
            rgba(121, 251, 255, 0.72) 0%,
            rgba(73, 239, 255, 0.58) 18%,
            rgba(87, 247, 255, 0.60) 40%,
            rgba(55, 223, 246, 0.54) 70%,
            rgba(42, 215, 238, 0.52) 100%
        ) border-box !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 24px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(91, 255, 246, 0.10) !important;
    transition: box-shadow 220ms, filter 220ms, transform 220ms;
}

.w4y-widget-form input.w4y-widget-input {
    padding: 16px 20px !important;
}

.w4y-widget textarea.w4y-widget-input {
    min-height: 112px;
    border-radius: 24px !important;
    resize: vertical;
}

.w4y-widget-input::placeholder {
    color: rgba(255, 255, 255, 0.58);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.58);
    opacity: 1;
}

.w4y-widget-input:hover {
    filter: brightness(1.06);
}

.w4y-widget-input:focus {
    outline: 0;
    filter: brightness(1.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 30px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(91, 255, 246, 0.20),
        0 0 42px rgba(91, 255, 246, 0.12) !important;
}

.w4y-widget-field.has-error .w4y-widget-input {
    background:
        linear-gradient(#000000, #000000) padding-box,
        linear-gradient(180deg, #ffb0b0 0%, #ff6f6f 100%) border-box !important;
}

.w4y-widget-error {
    min-height: 0;
    margin: 0;
    color: var(--w4y-widget-danger);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.w4y-widget-error:empty {
    display: none;
}

.w4y-widget-consent {
    display: grid;
    margin-bottom: 6px;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: start;
    gap: 8px 9px;
    color: var(--w4y-widget-muted);
    font-size: 11px;
    line-height: 1.45;
}

.w4y-widget-consent input[type="checkbox"] {
    appearance: auto;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    margin: 1px 0 0 !important;
    padding: 0;
    accent-color: var(--w4y-widget-accent);
}

.w4y-widget-consent label {
    margin: 0;
    padding: 0;
    color: var(--w4y-widget-muted);
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    cursor: pointer;
}

.w4y-widget-consent a {
    color: var(--w4y-widget-accent) !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.w4y-widget-consent .w4y-widget-error {
    grid-column: 2;
}

.w4y-widget-submit-error {
    color: var(--w4y-widget-danger);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.w4y-widget-submit-error:empty {
    display: none;
}

.w4y-widget-submit {
    display: flex;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 17px 30px;
    align-items: center;
    justify-content: center;
    border: 2.5px solid rgba(170, 255, 245, 0.58);
    border-radius: max(30px, var(--w4y-widget-submit-radius));
    background-color: #153b43;
    background-image: url("https://pocket-engineer.ai/wp-content/uploads/2026/03/gradient-button.avif");
    background-position: 42% center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(80, 255, 230, 0.12),
        0 8px 22px rgba(0, 0, 0, 0.34),
        0 0 14px rgba(69, 255, 222, 0.20);
    cursor: pointer;
    transition: transform 220ms, box-shadow 220ms, filter 220ms, border-color 220ms, opacity 180ms;
}

.w4y-widget-submit:hover {
    color: #ffffff;
    border-color: rgba(145, 255, 242, 0.82);
    filter: brightness(1.08);
    transform: translateY(-1px);
    background-position: 38% center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 0 1px rgba(145, 255, 242, 0.22),
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 0 20px rgba(95, 255, 232, 0.34),
        0 0 38px rgba(95, 255, 232, 0.18);
}

.w4y-widget-submit:active {
    transform: scale(0.985);
}

.w4y-widget-submit:disabled {
    opacity: 0.62;
    cursor: wait;
}

.w4y-widget-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.w4y-widget-body.is-success {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.w4y-widget-success-icon {
    display: flex;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(80, 239, 208, 0.58);
    background: rgba(80, 239, 208, 0.12);
    color: var(--w4y-widget-accent);
}

.w4y-widget-success-icon svg {
    width: 24px;
    height: 24px;
}

.w4y-widget-body.is-success h3 {
    margin: 0 0 8px !important;
    padding: 0;
    color: var(--w4y-widget-ink) !important;
    font-family: inherit;
    font-size: 19px !important;
    font-weight: 750;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
}

.w4y-widget-body.is-success p {
    max-width: 285px;
    margin: 0 0 20px !important;
    padding: 0;
    color: var(--w4y-widget-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.w4y-widget-body.is-success .w4y-widget-redirect-note {
    margin-top: -10px !important;
    font-size: 11px !important;
}

.w4y-widget-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    white-space: nowrap;
}

@keyframes w4y-widget-open {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes w4y-widget-reveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes w4y-widget-wave {
    0% {
        opacity: 0.78;
        transform: scale(0.94);
    }

    30% {
        opacity: 0.56;
    }

    76%,
    100% {
        opacity: 0;
        transform: scale(1.52);
    }
}

@media (max-width: 520px) {
    .w4y-widget {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
    }

    .w4y-widget-panel {
        width: 100%;
        max-height: calc(100dvh - var(--w4y-widget-size) - 26px);
        margin-bottom: 10px;
        border-radius: 18px;
    }

    .w4y-widget-header {
        min-height: 84px;
        padding: 18px;
    }

    .w4y-widget-title {
        font-size: 21px !important;
    }

    .w4y-widget-body {
        max-height: calc(100dvh - var(--w4y-widget-size) - 110px);
        padding: 17px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .w4y-widget {
        animation: none !important;
    }

    .w4y-widget * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .w4y-widget-fab::before,
    .w4y-widget-fab::after {
        opacity: 0 !important;
        animation: none !important;
    }
}
