:root {
    --primary: #1a1a1a; 
    --bg: #f4f7f9;
    --card-bg: #ffffff;
    --text: #333;
    --border: #e0e0e0;
    --error-red: #ff4d4d;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

nav {
    width: 100%;
    position: absolute;
    top: 0;
    padding: 20px 5%;
    box-sizing: border-box;
}

.logo { font-weight: 700; letter-spacing: 1px; color: var(--text); text-decoration: none; }

.wizard-container {
    width: 100%;
    max-width: 550px;
    height: 600px; 
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.step-tracker {
    display: flex;
    justify-content: space-between;
    padding: 20px 60px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    font-size: 0.8rem;
    transition: 0.3s;
}

.step-dot.active { background: var(--primary); color: white; }
.step-dot.completed { background: #333; color: white; }

.wizard-content { flex: 1; padding: 30px 45px; position: relative; }
.step-pane { display: none; animation: fadeIn 0.4s ease; }
.step-pane.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

h2 { margin-top: 0; font-size: 1.4rem; text-align: center; margin-bottom: 25px; }
p.sub-text { text-align: center; color: #666; font-size: 0.95rem; margin-bottom: 25px; }

.input-group { margin-bottom: 15px; position: relative; }
label { display: block; font-size: 0.75rem; font-weight: 700; color: #666; margin-bottom: 5px; text-transform: uppercase; }

input { 
    width: 100%; padding: 12px; border: 1px solid var(--border); 
    border-radius: 8px; box-sizing: border-box; font-size: 1rem;
    transition: border-color 0.2s;
}

input.error { 
    border-color: var(--error-red); 
    background-color: #fffafa;
    animation: shake 0.2s ease-in-out 0s 2;
}

.error-msg {
    color: var(--error-red);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

input.error ~ .error-msg { display: block; }

.row { display: flex; gap: 12px; }
.row div { flex: 1; }

.primary-btn { 
    width: 100%; padding: 14px; background: var(--primary); 
    color: white; border: none; border-radius: 8px; 
    font-weight: bold; font-size: 1rem; cursor: pointer; margin-top: 10px;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.secondary-btn {
    background: none; border: none; color: #888; font-size: 0.85rem;
    cursor: pointer; width: 100%; margin-top: 10px; text-decoration: underline;
}

.checkbox-row { 
    display: flex; align-items: center; gap: 10px; 
    font-size: 0.85rem; margin: 15px 0; cursor: pointer; color: #555;
}
.checkbox-row input { width: auto; }

.results-box {
    background: #fdfdfd; border: 1px dashed #ccc;
    padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px;
}