﻿/* Complete redesign in dark mine/industrial theme with copper accents */
/* Success Page Styles - Dark Mine Theme */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

    /* Added subtle radial gradient overlay like in site.css */
    .success-page::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 50% 50%, rgba(184, 115, 51, 0.08) 0%, transparent 60%);
        pointer-events: none;
        z-index: 0;
    }

/* Dark glassmorphism container with copper border */
.success-container {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 16px;
    padding: 4rem 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(184, 115, 51, 0.1);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Icon */
.success-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

/* Copper/gold colored checkmark */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #b87333;
    stroke-miterlimit: 10;
    animation: scale 0.3s ease-in-out 0.6s both;
    filter: drop-shadow(0 0 8px rgba(184, 115, 51, 0.5));
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #b87333;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #d4af37;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.05, 1.05, 1);
    }
}

/* Typography with light text colors */
.success-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.success-subtitle {
    font-size: 1.125rem;
    color: #a0a0a0;
    margin: 0 0 2.5rem;
    font-weight: 400;
}

/* Dark details box with copper accents */
.success-details {
    background: rgba(26, 26, 26, 0.7);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid rgba(184, 115, 51, 0.2);
}

.success-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

    .success-message:last-child {
        margin-bottom: 0;
    }

    /* Copper colored icons */
    .success-message svg {
        flex-shrink: 0;
        color: #b87333;
        margin-top: 0.125rem;
    }

    /* Light text for readability on dark background */
    .success-message p {
        margin: 0;
        color: #d1d5db;
        line-height: 1.6;
        font-size: 0.9375rem;
    }

/* Actions */
.success-actions {
    margin: 2.5rem 0 2rem;
}

/* Copper gradient button */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #ff7a33 0%, #ff5722 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(184, 115, 51, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
        background: linear-gradient(135deg, #d4915d 0%, #b87333 100%);
    }

/* Dark footer with copper link accent */
.success-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 115, 51, 0.2);
}

    .success-footer p {
        color: #6b6b6b;
        font-size: 0.875rem;
        margin: 0;
    }

    .success-footer a {
        color: #b87333;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .success-footer a:hover {
            color: #d4915d;
            text-decoration: underline;
        }

/* Copper and gold colored confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    animation: fadeOutConfetti 0.5s ease-out 3.5s forwards;
}

@keyframes fadeOutConfetti {
    to {
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #b87333;
    top: -10px;
    opacity: 0;
    animation: confetti-fall 4s linear;
}

    .confetti:nth-child(odd) {
        background: #d4af37;
    }

    .confetti:nth-child(even) {
        background: #8b6f47;
    }

    .confetti:nth-child(3n) {
        background: #b87333;
    }

    .confetti:nth-child(4n) {
        background: #d4915d;
    }

@keyframes confetti-fall {
    0% {
        top: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100vh;
        opacity: 0;
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .success-container {
        padding: 3rem 2rem;
    }

    .success-title {
        font-size: 1.75rem;
    }

    .success-subtitle {
        font-size: 1rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .checkmark {
        width: 70px;
        height: 70px;
    }

    .success-details {
        padding: 1.5rem;
    }
}
