:root {
    --primary: #000000;
    --primary-light: #333333;
    --accent: #e31837; /* Camera House Red */
    --accent-hover: #c4122d;
    --bg-main: #1a1a1a;
    --bg-secondary: #2b2b2b;
    --card-bg: #ffffff;
    --text-body: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.main-layout {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Typography */
h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary);
    margin: 0;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.ornament {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 15px;
}

.header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.subhead {
    font-size: 1.25rem;
    color: #cccccc;
    margin-top: 15px;
    font-weight: normal;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

/* Quiz UI */
#quiz-container {
    width: 100%;
    text-align: center;
}

.quiz-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.option-btn {
    background: #f9f9f9;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: var(--accent);
    background: #ffffff;
}

.option-btn:active {
    transform: translateY(0);
}

.option-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dddddd;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--accent);
}

.progress-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.footer-note {
    font-size: 0.95rem;
    color: #aaaaaa;
    margin-top: 24px;
}

/* Form */
.form-card {
    text-align: center;
}

.form-card h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-card p {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-muted);
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    color: var(--primary);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15);
}

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.icon-right {
    width: 20px;
    height: 20px;
}

/* Calculation Screen */
.calc-card {
    text-align: center;
    padding: 60px 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.calc-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.calc-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}


/* Results */
.result-card {
    text-align: center;
    padding: 50px 40px;
}

.result-prehead {
    font-size: 1rem;
    color: var(--accent);
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.result-image-wrapper {
    margin: 0 auto 30px;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f5f5f5;
}

.result-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

#result-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: uppercase;
}

.result-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

.bonus-box {
    background: rgba(227, 24, 55, 0.05);
    border: 2px dashed var(--accent);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.bonus-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary);
}

#camera-name-display {
    color: var(--accent);
}

.bonus-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.shop-action-box {
    margin-top: 20px;
}

.shop-btn {
    text-decoration: none;
    max-width: 100%;
}

.share-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.share-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.share-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.share-input-row {
    display: flex;
    gap: 10px;
}

.share-input-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--text-body);
}

/* Animations */
@keyframes revealText {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal-anim {
    animation: revealText 0.8s ease forwards;
    opacity: 0;
}

.reveal-delay-1 { animation-delay: 0.3s; }
.reveal-delay-2 { animation-delay: 0.6s; }
.reveal-delay-3 { animation-delay: 0.9s; }

/* Utilities */
.hidden {
    display: none !important;
}

.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #fca5a5;
}

#wbx-powered-by-slot {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    .main-layout {
        padding: 30px 15px;
    }
    .card {
        padding: 30px 20px;
    }
    .header h1 {
        font-size: 2rem;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
}