:root {
    --primary: #2a3d2c;
    --primary-light: #3e5841;
    --bg-mint: #e3f2e1;
    --bg-sage: #c8dec3;
    --bg-moss: #a4c79e;
    --card-bg: rgba(255, 255, 255, 0.72);
    --olive: #6a825e;
    --text-body: #4a5d4c;
    --border-color: rgba(42, 61, 44, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-mint) 0%, var(--bg-sage) 50%, var(--bg-moss) 100%);
    font-family: 'Inter', 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: 'Cormorant Garamond', serif;
    color: var(--primary);
    margin: 0;
}

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

.ornament {
    width: 60px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.header h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.subhead {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--olive);
    margin-top: 10px;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px -10px rgba(42, 61, 44, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    margin: 0 auto;
}

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

.quiz-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
    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: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.option-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(42, 61, 44, 0.08);
    border-color: var(--primary-light);
    background: #ffffff;
}

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

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

.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: rgba(42, 61, 44, 0.2);
    transition: background 0.3s ease;
}

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

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

.footer-note {
    font-size: 0.95rem;
    color: var(--olive);
    margin-top: 24px;
    font-style: italic;
    opacity: 0.9;
}

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

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

.form-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.input-group label {
    display: block;
    font-weight: 600;
    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: 16px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 61, 44, 0.1);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    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(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 61, 44, 0.15);
}

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

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

.result-prehead {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--olive);
    margin: 0 0 10px 0;
}

#result-title {
    font-size: 3.5rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.1;
}

.result-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 15px 30px rgba(42, 61, 44, 0.15);
}

.result-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 30px;
}

.bonus-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed var(--olive);
    border-radius: 20px;
    padding: 20px;
    margin-top: 30px;
}

.bonus-box h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.bonus-box p {
    margin: 0;
    font-size: 0.95rem;
}

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

.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    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;
        border-radius: 24px;
    }
    .header h1 {
        font-size: 2.8rem;
    }
    .subhead {
        font-size: 1.6rem;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
}