/* Thank You Page Enhanced Styles */

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Base animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced container styling */
.thank-you-container {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 70vh;
    position: relative;
    overflow-x: hidden;
}

/* Background decoration */
.thank-you-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(45, 55, 72, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 174, 192, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(74, 85, 104, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced success animation */
.success-animation {
    animation: successPulse 2s ease-in-out, bounce 3s ease-in-out 2s;
    position: relative;
}

.success-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    z-index: -1;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Enhanced card styling */
.order-details, .next-steps {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.order-details::before, .next-steps::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;
}

.order-details:hover::before, .next-steps:hover::before {
    left: 100%;
}

/* Animated fade-in for sections */
.fade-in {
    animation: slideInUp 0.8s ease-out;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.3s;
}

/* Enhanced status badges */
.status-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.status-badge:hover::before {
    left: 100%;
}

.status-paid {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.status-deposit {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.status-pending {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

/* Enhanced contact section */
.contact-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(160, 174, 192, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced buttons */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}

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

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Icon animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

.icon-spin {
    animation: spin 2s linear infinite;
}

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

/* Responsive enhancements */
@media (max-width: 768px) {
    .thank-you-container {
        padding: 1rem 0;
    }

    .order-details, .next-steps {
        margin: 1rem;
        padding: 1.5rem !important;
    }

    .success-animation {
        animation-duration: 1.5s;
    }
}



/* Progress bar animation */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #2d3748, #4a5568, #718096, #a0aec0);
    background-size: 200% 100%;
    animation: progressFlow 3s ease-in-out infinite;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

@keyframes progressFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating elements animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Enhanced hover effects for navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: left 0.3s ease;
}

.nav-link:hover::after {
    left: 0;
}

/* Pulse effect for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Print styles */
@media print {
    .thank-you-container {
        background: white !important;
        color: black !important;
    }

    .order-details, .next-steps {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .btn-enhanced {
        display: none !important;
    }
}