/* =========================================================
   YourWeb Feedback Modal
========================================================= */

.ywfm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ywfm-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ywfm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 16, 32, 0.82);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;

    transition:
        opacity 0.45s ease,
        backdrop-filter 0.45s ease,
        -webkit-backdrop-filter 0.45s ease;
}

.ywfm-modal.is-active .ywfm-modal-overlay {
    opacity: 1;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.ywfm-modal-window {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 0.95fr 1fr;

    width: min(760px, 100%);
    max-height: calc(100dvh - 56px);

    overflow: hidden;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);

    opacity: 0;
    transform: translateY(34px) scale(0.94);
    filter: blur(8px);

    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ywfm-modal.is-active .ywfm-modal-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.ywfm-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;

    font-size: 32px;
    line-height: 1;
    font-weight: 200;

    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ywfm-modal-close:hover {
    opacity: 0.55;
}

.ywfm-modal-left {
    position: relative;
    padding: 46px 38px 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 100%, rgba(255,255,255,0.13), transparent 36%),
        linear-gradient(63deg, rgba(6, 67, 122, 1) 0%, rgba(240, 88, 88, 1) 100%);
    overflow: hidden;

    opacity: 0;
    transform: translateX(-28px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ywfm-modal.is-active .ywfm-modal-left {
    opacity: 1;
    transform: translateX(0);
}

.ywfm-modal-left::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -130px;

    width: 260px;
    height: 260px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.ywfm-modal-kicker {
    position: relative;
    z-index: 2;

    margin-bottom: 12px;

    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.76);
}

.ywfm-modal-title {
    position: relative;
    z-index: 2;

    margin-bottom: 16px;

    font-size: 34px;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.ywfm-modal-text {
    position: relative;
    z-index: 2;

    max-width: 280px;

    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
}

.ywfm-modal-badges {
    position: relative;
    z-index: 2;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 28px;
}

.ywfm-modal-badges span {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 10px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);

    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
}

.ywfm-modal-right {
    padding: 54px 42px 42px;
    background: #ffffff;

    opacity: 0;
    transform: translateX(28px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.ywfm-modal.is-active .ywfm-modal-right {
    opacity: 1;
    transform: translateX(0);
}

.ywfm-form {
    width: 100%;
    margin: 0;
}

.ywfm-field {
    margin-bottom: 14px;
}

.ywfm-label {
    display: block;
    margin-bottom: 6px;

    color: #111827;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}

.ywfm-input-wrap {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 44px;

    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #ffffff;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ywfm-input-wrap:focus-within {
    border-color: #f05858;
    box-shadow: 0 0 0 4px rgba(240, 88, 88, 0.12);
    transform: translateY(-1px);
}

.ywfm-icon {
    position: absolute;
    left: 13px;
    top: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #8b95a1;
    transform: translateY(-50%);
    pointer-events: none;
}

.ywfm-input {
    width: 100%;
    height: 100%;

    padding: 0 14px 0 40px;

    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;

    background: transparent !important;
    color: #111827;

    font-size: 14px;
    line-height: 1;
    font-family: inherit;
}

.ywfm-input::placeholder {
    color: #9ca3af;
}

.ywfm-submit {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    margin-top: 18px;
    padding: 0 22px;

    border: 0 !important;
    border-radius: 999px;

    background: linear-gradient(90deg, rgba(240, 88, 88, 1) 0%, rgba(206, 85, 93, 1) 100%);
    color: #ffffff;

    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;

    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 12px 26px rgba(240, 88, 88, 0.28);

    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

.ywfm-submit::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(90deg, rgba(6, 67, 122, 1) 0%, rgba(206, 85, 93, 1) 100%);
    opacity: 0;

    transition: opacity 0.25s ease;
}

.ywfm-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;

    width: 80%;
    height: 100%;

    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.36) 45%,
        transparent 100%
    );

    transform: skewX(-18deg);
    pointer-events: none;
}

.ywfm-submit span {
    position: relative;
    z-index: 2;
}

.ywfm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(240, 88, 88, 0.34);
}

.ywfm-submit:hover::before {
    opacity: 1;
}

.ywfm-submit:hover::after {
    animation: ywfmButtonShine 0.85s ease;
}

.ywfm-submit.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@keyframes ywfmButtonShine {
    from {
        left: -140%;
    }

    to {
        left: 140%;
    }
}

.ywfm-message {
    display: none;

    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 10px;

    font-size: 12px;
    line-height: 1.35;
}

.ywfm-message.is-success {
    display: block;
    background: #edf9f0;
    color: #167a31;
}

.ywfm-message.is-error {
    display: block;
    background: #fff0f2;
    color: #d51f44;
}

.ywfm-note {
    margin-top: 12px;

    color: #6b7280;
    font-size: 10px;
    line-height: 1.4;
}

.ywfm-honeypot {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    opacity: 0 !important;
    pointer-events: none !important;
}

body.ywfm-modal-open {
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 767px) {
    .ywfm-modal {
        padding: 12px;
    }

    .ywfm-modal-window {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 24px;
    }

    .ywfm-modal-left {
        padding: 36px 24px 28px;
    }

    .ywfm-modal-title {
        max-width: 260px;
        font-size: 30px;
    }

    .ywfm-modal-text {
        max-width: none;
        font-size: 13px;
    }

    .ywfm-modal-right {
        padding: 30px 24px 28px;
    }

    .ywfm-modal-close {
        top: 14px;
        right: 16px;
        color: #ffffff;
    }

    .ywfm-submit:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ywfm-modal,
    .ywfm-modal-overlay,
    .ywfm-modal-window,
    .ywfm-modal-left,
    .ywfm-modal-right,
    .ywfm-submit,
    .ywfm-input-wrap {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }
}
