/* ================================
   Menopause Impact Quiz Styles
   Matching MyMidlifeGPS.com Branding
   ================================ */

/* Root Variables - Soft Pastels */
:root {
    --primary-peach: #FFD4C4;
    --primary-cream: #FFF8F0;
    --primary-teal: #A8D5D4;
    --accent-coral: #FFB4A2;
    --accent-sage: #B8C9B8;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #8E9AAF;
    --white: #FFFFFF;
    --error-red: #E74C3C;
    --success-green: #52C4A3;
    --border-light: #E8EEF2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--primary-peach) 100%);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
}

/* Section Management */
.section {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Landing Page
   ================================ */

.hero-content {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-sage));
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 48px;
    font-weight: 400;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.feature {
    padding: 24px;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-peach), var(--accent-coral));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-sage));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.privacy-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ================================
   Email Form
   ================================ */

.form-content {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 0;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-teal);
}

.form-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.form-subtitle {
    color: var(--text-medium);
    margin-bottom: 32px;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(168, 213, 212, 0.1);
}

.checkbox-group {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-teal);
}

.error-message {
    background: #FFE8E8;
    color: var(--error-red);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid var(--error-red);
}

/* ================================
   Quiz Section
   ================================ */

.quiz-container {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-sage));
    transition: width 0.4s ease;
    border-radius: 50px;
}

.progress-text {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Question Container */
.question-container {
    min-height: 300px;
    margin-bottom: 32px;
}

.question {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-peach), var(--accent-coral));
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: 600;
    margin-right: 12px;
    font-size: 0.95rem;
}

/* Answer Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option {
    background: var(--primary-cream);
    padding: 18px 24px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.option:hover {
    border-color: var(--primary-teal);
    transform: translateX(8px);
    background: var(--white);
}

.option.selected {
    border-color: var(--primary-teal);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.option.selected .option-radio {
    border-color: var(--primary-teal);
}

.option.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-teal);
    border-radius: 50%;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-dark);
}

.option-value {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 32px;
}

/* ================================
   Results Section
   ================================ */

.results-container {
    background: var(--white);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-peach), var(--accent-coral));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.results-header h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.score-display {
    margin: 32px 0;
}

.score-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cream), var(--primary-peach));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.score-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.score-total {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 500;
}

.impact-level {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 24px;
}

.impact-low {
    color: var(--success-green);
}

.impact-moderate {
    color: #F39C12;
}

.impact-high {
    color: var(--error-red);
}

/* Results Content */
.results-content {
    background: var(--primary-cream);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.results-content h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.results-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-medium);
}

.recommendations {
    margin-top: 24px;
}

.recommendations h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-medium);
    line-height: 1.6;
}

.recommendations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.next-steps {
    text-align: center;
    padding: 32px;
    background: var(--primary-cream);
    border-radius: 12px;
    margin-top: 32px;
}

.next-steps h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.next-steps p {
    color: var(--text-medium);
    line-height: 1.8;
}

.next-steps a {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-teal);
    transition: var(--transition);
}

.next-steps a:hover {
    color: var(--accent-sage);
    border-bottom-color: var(--accent-sage);
}

/* ================================
   Loading Overlay
   ================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-content,
    .quiz-container,
    .results-container {
        padding: 32px 24px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn {
        width: 100%;
    }

    .question h3 {
        font-size: 1.2rem;
    }

    .score-circle {
        width: 140px;
        height: 140px;
    }

    .score-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    .hero-content,
    .form-content,
    .quiz-container,
    .results-container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .option {
        padding: 14px 16px;
    }
}

/* ================================
   Animations & Utilities
   ================================ */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Print Styles */
@media print {
    .quiz-navigation,
    .results-actions,
    .back-btn {
        display: none !important;
    }

    .results-container {
        box-shadow: none;
        border: 1px solid var(--border-light);
    }
}
