/* Стили для формы лотереи */
.lottery-form-container {
    max-width    : 800px;
    margin       : 30px auto;
    background   : linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding      : 5px;
    box-shadow   : 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family  : Arial, Helvetica, sans-serif;
}

/* Первая часть - лотерейный билет */
.lottery-form-container .lottery-ticket {
    background   : #fff;
    border-radius: 12px;
    padding      : 25px;
    box-shadow   : 0 5px 15px rgba(0, 0, 0, 0.08);
    border       : 2px dashed #cce0ee;

    background-color: #f9fcff;
    /* светлый фон */
    background-image: repeating-linear-gradient(45deg,
            #d4eafd63 0px,
            #d4eafd34 1px,
            transparent 1px,
            transparent 10px);

}

.lottery-form-container .lottery-ticket-content {
    display        : flex;
    justify-content: space-between;
    align-items    : flex-start;
    gap            : 20px;
}

.lottery-form-container .lottery-ticket-left {
    flex: 1;
}

.lottery-form-container .lottery-ticket-number {
    font-size    : 1.2em;
    font-weight  : bold;
    color        : #333;
    margin-bottom: 10px;
}

.lottery-form-container .lottery-ticket-number span {
    color    : #1976d2;
    font-size: 1.1em;
}

.lottery-form-container .lottery-ticket-icons {
    display   : flex;
    gap       : 15px;
    margin-top: 15px;
}

.lottery-form-container .lottery-ticket-icons img {
    width     : 70px;
    object-fit: contain;
}

.lottery-form-container .lottery-ticket-right {
    flex      : 1;
    text-align: center;
}

.lottery-form-container .erase-instruction {
    font-size    : 1.1em;
    font-weight  : bold;
    color        : #333;
    margin-bottom: 15px;
}

.lottery-form-container .erase-arrow {
    width       : 0;
    height      : 0;
    border-left : 15px solid transparent;
    border-right: 15px solid transparent;
    border-top  : 25px solid #1976d2;
    margin      : 0 auto 15px auto;
}

.lottery-form-container .erase-area {
    background   : #e0e0e0;
    border-radius: 8px;
    padding      : 20px;
    cursor       : pointer;
    transition   : all 0.3s ease;
    position     : relative;
    overflow     : hidden;
}

.erase-area .erase-text,
.erase-area .discount-text {
    position      : absolute;
    top           : 50%;
    left          : 50%;
    transform     : translate(-50%, -50%);
    text-align    : center;
    pointer-events: none;
    width         : 90%;
}

.erase-area .erase-text {
    color    : #666;
    font-size: 0.9em;
}

.erase-area .discount-text {
    color      : #fff;
    font-size  : 1.2em;
    font-weight: bold;
    display    : none;
}

.erase-area.revealed .erase-text {
    display: none;
}

.erase-area.revealed .discount-text {
    display: block;
}


.lottery-form-container .erase-area:hover {
    background: #d0d0d0;
    transform : translateY(-2px);
}




.lottery-form-container .erase-area.revealed {
    background: #4caf50;
}



.lottery-form-container .lottery-ticket-info {
    margin-top: 20px;
    text-align: center;
    color     : #666;
    font-size : 0.95em;
}

/* Вторая часть - форма заказа */
.lottery-form-container .order-form-section {
    background   : #fff;
    border-radius: 12px;
    padding      : 25px;
    box-shadow   : 0 5px 15px rgba(0, 0, 0, 0.08);
    display      : none;
    /* Скрыт по умолчанию */
}

.lottery-form-container .order-form-section.show {
    display  : block;
    /* Показывается после выигрыша */
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity  : 0;
        transform: translateY(30px);
    }

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

.lottery-form-container .form-header {
    text-align   : center;
    margin-bottom: 25px;
}

.lottery-form-container .form-header .green-text {
    color      : #4caf50;
    font-size  : 1.2em;
    font-weight: bold;
    margin     : 5px 0;
}

.lottery-form-container .product-section {
    display      : flex;
    align-items  : center;
    gap          : 20px;
    margin-bottom: 25px;
    padding      : 20px;
    background   : #f8f9fa;
    border-radius: 10px;
}

.lottery-form-container .product-image {
    flex-shrink: 0;
}

.lottery-form-container .product-image img {
    max-width : 150px;
    max-height: 200px;
    object-fit: contain;
}

.lottery-form-container .product-info {
    flex: 1;
}

.lottery-form-container .price-tag {
    background   : linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    border-radius: 8px;
    padding      : 15px;
    position     : relative;
    box-shadow   : 0 3px 10px rgba(255, 193, 7, 0.3);
    transform    : rotate(-2deg);
}

