/* Форма с колесом фортуны - изолированные стили */
.wheel-form-container {
    max-width  : 650px;
    margin     : 0 auto;
    padding    : 20px;
    font-family: Arial, sans-serif;
}


/* Секция с колесом */
.wheel-form-container .wheel-section {
    text-align   : center;
    margin-bottom: 30px;
    padding      : 20px;
    background   : #fff;
    border       : 2px solid #e74c3c;
    border-radius: 10px;
}

.wheel-form-container .wheel-instruction {
    font-size    : 16px;
    line-height  : 1.5;
    color        : #333;
    margin-bottom: 20px;
    text-align   : center;
}

.wheel-form-container .wheel-wrapper {
    position: relative;
    display : inline-block;
    margin  : 20px 0;
}

.wheel-form-container .wheel {
    position: relative;
    width   : 300px;
    height  : 300px;
    margin  : 0 auto;
}

.wheel-form-container .wheel-img {
    width           : 100%;
    height          : 100%;
    border-radius   : 50%;
    /* border       : 3px solid #000; */
    transition      : transform 3s ease-out;
    cursor          : pointer;
}

/* .wheel-form-container .wheel-img:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-out;
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
} */

.wheel-form-container .wheel-cursor {
    position       : absolute;
    top            : -20px;
    left           : 50%;
    transform      : translateX(-50%);
    width          : 40px;
    height         : 40px;
    border-radius  : 50%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    z-index        : 10;
}

.wheel-form-container .wheel-cursor::before {
    content     : '';
    position    : absolute;
    bottom      : -20px;
    left        : 50%;
    transform   : translate(-50%, -50%);
    width       : 0;
    height      : 0;
    border-left : 15px solid transparent;
    border-right: 15px solid transparent;
    border-top  : 20px solid #e74c3c;
    z-index     : 5;
}

.wheel-form-container .wheel-cursor::after {
    content     : '';
    position    : absolute;
    bottom      : -15px;
    left        : 50%;
    transform   : translate(-50%, -50%);
    width       : 0;
    height      : 0;
    border-left : 12px solid transparent;
    border-right: 12px solid transparent;
    border-top  : 16px solid #ffffff;
    z-index     : 6;
}

.wheel-form-container .cursor-text {
    position     : absolute;
    top          : 50%;
    left         : 50%;
    transform    : translate(-50%, -50%);
    background   : #e74c3c;
    color        : #fff;
    padding      : 8px 16px;
    border-radius: 20px;
    font-weight  : bold;
    cursor       : pointer;
    transition   : background 0.3s;
    white-space  : nowrap;
    font-size    : 14px;
    z-index      : 20;
}

.wheel-form-container .cursor-text:hover {
    background: #c0392b;
}

/* Секция заказа */
.wheel-form-container .wheel-order-section {
    display      : none;
    background   : #fff;
    border       : 2px solid #27ae60;
    border-radius: 10px;
    padding      : 30px;
    margin-top   : 20px;
}

.wheel-form-container .wheel-order-section.show {
    display  : block;
    animation: fadeInUp 0.6s ease-out;
}

/* Заголовок формы */
.wheel-form-container .form-header {
    text-align   : center;
    margin-bottom: 30px;
}

.wheel-form-container .green-text {
    color      : #27ae60;
    font-size  : 18px;
    font-weight: bold;
    margin     : 10px 0;
}

/* Секция продукта */
.wheel-form-container .product-section {
    text-align   : center;
    margin-bottom: 30px;
}

.wheel-form-container .product {
    position: relative;
    display : inline-block;
}

/* Тело формы */
.wheel-form-container .form-body {
    text-align: center;
}

.wheel-form-container .deadline-text {
    margin-bottom: 25px;
    font-size    : 16px;
    line-height  : 1.5;
}

.wheel-form-container .timer {
    font-size  : 24px;
    font-weight: bold;
    color      : #e74c3c;
    margin     : 10px 0;
}

.wheel-form-container .time-remains {
    background   : #e74c3c;
    color        : #fff;
    padding      : 5px 10px;
    border-radius: 5px;
    margin       : 0 2px;
}

/* Поля ввода */


.wheel-form-container .form-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* равномерный отступ между input'ами */
    margin-bottom: 20px;
}

.wheel-form-container .form-inputs input {
    width: 90%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}
.wheel-form-container .form-inputs input:focus {
    outline     : none;
    border-color: #3498db;
}

/* Кнопка отправки */
.wheel-form-container .submit-button {
    background   : #e74c3c;
    color        : #fff;
    border       : none;
    padding      : 15px 40px;
    font-size    : 18px;
    font-weight  : bold;
    border-radius: 5px;
    cursor       : pointer;
    transition   : background 0.3s;
    margin       : 20px 0;
}

.wheel-form-container .submit-button:hover {
    background: #c0392b;
}

/* Сноска */
.wheel-form-container .footnote {
    font-size  : 12px;
    color      : #7f8c8d;
    margin-top : 20px;
    line-height: 1.4;
}

/* Попап окно */
.wheel-popup-overlay {
    display        : none;
    position       : fixed;
    top            : 0;
    left           : 0;
    width          : 100%;
    height         : 100%;
    background     : rgba(0, 0, 0, 0.7);
    z-index        : 1000;
    align-items    : center;
    justify-content: center;
}

.wheel-popup-overlay.show {
    display  : flex;
    animation: fadeIn 0.3s ease-out;
}

