.ywmf-card {
    position: relative;
    width: 100%;
    background: none!important;
    overflow: hidden;
    box-sizing: border-box;
}

.ywmf-card *,
.ywmf-card *::before,
.ywmf-card *::after {
    box-sizing: border-box;
}

.ywmf-content {
    position: relative;
    z-index: 2;
    max-width: 430px;
}

.ywmf-title {
    max-width: 360px;
    margin: 0 0 22px;
    color: #06437a;
    font-size: 28px;
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.ywmf-text {
    max-width: 390px;
    margin-bottom: 58px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}

.ywmf-form {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 420px;
}

.ywmf-field {
    margin-bottom: 12px;
}

.ywmf-input {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border: 0;
    outline: none;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.05);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

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

.ywmf-input:focus {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(240, 56, 80, 0.35),
        0 0 0 4px rgba(240, 56, 80, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.07);
}

.ywmf-submit {
    position: relative;
    width: 100%;
    height: 58px;
    margin-top: 2px;
    border: 0;
    border-radius: 999px;
    background: #f23850;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(242, 56, 80, 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;
}

.ywmf-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #06437a 0%, #f23850 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ywmf-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.38) 45%,
        transparent 100%
    );
    transform: skewX(-18deg);
}

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

.ywmf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(242, 56, 80, 0.34);
}

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

.ywmf-submit:hover::after {
    animation: ywmfShine 0.85s ease;
}

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

    to {
        left: 140%;
    }
}

.ywmf-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ywmf-message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
}

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

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

.ywmf-image {
    position: absolute;
    right: -68px;
    bottom: 22px;
    z-index: 1;
    width: 420px;
    max-width: 68%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.ywmf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1024px) {
    .ywmf-card {
        min-height: 560px;
        padding: 48px 34px;
    }

    .ywmf-image {
        width: 370px;
    }
}

@media (max-width: 767px) {
    .ywmf-card {
        min-height: 620px;
        padding: 42px 28px 300px;
        border-radius: 22px;
    }

    .ywmf-title {
        font-size: 24px;
    }

    .ywmf-text {
        margin-bottom: 42px;
        font-size: 14px;
    }

    .ywmf-input {
        height: 50px;
        font-size: 14px;
    }

    .ywmf-submit {
        height: 54px;
        font-size: 14px;
    }

    .ywmf-image {
        right: -88px;
        bottom: 24px;
        width: 390px;
        max-width: none;
    }

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