.lottery-form-container .price-tag::before {
    content      : "";
    position     : absolute;
    top          : -5px;
    right        : -5px;
    width        : 20px;
    height       : 20px;
    background   : #ff5722;
    border-radius: 50%;
    box-shadow   : 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lottery-form-container .discount-text {
    color        : #fff;
    font-weight  : bold;
    font-size    : 1.4em;
    margin-bottom: 5px;
}

.lottery-form-container .old-price {
    color          : #666;
    text-decoration: line-through;
    font-size      : 0.9em;
}

.lottery-form-container .new-price {
    color      : #d32f2f;
    font-size  : 1.3em;
    font-weight: bold;
}

.lottery-form-container .form-body {
    text-align: center;
}

.lottery-form-container .deadline-text {
    color        : #333;
    font-size    : 1.1em;
    margin-bottom: 20px;
}

.lottery-form-container .timer {
    background   : #fff;
    border       : 2px solid #d32f2f;
    border-radius: 8px;
    padding      : 10px 20px;
    display      : inline-block;
    margin       : 10px 0;
}

.lottery-form-container .timer .time-remains {
    color      : #d32f2f;
    font-size  : 1.5em;
    font-weight: bold;
}

.lottery-form-container .form-inputs {
    max-width: 400px;
    margin   : 0 auto 20px auto;
}

.lottery-form-container .form-inputs input {
    width        : 100%;
    padding      : 12px;
    margin       : 8px 0;
    border       : 2px solid #e0e0e0;
    border-radius: 8px;
    font-size    : 1em;
    transition   : border-color 0.3s ease;
}

.lottery-form-container .form-inputs input:focus {
    outline     : none;
    border-color: #1976d2;
}

.lottery-form-container .submit-button {
    background   : linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color        : #fff;
    border       : none;
    border-radius: 8px;
    padding      : 15px 30px;
    font-size    : 1.2em;
    font-weight  : bold;
    cursor       : pointer;
    transition   : all 0.3s ease;
    width        : 100%;
    max-width    : 400px;
}

.lottery-form-container .submit-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform : translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.lottery-form-container p.footnote {
    color      : #666;
    font-size  : 0.85em;
    margin-top : 15px;
    line-height: 1.4;
}

/* Попап окно */
.lottery-popup-overlay {
    position       : fixed;
    top            : 0;
    left           : 0;
    width          : 100%;
    height         : 100%;
    background     : rgba(0, 0, 0, 0.5);
    display        : none;
    justify-content: center;
    align-items    : center;
    z-index        : 1000;
}

.lottery-popup-overlay.show {
    display: flex;
}

.lottery-popup-window {
    background   : #fff;
    border-radius: 15px;
    padding      : 30px;
    text-align   : center;
    max-width    : 400px;
    width        : 90%;
    position     : relative;
    box-shadow   : 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lottery-close-popup {
    position       : absolute;
    top            : 15px;
    right          : 15px;
    width          : 30px;
    height         : 30px;
    background     : #ff7979;
    border-radius  : 50%;
    cursor         : pointer;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : #fff;
    font-weight    : bold;
    line-height    : 1;
}

.lottery-popup-heading {
    color        : #4caf50;
    font-size    : 1.8em;
    font-weight  : bold;
    margin-bottom: 15px;
}

.lottery-popup-text {
    color        : #333;
    font-size    : 1.1em;
    margin-bottom: 25px;
    line-height  : 1.4;
}

.lottery-popup-button {
    background     : linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color          : #fff;
    text-decoration: none;
    padding        : 12px 30px;
    border-radius  : 8px;
    font-weight    : bold;
    display        : inline-block;
    transition     : all 0.3s ease;
}

.lottery-popup-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform : translateY(-2px);
}

.lottery-form-container .lottery-ticket-number div {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .lottery-form-container {
        margin : 15px;
        padding: 20px;
    }

    .lottery-form-container .lottery-ticket-content {
        flex-direction: column;
        gap           : 15px;
        align-items   : center;
    }

    .lottery-form-container .lottery-ticket-icons {
        justify-content: center;
    }

    .lottery-form-container .lottery-ticket-number {
        text-align: center;
    }


    .lottery-form-container .product-section {
        flex-direction: column;
        text-align    : center;
    }

    .lottery-form-container .product-image img {
        max-width: 120px;
    }

    .lottery-form-container .form-inputs {
        max-width: 100%;
    }

    .lottery-form-container .submit-button {
        max-width: 100%;
    }
}

/* Стили ценника и скидки из boxes-form.css для блока лотереи */
.lottery-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);
}

.lottery-form-container .product {
    position: relative;
}

.lottery-form-container .product .discountс {
    color      : #000;
    font-weight: bold;
    font-size  : 18px;
    margin     : 0 0 5px 0;
    display    : block;
}

.lottery-form-container .product .price_old {
    color          : #666;
    text-decoration: line-through;
    font-size      : 16px;
    margin         : 5px 0;
}

.lottery-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) {
    .lottery-form-container .Figure.product img {
        margin-right: 180px;
    }

    .lottery-form-container .product img {
        max-width : 250px;
        max-height: 300px;
    }

    .lottery-form-container .order-form-section {
        background   : #fff;
        border-radius: 12px;
        padding      : 15px 5px;
    }

    .lottery-form-container {
        margin : auto;
        padding: 5px;
    }

    .lottery-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);
    }

    .lottery-form-container .price_main {
        font-size: 24px;
    }
}

/* Адаптивность */
@media (max-width: 500px) {
    .lottery-form-container .Figure.product img {
        margin       : auto;
        margin-bottom: 80px;
    }


    .lottery-form-container .product .priceс {
        transform: rotate(-2deg);
        left     : 50%;
        transform: translateX(-50%);
    }
}

 @media (max-width: 500px) {
.lottery-close-popup {    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;}
}


@media (max-width: 480px) {
    .lottery-form-container .form-header .green-text {
        font-size: 15px;
    }

    .lottery-form-container .deadline-text {
        font-size: 16px;
    }

    .lottery-form-container .form-inputs input {
        font-size: 14px;
    }

    .lottery-form-container .submit-button {
        font-size: 18px;
    }
}