/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* MyQr Theme Colors */
    --primary: #0032A0; /* Main Blue */
    --primary-light: #4c6ef5;
    --primary-dark: #002171;
    --accent: #FFD700; /* Gold for highlights if needed */
    
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-tertiary: #9E9E9E;
    
    --border: #E0E0E0;
    --bg: #FFFFFF;
    --bg-secondary: #F5F7FA;
    
    --success: #2E7D32;
    --error: #C62828;
    
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.lang-switch {
    display: flex;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    display: inline-block;
    background: #E3F2FD;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-icon {
    color: var(--success);
    font-weight: bold;
}

/* Ad Container */
.ad-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    text-align: center;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-label {
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Generator Card */
.generator-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid var(--border);
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    color: var(--primary);
    font-weight: 600;
}

.step-num {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step.active .step-num {
    background: var(--primary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: 0 20px;
    max-width: 100px;
}

/* QR Type Grid */
.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.qr-type-btn i {
    font-size: 2rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.qr-type-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.qr-type-btn:hover i {
    color: var(--primary);
}

.qr-type-btn.selected {
    border-color: var(--primary);
    background: #f0f4ff;
    color: var(--primary-dark);
}

.qr-type-btn.selected i {
    color: var(--primary);
}

/* Forms */
.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--primary);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 50, 160, 0.1);
}

.action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 20px;
}

.action-btn:hover {
    background: var(--primary-dark);
}

.action-btn.download {
    background: var(--success);
}

.action-btn.download:hover {
    background: #1b5e20;
}

/* QR Preview */
.qr-preview-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#qrcode img {
    display: block;
    max-width: 100%;
}

.download-controls {
    max-width: 400px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #e8eaf6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Explanation / Guide */
.explanation {
    padding: 60px 0;
    background: white;
}

.explanation h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.explanation-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.explanation-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* FAQ */
.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #f1f3f5;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .steps-indicator {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .step-line {
        display: none;
    }
    
    .generator-card {
        padding: 20px;
    }
    
    .qr-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}