/* Дополнительные стили для thanks.php */

/* Главный контейнер страницы благодарности */
.thanks-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 50%, #E8F5E8 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.thanks-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Основная карточка */
.thanks-card {
    background: white;
    border-radius: 20px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transform: scale(0.95);
    animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.thanks-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
    border-radius: 20px 20px 0 0;
}

/* Иконка успеха */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2.5rem;
    animation: bounce 1s ease-in-out 0.5s both;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -15px, 0);
    }
    70% {
        transform: translate3d(0, -7px, 0);
    }
    90% {
        transform: translate3d(0, -3px, 0);
    }
}

/* Заголовок */
.thanks-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Описание */
.thanks-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.5s both;
}

/* Дополнительная информация */
.additional-info {
    background: rgba(76, 175, 80, 0.05);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid #4CAF50;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #4CAF50;
}

.info-text {
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-value {
    color: #666;
    font-size: 0.95rem;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.btn-primary-action {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.btn-secondary-action {
    background: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn-secondary-action:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

/* Дополнительные ссылки */
.additional-links {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    animation: fadeInUp 0.8s ease 1.1s both;
}

.links-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quick-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(76, 175, 80, 0.1);
}

.quick-link:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
}

/* Анимации fadeInUp для последовательного появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Декоративные элементы */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    color: rgba(76, 175, 80, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .thanks-card {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .thanks-title {
        font-size: 2rem;
    }
    
    .thanks-description {
        font-size: 1.1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .thanks-container {
        background: linear-gradient(135deg, #1a3b1a 0%, #2d4a2d 50%, #1a3b1a 100%);
    }
    
    .thanks-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .thanks-title {
        color: #8BC34A;
    }
    
    .info-item {
        background: #333;
    }
    
    .additional-info {
        background: rgba(76, 175, 80, 0.1);
    }
}