:root {
    --primary: #ff2222; /* Updated Brand Red */
    --primary-dark: #d90429;
    --dark: #0f172a;
    --gray: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.error-container {
    background: var(--white);
    max-width: 480px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Illustration styling with subtle animations */
.illustration-box {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vehicle-icon {
    font-size: 3.5rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
    animation: drive 3s ease-in-out infinite alternate;
}

.package-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--dark);
    top: 20px;
    right: 35%;
    animation: dropPkg 3s ease-in-out infinite;
}

/* Radar pulse background effect */
.radar-ping {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 34, 34, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Text Styling */
.error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.error-content h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.error-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 34, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid #cbd5e1;
}

.btn-outline:hover {
    background-color: var(--light-bg);
}

/* Footer Help text */
.support-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.support-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.support-footer a:hover {
    text-decoration: underline;
}

/* Keyframe Animations */
@keyframes drive {
    0% { transform: translateX(-15px) rotate(0deg); }
    100% { transform: translateX(15px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@keyframes dropPkg {
    0% { transform: translateY(-10px); opacity: 0; }
    50% { transform: translateY(0px); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}