@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff3366;
    --dark-bg: #0a0a0f;
    --card-bg: #1a1a2e;
    --glass-bg: rgba(26, 26, 46, 0.8);
    --text-light: #ffffff;
    --text-muted: #8892b0;
    --border-glow: rgba(0, 212, 255, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #0a0a0f 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    animation: rotate 20s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    padding: 15px 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.progress-step.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

.progress-step.completed {
    background: linear-gradient(45deg, var(--success-color), #00cc70);
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Form Container */
.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-glow);
}

.customer-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.customer-info h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, textarea, select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid var(--border-glow);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(26, 26, 46, 0.8);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--text-muted), #5a6c8a);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #00cc70);
}

.btn-danger {
    background: linear-gradient(45deg, var(--error-color), #cc1a4d);
}

/* Selection Options */
.manufacturer-selection, .model-selection {
    margin: 30px 0;
}

.manufacturer-selection h2, .model-selection h2 {
    font-family: 'Orbitron', monospace;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.manufacturer-option, .model-option {
    background: var(--glass-bg);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 20px;
}

.manufacturer-option:hover, .model-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.manufacturer-option.selected, .model-option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.manufacturer-logo {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.model-option {
    text-align: center;
    padding: 20px;
}

.model-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkbox and Radio Groups */
.checkbox-group, .radio-group {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.checkbox-group h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.checkbox-group label:hover, .radio-group label:hover {
    background: rgba(0, 212, 255, 0.1);
}

.checkbox-group input[type="checkbox"], .radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
}

/* Password Input */
.password-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input input {
    width: 80px;
    text-align: center;
}

.password-input span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glow);
}

/* Status Messages */
.status-message {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.status-error {
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.status-warning {
    background: rgba(255, 170, 0, 0.2);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

/* Scanner Modal */
.scanner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.scanner-modal-content {
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
}

.scan-btn {
    margin-top: 10px;
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-container, .header {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-step {
        margin: 0;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .manufacturer-option, .model-option {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .manufacturer-logo {
        font-size: 3rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px 15px;
    }
}