* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

/* Wider container for Step 3 QR */
#step-qr {
    padding: 40px 60px !important;
}

.container {
    width: 100%;
    max-width: 1600px;
}

/* Override container width for Step 3 */
body:has(#step-qr:not(.hidden)) .form-container {
    max-width: 1400px !important;
}
.logo-img {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 180px;
    height: auto;
}
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.company {
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 30px;
}

.step-indicator {
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn.success {
    background: #28a745;
}

.btn.success:hover {
    background: #218838;
}

.hidden {
    display: none;
}

#message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.warning-box p {
    margin: 0;
    color: #856404;
    font-weight: bold;
}

.qr-container {
    text-align: center;
    margin: 30px 0;
}

.qr-container img {
    max-width: 350px;
    width: 100%;
    border: 3px solid #333;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-box {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box.blue {
    background: #d1ecf1;
    border: 2px solid #0c5460;
}

.info-box.red {
    background: #f8d7da;
    border: 2px solid #721c24;
}

.info-box h3 {
    margin: 0 0 15px 0;
    text-align: center;
}

.info-box.blue h3 {
    color: #0c5460;
}

.info-box.red h3 {
    color: #721c24;
}

.info-box ol {
    line-height: 1.8;
    margin: 0;
    padding-left: 25px;
}

.code-example {
    background: #2d2d2d;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.8;
}

.highlight {
    color: #007bff;
    font-weight: bold;
}

.highlight-yellow {
    color: #ffff00;
    font-weight: bold;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.qr-left, .qr-middle, .qr-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.qr-middle {
    align-items: center;
    justify-content: center;
}

.qr-left .info-box {
    margin-bottom: 15px;
}

.qr-left .warning-box {
    margin-bottom: 0;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 1200px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-middle {
        order: 1;
    }
    
    .qr-left {
        order: 2;
    }
    
    .qr-right {
        order: 3;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .qr-container img {
        max-width: 280px;
    }
}