.error-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: auto;
}

.error-code {
    font-size: 180px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 4px 4px 0 var(--bg-lighgray);
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

.error-illustration {
    position: relative;
    height: 200px;
    margin: -60px auto 40px;
}

.planet {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ec8d94, #D72E3A);
    border-radius: 50%;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: rotatePlanet 20s linear infinite;
}

.planet::before {
    content: '';
    position: absolute;
    width: 110px;
    height: 20px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    top: 110px;
    left: -5px;
    filter: blur(5px);
}

.star-s {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.star-s::before, .star-s::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 
        30px 20px 0 1px rgba(255, 255, 255, 0.8),
        60px 40px 0 0 rgba(255, 255, 255, 0.6),
        100px 60px 0 1px rgba(255, 255, 255, 0.7),
        140px 30px 0 0 rgba(255, 255, 255, 0.6),
        180px 70px 0 1px rgba(255, 255, 255, 0.8),
        220px 40px 0 0 rgba(255, 255, 255, 0.6),
        260px 90px 0 1px rgba(255, 255, 255, 0.7),
        300px 50px 0 0 rgba(255, 255, 255, 0.6),
        340px 80px 0 1px rgba(255, 255, 255, 0.8),
        380px 30px 0 0 rgba(255, 255, 255, 0.6),
        420px 70px 0 1px rgba(255, 255, 255, 0.7),
        460px 40px 0 0 rgba(255, 255, 255, 0.6),
        500px 60px 0 1px rgba(255, 255, 255, 0.8);
    animation: twinkle 4s infinite;
}

.star-s::after {
    top: 100px;
    animation-delay: 2s;
    animation-duration: 5s;
}

.astronaut {
    position: absolute;
    width: 60px;
    height: 90px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

.astronaut-helmet {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    top: 0;
    left: 10px;
    box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.1);
}

.astronaut-body {
    position: absolute;
    width: 50px;
    height: 60px;
    background-color: white;
    border-radius: 10px;
    top: 30px;
    left: 5px;
    box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.1);
}

.astronaut-backpack {
    position: absolute;
    width: 30px;
    height: 40px;
    background-color: #e5e7eb;
    border-radius: 5px;
    top: 35px;
    left: -10px;
    z-index: -1;
}

.astronaut-leg {
    position: absolute;
    width: 15px;
    height: 30px;
    background-color: white;
    border-radius: 5px;
    top: 85px;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.1);
}

.astronaut-leg.left {
    left: 10px;
}

.astronaut-leg.right {
    left: 35px;
}

.astronaut-arm {
    position: absolute;
    width: 12px;
    height: 30px;
    background-color: white;
    border-radius: 5px;
    top: 40px;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.1);
}

.astronaut-arm.left {
    left: -5px;
    transform: rotate(-20deg);
}

.astronaut-arm.right {
    left: 53px;
    transform: rotate(20deg);
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.error-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.error-container .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.error-container .btn-primary {
    background-color: var(--primary);
    color: var(--bg-light);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -1px rgba(99, 102, 241, 0.1);
}

.error-container .btn-primary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -1px rgba(99, 102, 241, 0.2), 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.error-container .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--bg-lighgray);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.error-container .btn-secondary:hover {
    background-color: var(--bg-lighgray);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


/* Thank you page */
.thank-you {
    min-height: 100vh;
    background: url('/sites/default/files/images/thank-you-background.webp') no-repeat top center;
    background-size: 150%;
    position: relative;
}

.thank-you::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.7) 100%);
}

.thank-you .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.thank-you h1 {
    font-size: 3.096rem;
    color: var(--primary);
    font-family: var(--font-primary-bold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.thank-you h2 {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin: 40px 0 20px;
    font-weight: 600;
    font-family: var(--font-primary-bold);
}

.thank-you .intro-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.4861rem;
}

.thank-you .steps {
    max-width: 800px;
    margin: 0 auto;
    list-style-position: inside;
    counter-reset: step-counter;
    padding-left: 0;
}

.thank-you .steps li {
    margin-bottom: 30px;
    position: relative;
    list-style-type: none;
}

.thank-you .steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter) ".";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -25px;
    top: 0;
}

.thank-you .steps h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: var(--font-primary-bold);
}

.thank-you .steps p {
    margin-left: 0;
    font-size: 1.2384rem;
}

.thank-you .social-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.thank-you .social-icons img {
    width: 3.5rem;
}

.thank-you .social-text {
    width: 70%;
    text-align: center;
    margin: auto;
    font-size: 1.2384rem;
}

.thank-you .social-text a {
    color: var(--primary);
    text-decoration: none;
}


/* Tracker cookie bar */

#pi_tracking_opt_in_div a {
    color: var(--primary);
    margin-left: 1rem;
}
#pi_tracking_opt_in_div a:hover {
    color: var(--text-secondary);
    margin-left: 1rem;
}

@media (max-width: 992px) {
    .thank-you {
        background-position: 90% center;
    }
    
    .thank-you::before {
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0.8) 100%);
    }
}

@media (max-width: 768px) {
    .thank-you h1 {
        font-size: 2rem;
    }
    
    .thank-you h2 {
        font-size: 1.7rem;
    }
    
    .thank-you .steps h3 {
        font-size: 1.2rem;
    }
    
    .thank-you {
        background-position: 80% center;
    }
    
    .thank-you::before {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .thank-you .content {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .thank-you h1 {
        font-size: 1.8rem;
    }
    
    .thank-you h2 {
        font-size: 1.5rem;
    }
    
    .thank-you .intro-text, .thank-you .social-text {
        font-size: 1rem;
    }
    
    .thank-you .steps li {
        padding-left: 25px;
    }
    
    .thank-you .steps li::before {
        left: 0;
    }
    
    .thank-you .content {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(10%, 10%);
    }
    50% {
        transform: translate(10%, -10%);
    }
}

@keyframes rotatePlanet {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-code {
        font-size: 120px;
    }
    
    .error-title {
        font-size: 28px;
    }
    
    .error-message {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 100px;
    }
    
    .error-illustration {
        height: 180px;
        margin: -40px auto 30px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .error-container .btn {
        width: 100%;
    }
}