/* Подключаем шрифт Tilda Sans */
@import url('https://static.tildacdn.com/fonts/tildasans.css');

/* Основные стили баннера */
.tilda-thankyou-banner {
    max-width: 600px;
    margin: 40px auto;
    padding: 50px 30px 40px; /* Уменьшен нижний padding на 15% (было 50px 30px) */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    animation: bannerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    /* Центрирование по вертикали и горизонтали */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    /* Шрифт Tilda Sans для всего баннера */
    font-family: 'Tilda Sans', Arial, sans-serif !important;
}

/* Анимация появления баннера */
@keyframes bannerSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Стили для логотипа - увеличен на 15% */
.thank-you-logo {
    width: 207px;
    height: 92px;
    margin: 0 auto 30px; /* Немного уменьшен отступ */
    background-image: url('https://static.tildacdn.com/tild3064-3264-4036-b864-383763323235/catering_logo_2023.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    animation: logoPulse 3s ease-in-out infinite;
    display: block;
}

/* Пульсация логотипа 25% */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.9;
    }
}

/* Контент баннера */
.thank-you-content {
    position: relative;
    z-index: 2;
}

/* Заголовок */
.thank-you-title {
    color: #2d3436;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px; /* Немного уменьшен отступ */
    line-height: 1.3;
    animation: textSlideIn 0.8s ease 0.2s both;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
}

/* Основной текст - увеличен на 10% */
.thank-you-text {
    color: #636e72;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px; /* Немного уменьшен отступ */
    animation: textSlideIn 0.8s ease 0.4s both;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
    font-weight: 400;
}

/* Подтекст - увеличен на 10% и приближен к кнопке */
.thank-you-subtext {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px; /* Сильно уменьшен отступ (было 35px) */
    animation: textSlideIn 0.8s ease 0.6s both;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
    line-height: 1.4;
}

/* Второе предложение подтекста с новой строки */
.thank-you-subtext br {
    display: block;
    content: "";
    margin-top: 8px;
}

/* Кнопка кручения колеса - увеличена на 10% с переливающимся эффектом */
.spin-wheel-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    color: white !important;
    padding: 19px 49px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
    margin: 15px 0; /* Уменьшен отступ (было 28px) */
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Анимация переливающегося градиента */
    animation: gradientShift 3s ease infinite;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
}

/* Переливающийся эффект градиента */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.spin-wheel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
    animation-duration: 1.5s;
}

.spin-wheel-btn:active {
    transform: translateY(-1px);
}

/* Детали заказа */
.order-details {
    margin-top: 25px; /* Уменьшен отступ (было 35px) */
    padding-top: 20px; /* Уменьшен отступ (было 28px) */
    border-top: 2px dashed #e9ecef;
    animation: textSlideIn 0.8s ease 0.8s both;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
}

.order-details p {
    color: #636e72;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
    font-family: 'Tilda Sans', Arial, sans-serif !important;
}

/* Декоративные элементы */
.tilda-thankyou-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Фон затемнения под баннером */
.tilda-thankyou-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .tilda-thankyou-banner {
        margin: 20px;
        padding: 35px 20px 25px; /* Уменьшена высота на мобильных */
        border-radius: 20px;
        max-width: 90%;
    }
    
    .thank-you-logo {
        width: 172px;
        height: 75px;
        margin-bottom: 25px;
    }
    
    .thank-you-title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    
    .thank-you-text {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .thank-you-subtext {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .spin-wheel-btn {
        padding: 16px 40px;
        font-size: 17px;
        margin: 12px 0;
    }
    
    .order-details {
        margin-top: 20px;
        padding-top: 18px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .tilda-thankyou-banner {
        margin: 15px;
        padding: 25px 15px 20px; /* Уменьшена высота на маленьких экранах */
        border-radius: 15px;
        max-width: 95%;
    }
    
    .thank-you-logo {
        width: 138px;
        height: 58px;
        margin-bottom: 20px;
    }
    
    .thank-you-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .thank-you-text {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .thank-you-subtext {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .spin-wheel-btn {
        padding: 15px 35px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
        margin: 10px 0;
    }
    
    .order-details {
        margin-top: 18px;
        padding-top: 15px;
    }
}