* {
    font-family: 'Montserrat' !important;
}

.ringo-fw {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ringo-fw__wheel {
    position: relative;
    width: min(520px, 80vw);
}
.ringo-fw__canvas {
    width: 100%;
    height: auto;
    display: block;
}
.ringo-fw__pointer {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-right: 22px solid #ff2b2b;
}
.ringo-fw__center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F4FF1F;
    font-weight: 700;
    text-align: center;
    line-height: 110%;
}
.ringo-fw__form form a {
    font-weight: 600 !important;
    color: #165A5E !important;
}
.ringo-fw__alert {
    margin: 10px 0;
    color: #ff2b2b;
    font-size: 14px;
    font-weight: 600;
    line-height: 120%;
}
.ringo-fw__result {
    margin-top: 24px;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    color: green;
    line-height: 110%;
}
.ringo-fw__result.nelzya {
    font-size: 16px;
    font-weight: 500;
    color: #ff2b2b;
}
button[type="button"].ringo-fw__spin {
    padding: 10px 35px;
    width: 100%;
    border-radius: 50px;
    background: #165A5E;
    border: none;
    font-weight: 500;
}
.is-invalid {
    outline: 2px solid #ff2b2b !important;
    border-color: #ff2b2b !important;
}

@media (max-width: 920px) {
    .ringo-fw__wheel {
        width: min(420px, 92vw);
    }
}
@media (max-width: 768px) {
    .ringo-fw {
        flex-direction: column;
    }
    .ringo-fw__right {
        padding-bottom: 20px;
    }
}

/* Launcher button */
button.ringo-fw-launcher {
    position: fixed;
    left: clamp(10px, 2.5vw, 40px);
    top: 40%;
    padding: 0;
    width: clamp(50px, 10vw, 100px);
    height: clamp(50px, 10vw, 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    z-index: 9998;
    font-size: clamp(24px, 5vw, 48px);
    line-height: 1;
    background: #333;
}

@media screen and (min-width: 1024px) {
    button.ringo-fw-launcher:hover {
        background: #F4FF1F;
    }
}

/* Modal */
.ringo-fw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.ringo-fw-modal.is-open {
    display: block;
}

.ringo-fw-modal__overlay {
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.55);
}

.ringo-fw-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: min(980px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 18px;
}

.ringo-fw-modal__close {
    position: absolute;
    right: 10px;
    top: 6px;
    z-index: 999;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: #165A5E !important;
    cursor: pointer;
    font-size: 28px!important;
    line-height: 1;
    width: 40px !important;
    height: 40px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Lock scroll when modal is open */
.ringo-fw-lock, .ringo-fw-lock body {
    overflow: hidden !important;
}
.ringo-fw__title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 600;
    line-height: 120%;
    text-align: center;
}
.ringo-fw__subtitle {
    margin: 20px 0 30px;
    font-size: clamp(16px, 5vw, 20px);
    font-weight: 400;
    line-height: 130%;
    text-align: center;
}


[data-ringo-fw] .wpcf7-not-valid-tip,
[data-ringo-fw] .wpcf7-response-output,
[data-ringo-fw] input[type="submit"],
[data-ringo-fw] .wpcf7-spinner {
    display: none !important;
}
