:root {
    --bg-color: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f2f5;
    --text-secondary: #a0aab2;
    --accent-color: #4CAF50; /* Bamboo Green */
    --accent-hover: #45a049;
    --accent-glow: rgba(76, 175, 80, 0.3);
    --focus-ring: rgba(76, 175, 80, 0.5);
    --error-color: #ff5252;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Decorations */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.glow-circle.top-left {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.glow-circle.bottom-right {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panda-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.panda-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%; /* Start at 25% for step 1 */
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-indicator {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wizard Container */
.wizard-container {
    position: relative;
    min-height: 400px; /* Prevent jumping when switching steps */
}

/* Steps (Cards) */
.step {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.step.active {
    display: block;
}

.step.slide-out {
    animation: slideOut 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 1.05rem;
}

.helper-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Custom Inputs */
.custom-input,
.custom-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-textarea {
    resize: vertical;
    min-height: 120px;
}

.custom-input:focus,
.custom-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Custom Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-group.horizontal,
.checkbox-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.custom-radio,
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
}

.custom-radio:hover,
.custom-checkbox:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    transform: translateX(2px);
}

.custom-radio input,
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-btn,
.checkbox-btn {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    margin-right: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-btn {
    border-radius: 50%;
}

.checkbox-btn {
    border-radius: 6px;
}

.custom-radio input:checked ~ .radio-btn,
.custom-checkbox input:checked ~ .checkbox-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

.custom-radio input:checked ~ span {
    color: #fff;
    font-weight: 500;
}

.custom-radio:has(input:checked),
.custom-checkbox:has(input:checked) {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--accent-color);
}

.radio-btn::after {
    content: "";
    position: absolute;
    display: none;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.checkbox-btn::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 3px;
    width: 5px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio input:checked ~ .radio-btn::after,
.custom-checkbox input:checked ~ .checkbox-btn::after {
    display: block;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-radio input:focus-visible ~ .radio-btn,
.custom-checkbox input:focus-visible ~ .checkbox-btn {
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Buttons */
.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.flex-spacer {
    flex-grow: 1;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.modal.visible .modal-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.modal.visible .checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.6s ease 0.3s forwards;
}

.modal h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hidden {
    display: none !important;
}

/* Confetti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: fall linear forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(720deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .actions {
        flex-wrap: wrap;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .flex-spacer {
        display: none;
    }

    .card {
        padding: 1.5rem;
    }
}