.wheel-popup-window {
    background   : #fff;
    padding      : 40px;
    border-radius: 15px;
    text-align   : center;
    position     : relative;
    max-width    : 400px;
    width        : 90%;
    box-shadow   : 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wheel-close-popup {
    position   : absolute;
    top        : 10px;
    right      : 15px;
    font-size  : 24px;
    cursor     : pointer;
    color      : #999;
    font-weight: bold;
}

.wheel-close-popup:hover {
    color: #333;
}

.wheel-popup-heading {
    font-size    : 24px;
    font-weight  : bold;
    color        : #27ae60;
    margin-bottom: 15px;
}

.wheel-popup-text {
    font-size    : 18px;
    color        : #333;
    margin-bottom: 25px;
    line-height  : 1.4;
    padding: 0 !important;
}

.wheel-popup-button {
    display        : inline-block;
    background     : #27ae60;
    color          : #fff !important;
    padding        : 12px 30px;
    text-decoration: none !important;
    border-radius  : 5px;
    font-weight    : bold;
    transition     : background 0.3s;
}

.wheel-popup-button:hover {
    background: #229954;
    color     : #fff;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity  : 0;
        transform: translateY(30px);
    }

    to {
        opacity  : 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Анимация вращения колеса */
@-webkit-keyframes super-rotation {
    70% {
        transform        : rotate(3200deg);
        -webkit-transform: rotate(3200deg);
        -moz-transform   : rotate(3200deg);
        -ms-transform    : rotate(3200deg);
        -o-transform     : rotate(3200deg);
    }

    100% {
        transform: rotate(3426deg);
    }
}

@keyframes super-rotation {
    70% {
        -webkit-transform: rotate(3200deg);
        transform        : rotate(3200deg);
    }

    100% {
        transform        : rotate(3426deg);
        -webkit-transform: rotate(3426deg);
        -moz-transform   : rotate(3426deg);
        -ms-transform    : rotate(3426deg);
        -o-transform     : rotate(3426deg);
    }
}

.wheel-form-container .wheel-img.spinning {
    animation                  : super-rotation 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-fill-mode        : forwards;
    animation-iteration-count  : 1;
    -webkit-animation          : super-rotation 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    -webkit-animation-fill-mode: forwards;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wheel-form-container {
        padding: 10px;
    }

    .wheel-form-container .wheel {
        width : 250px;
        height: 250px;
    }

    .wheel-form-container .wheel-instruction {
        font-size: 14px;
    }

    .wheel-form-container .wheel-order-section {
        padding: 20px;
    }

    .wheel-form-container .green-text {
        font-size: 16px;
    }



    .wheel-form-container .priceс {
        right  : -10px;
        padding: 8px;
    }

    .wheel-form-container .price_main {
        font-size: 16px;
    }

    .wheel-form-container .timer {
        font-size: 20px;
    }

    .wheel-popup-window {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .wheel-form-container .wheel {
        width : 200px;
        height: 200px;
    }

    .wheel-form-container .wheel-instruction {
        font-size: 13px;
    }

    .wheel-form-container .wheel-order-section {
        padding: 15px;
    }

    .wheel-form-container .green-text {
        font-size: 14px;
    }

    .wheel-form-container .timer {
        font-size: 18px;
    }


    .wheel-form-container .submit-button {
        padding  : 12px 30px;
        font-size: 16px;
    }
}


.wheel-form-container .product .priceс {
    position         : absolute;
    background       : linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    padding          : 10px;
    border-radius    : 15px;
    transform        : rotate(-10deg);
    box-shadow       : 0 5px 15px rgba(0, 0, 0, 0.3);
    width            : 220px;
    text-align       : center;
    display          : flex;
    flex-wrap        : wrap;
    flex-direction   : column;
    bottom           : 0px;
    right            : 10px;
    -webkit-transform: rotate(-10deg);
    -moz-transform   : rotate(-10deg);
    -ms-transform    : rotate(-10deg);
    -o-transform     : rotate(-10deg);
}

.wheel-form-container .product {
    position: relative;
}

.wheel-form-container .product .discountс {
    color      : #000;
    font-weight: bold;
    font-size  : 18px;
    margin     : 0 0 5px 0;
    display    : block;
}

.wheel-form-container .product .price_old {
    color          : #666;
    text-decoration: line-through;
    font-size      : 16px;
    margin         : 5px 0;
}

.wheel-form-container .product .price_main {
    color      : #000;
    font-size  : 28px;
    font-weight: bold;
    margin     : 5px 0 0 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}


/* Адаптивность */
@media (max-width: 600px) {
    .wheel-form-container .Figure.product img {
        margin-right: 180px;
    }

    .wheel-form-container .product img {
        max-width : 250px;
        max-height: 300px;
    }

    .wheel-form-container .order-form-section {
        background   : #fff;
        border-radius: 12px;
        padding      : 15px 5px;
    }

    .wheel-form-container {
        margin : auto;
        padding: 5px;
    }

    .wheel-form-container .product .priceс {
        transform        : rotate(-8deg);
        min-width        : 180px;
        padding          : 10px;
        -webkit-transform: rotate(-8deg);
        -moz-transform   : rotate(-8deg);
        -ms-transform    : rotate(-8deg);
        -o-transform     : rotate(-8deg);
    }

    .wheel-form-container .price_main {
        font-size: 24px;
    }
}

/* Адаптивность */
@media (max-width: 500px) {
    .wheel-form-container .Figure.product img {
        margin       : auto;
        margin-bottom: 80px;
    }


    .wheel-form-container .product .priceс {
        transform: rotate(-2deg);
        left     : 50%;
        transform: translateX(-50%);
    }
    
   
}


