.new-year-promo {
    padding: 24px 0 72px;
}

section:not(.breadcrumbs):has(+ .new-year-promo) {
    margin-bottom: 8px;
}

.new-year-promo__form {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #dce1e8;
    border-radius: 24px;
    background: #fff;
    color: #505367;
}

.new-year-promo__label {
    display: block;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.new-year-promo__controls {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.new-year-promo .new-year-promo__input {
    box-sizing: border-box;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #cfd6e2;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    line-height: normal;
    color: #505367;
}

.new-year-promo__input::placeholder {
    color: #8993a6;
    opacity: 1;
}

.new-year-promo .new-year-promo__input:focus-visible {
    border-color: #ce2b24;
    outline: 3px solid rgba(206, 43, 36, .15);
    outline-offset: 2px;
}

.new-year-promo .new-year-promo__input[aria-invalid="true"] {
    border-color: #ce2b24;
}

.new-year-promo .new-year-promo__button {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 140px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
}

.new-year-promo__button:focus-visible {
    outline: 3px solid rgba(206, 43, 36, .35);
    outline-offset: 3px;
}

.new-year-promo__button:disabled {
    opacity: .7;
    cursor: wait;
}

.new-year-promo__form[aria-busy="true"] .new-year-promo__button::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: new-year-promo-spin .8s linear infinite;
}

.new-year-promo .new-year-promo__result {
    margin: 20px 0 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f3f5f8;
    color: #505367;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.new-year-promo__result[hidden] {
    display: none;
}

.new-year-promo__result[data-state="success"] {
    background: #edf7f1;
    color: #286346;
}

.new-year-promo__result[data-state="error"] {
    background: #fff1f0;
    color: #a62b24;
}

@keyframes new-year-promo-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575px) {
    .new-year-promo {
        padding: 16px 0 40px;
    }

    .new-year-promo__form {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .new-year-promo__label {
        font-size: 18px;
    }

    .new-year-promo__controls {
        flex-direction: column;
    }

    .new-year-promo .new-year-promo__input,
    .new-year-promo .new-year-promo__button {
        flex: none;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .new-year-promo__form[aria-busy="true"] .new-year-promo__button::after {
        animation: none;
    }
}
