:root {
    --primary: #d81b60;
    --primary-hover: #c2185b;
    --secondary: #f48fb1;
    --bg-overlay: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-dark: #2c1a2e;
    --text-light: #5c4a5d;
    --border: rgba(244, 143, 177, 0.4);
    --focus-ring: rgba(216, 27, 96, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Setup */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Layout */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.view-section {
    display: none; /* Handled by JS removing .hidden, but this is a fallback conceptual state */
    animation: fadeIn 0.5s ease;
}

.view-section:not(.hidden) {
    display: block;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s forwards; }

/* Intro View */
.intro-content {
    text-align: center;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #f06292;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Quiz UI */
.quiz-header {
    margin-bottom: 2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(244, 143, 177, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: right;
}

.question-container {
    text-align: center;
}

.question-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.choice-btn {
    background: white;
    border: 2px solid var(--border);
    color: var(--text-dark);
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
}

.choice-btn:hover {
    border-color: var(--primary);
    background: rgba(216, 27, 96, 0.05);
    transform: translateX(4px);
}

/* Result & Forms */
.result-display {
    text-align: center;
    margin-bottom: 3rem;
}

.result-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-img-wrapper {
    margin: 1.5rem auto;
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.result-desc {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

.card-style {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.lead-capture-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.lead-capture-box h3 {
    margin-bottom: 0.5rem;
}

.lead-capture-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.custom-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background: white;
}

/* Success View & Bonus */
.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bonus-panel {
    background: linear-gradient(135deg, #fff0f5 0%, #e1bee7 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.bonus-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.share-box {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.share-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: white;
    color: #555;
    font-size: 0.9rem;
}

.social-share {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-social {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.btn-social:hover { opacity: 0.9; }
.btn-social.fb { background: #1877f2; }
.btn-social.tw { background: #1da1f2; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}
.alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Powered By */
#wbx-powered-by-slot {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .social-share {
        flex-direction: column;
    }
}