/* --- Global Styles from Example --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Nunito Sans', sans-serif; 
    font-size: 18px; 
    line-height: 1.7; 
    color: #333333; 
    background-color: #F0EBE8; 
    padding: 20px; 
}
.container { 
    max-width: 750px; 
    margin: 40px auto; 
    background-color: #FFFFFF; 
    padding: 40px; 
    border-radius: 16px; 
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); 
}
h1, h2, h3 { 
    font-family: 'Lora', serif; 
    font-weight: 700; 
    margin-bottom: 18px; 
}
h1 { 
    font-size: 42px; 
    color: #333333; 
    text-align: center; 
    margin-bottom: 24px; 
    line-height: 1.2; 
}
h2 { 
    font-size: 32px; 
    color: #D98B96; /* Dusty Rose Accent */
    margin-top: 36px; 
    margin-bottom: 24px; 
}
h3 { 
    font-size: 24px; 
    font-weight: 600; 
    margin-top: 24px; 
    margin-bottom: 18px; 
}
.subheadline { 
    font-size: 24px; 
    color: #D98B96; 
    text-align: center; 
    margin-bottom: 36px; 
    font-weight: 600; 
}
p { margin-bottom: 24px; font-weight: 400; }
.emphasis { font-weight: 700; color: #D98B96; }
.cta-button { 
    display: block;
    background-color: #D98B96; /* Main color for consistency */
    color: #FFFFFF; 
    font-family: 'Nunito Sans', sans-serif; 
    font-weight: 700; 
    font-size: 20px; 
    padding: 16px 32px; 
    border-radius: 12px; 
    text-decoration: none; 
    text-align: center; 
    margin: 24px auto; 
    max-width: 450px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    transition: all 0.3s ease; 
    cursor: pointer; 
    border: none; 
}
.cta-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(0,0,0,0.15); 
    filter: brightness(1.05); 
}

/* --- Page Management --- */
.page-section { display: none; animation: fadeIn 0.6s ease; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- Progress Bar --- */
#progress-bar-container { 
    width: 100%; 
    background-color: #eee; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    overflow: hidden;
}
#progress-bar { 
    width: 0%; 
    height: 20px; 
    background-color: #D98B96; 
    border-radius: 10px; 
    text-align: center; 
    color: white; 
    line-height: 20px; 
    transition: width 0.4s ease; 
    font-size: 14px; 
}

/* --- Survey Elements --- */
.survey-question, .lead-capture-form { text-align: center; }
.survey-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.survey-btn { font-size: 18px; padding: 12px 40px; width: 180px; }

/* --- Category Selection --- */
.category-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}
.category-choice input[type="checkbox"] { display: none; }
.category-choice label {
    display: block;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.category-choice label:hover { border-color: #D98B96; background-color: #fff9fa; }
.category-choice input[type="checkbox"]:checked + label {
    border-color: #D98B96;
    background-color: #D98B96;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(217, 139, 150, 0.3);
}

/* --- Lead Capture --- */
.lead-capture-form input { 
    width: 100%; 
    max-width: 400px; 
    padding: 14px; 
    font-size: 16px; 
    font-family: 'Nunito Sans', sans-serif;
    margin: 10px auto; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    display: block; 
}
.form-note { text-align: center; font-size: 14px; margin-top: -15px; color: #777; }

/* --- Loading Page --- */
#loading-page { text-align: center; padding: 60px 20px; }
.spinner { 
    margin: 30px auto; 
    width: 50px; 
    height: 50px; 
    border: 5px solid #f3f3f3; 
    border-top: 5px solid #D98B96; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#loading-text { 
    font-size: 20px; 
    color: #666; 
    font-style: italic; 
    min-height: 54px; /* prevent layout shifts */
    transition: opacity 0.5s ease; 
}

/* --- Results Page --- */
.result-category {
    border-left: 5px solid #D98B96;
    padding-left: 20px;
    margin-top: 30px;
}
.result-category h2 {
    color: #333; /* Make it darker to stand out */
}
.result-list {
    list-style-type: none;
    padding-left: 0;
}
.result-list li {
    background-color: #fdf6f7; /* Lighter pink background */
    border: 1px solid #fbeaed;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #34495e;
}
.guide-placeholder {
    background-color: #f0ebe8;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px dashed #D98B96;
}
.guide-placeholder h3 {
    margin-top: 0;
    color: #D98B96;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) { 
    h1 { font-size: 36px; } 
    .container { margin: 0; padding: 20px; border-radius: 0; }
    .category-selection-grid { grid-template-columns: 1fr; }
}