* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    min-height: 100vh; 
    display: flex;
}
.container { 
    background: white; 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
    transition: transform 0.3s ease;
    margin: auto;
}
.container:hover { transform: translateY(-5px); }
h2 { color: #333; margin-bottom: 30px; font-size: 24px; }
input, select { 
    width: 100%; 
    padding: 12px; 
    margin: 10px 0; 
    border: 2px solid #ddd; 
    border-radius: 6px; 
    font-size: 16px; 
    transition: border-color 0.3s;
}
input:focus, select:focus { outline: none; border-color: #007bff; }
input:invalid, select:invalid { border-color: #dc3545; }
button { 
    padding: 12px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 6px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background 0.3s;
    position: relative;
}
button:hover:not(:disabled) { background: #0056b3; }
button:disabled { background: #6c757d; cursor: not-allowed; }
.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.link { color: #007bff; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }
.error, .success { 
    padding: 10px; 
    border-radius: 4px; 
    margin: 15px 0; 
    font-size: 14px; 
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.error:not(:empty), .success:not(:empty) {
    opacity: 1;
}
.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.progress { 
    background: #e9ecef; 
    height: 4px; 
    border-radius: 2px; 
    margin-bottom: 30px; 
    overflow: hidden;
}
.progress-bar { 
    background: #007bff; 
    height: 100%; 
    transition: width 0.3s; 
    width: 50%;
}
.step { display: none; }
.step.active { display: block; }
.btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover:not(:disabled) { background: #545b62; }
@media (max-width: 480px) {
    .container { padding: 20px; }
    .btn-group { flex-direction: column; }
}