/* Форма заявок на участие в розыгрыше.
   Десктоп — по образцу sb:lottery.form, но на белом фоне;
   мобильный — @media-блок в стилистике мобильного шаблона. */

.lottery-participants-wrapper {
    background-color: #fff;
    padding: 20px;
    margin: 0;
}

/* белый фон секции розыгрыша — по ширине контейнера страницы,
   как секции сверху и снизу (контейнер красим целиком, включая padding) */
.container.lot-container {
    background-color: #fff;
}

.lottery-participants-form {
    max-width: 550px;
    padding-top: 20px;
    padding-bottom: 0;
    margin: 0 auto;
}

#lotteryParticipantsSuccessModal h5 {
    font-size: 25px;
    text-align: center;
}

#lotteryParticipantsSuccessModal h5 img {
    max-width: 24px;
    transform: translateY(-2px);
    margin-right: 10px;
}

#lotteryParticipantsSuccessModal .modal-footer > div {
    margin: 15px 0 0;
    font-size: 13px;
    text-align: center;
    line-height: 16px;
}

.lottery-title h2 {
    text-align: center;
    color: #ec691f;
    font-weight: bold;
    padding-bottom: 5px;
}

.lottery-orange-title {
    color: #ec691f;
    font-weight: bold;
}

.lottery-center {
    text-align: center;
    font-size: 18px;
}

/* иконка-info перед текстом под заголовком (по образцу sb:lottery.form) */
.lp-info-icon {
    position: relative;
    top: 0;
    left: -10px;
}

.lp-info-icon i {
    transform: scale(1.2);
    color: #ec691f;
}

.lottery-small {
    text-align: center;
    font-size: 14px;
}

.lottery-font-gray {
    font-size: 18px;
}

.lottery-font-form {
    color: #8a8a8a;
    font-size: 18px;
}

#lotteryParticipantsButton {
    font-weight: bold;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

form.lottery-participants-form.no-valid [type=submit],
form.lottery-participants-form.no-valid [type=submit]:hover,
form.lottery-participants-form.no-valid [type=submit]:focus {
    background-color: #7d7d7d;
}

@media (min-width: 992px) {
    .lottery-participants-form .live-group {
        margin-top: 20px;
    }
}

.container.py-4.breadcrumb-block {
    display: none;
}

.lp-add-error {
    display: none;
    text-align: center;
    margin-top: 10px;
}

/* красное предупреждение о дубле телефона (показывает script.js) */
.lp-phone-duplicate {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

/* ссылка «Полные правила акции» — по образцу include/lottery/bottom.php */
.program-rules {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.program-rules a {
    color: #444;
    text-decoration: underline dotted;
}

.program-rules a:hover {
    text-decoration: none;
}

.program-rules img {
    margin-right: 15px;
    max-width: 35px;
}

/* прелоадер в кнопке на время отправки */
.lp-submit-wrap {
    position: relative;
}

.lp-btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
    pointer-events: none;
}

.lp-submit-wrap.is-loading .lp-btn-spinner {
    display: block;
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    .lottery-title h2 {
        text-align: center;
        font-weight: bold;
        font-size: 1.5em;
    }
}

/* мобильный: кнопка-блок во всю ширину (стилистика main-mobile-btn) */
@media (max-width: 991px) {
    .lottery-participants-wrapper {
        padding: 15px 5px;
    }

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

    #lotteryParticipantsButton {
        width: 100%;
        font-size: 15px;
        padding: 12px;
        border-radius: 4px;
    }
}
