@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #1A3E3E;        /* Dark teal from your branding */
    --secondary-color: #143131;       /* Darker teal */
    --accent-color: #D96B2C;          /* Orange from CTA button */
    --accent-hover: #C25A1F;          /* Darker orange for hover */
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --background: #F8F9FA;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #E8F5F2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

/* Landing Page Hero */
body.landing-page {
    padding: 0;
    background: none;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(26, 62, 62, 0.5), rgba(20, 49, 49, 0.6)), 
                url('hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 62, 62, 0.7), rgba(26, 62, 62, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 3px;
    color: white;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 40px;
    color: white;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-subtext {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-trust {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(217, 107, 44, 0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 107, 44, 0.4);
}

/* Quiz Active State */
body.quiz-active {
    background: linear-gradient(135deg, var(--background) 0%, #E8F5F2 100%);
}

body.quiz-active .hero-section {
    display: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Quiz Container */
.quiz-container {
    min-height: 400px;
    animation: slideIn 0.4s ease;
}

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

.question {
    margin-bottom: 30px;
}

.question-number {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

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

.question-description {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

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

.answer-option {
    background: var(--background);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.answer-option:hover {
    background: #F0F8F6;
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.answer-option:hover::before {
    transform: scaleY(1);
}

.answer-option.selected {
    background: #E8F5F2;
    border-color: var(--primary-color);
}

.answer-option.selected::before {
    transform: scaleY(1);
}

.answer-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.answer-radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.answer-radio:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.answer-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.answer-text {
    flex: 1;
}

.answer-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.answer-description {
    font-size: 14px;
    color: var(--text-light);
}

/* Input Fields */
.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #F0F8F6;
}

.input-error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
}

/* Multiple Choice (Checkboxes) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--background);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: #F0F8F6;
}

.checkbox-input {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 107, 44, 0.3);
}

.btn-primary:disabled {
    background: #CCC;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Results Container */
.results-container {
    animation: fadeIn 0.6s ease;
}

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

.results-score {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.results-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.results-content {
    background: var(--background);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.results-section {
    margin-bottom: 30px;
}

.results-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.results-section ul {
    list-style: none;
    padding-left: 0;
}

.results-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.results-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

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

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

/* Risk Badge */
.risk-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
}

.risk-low {
    background: #D4EDDA;
    color: #155724;
}

.risk-moderate {
    background: #FFF3CD;
    color: #856404;
}

.risk-high {
    background: #F8D7DA;
    color: #721C24;
}

/* Email Capture Form */
.email-capture {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.email-capture h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    .question-text {
        font-size: 20px;
    }

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

    .btn {
        width: 100%;
    }

    .results-score {
        font-size: 56px;
    }

    .results-title {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navigation,
    .progress-container {
        display: none;
    }

    .container {
        box-shadow: none;
    }
}

/* Value-Added Sections Styling */
.value-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 50px 0 30px 0;
    text-align: center;
}

.compliance-notice {
    background: #f5f3e6;
    border: 1px solid #e5ddbe;
    border-left: 4px solid #b89f3a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4523;
}

.immediate-plan-section,
.why-result-section {
    background: #ffffff;
    border: 1px solid #dce8e4;
    border-radius: 15px;
    padding: 30px;
    margin: 35px 0;
}

.immediate-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.immediate-step-card {
    background: #f6fbf9;
    border: 1px solid #d8ebe4;
    border-radius: 12px;
    padding: 18px;
}

.immediate-step-timeframe {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.immediate-step-action {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
}

.why-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-result-list li {
    padding: 10px 0 10px 26px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.why-result-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.urgent-redflags-section {
    background: #fff2f1;
    border-left: 4px solid #d64541;
    border-radius: 15px;
    padding: 32px;
    margin: 40px 0;
}

.urgent-redflags-intro {
    font-size: 16px;
    margin-bottom: 18px;
    color: #592726;
}

.urgent-redflags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.urgent-redflag-item {
    background: #ffffff;
    border: 1px solid #f0c7c6;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.urgent-redflag-icon {
    flex-shrink: 0;
}

.urgent-redflag-text {
    font-size: 15px;
    color: #532220;
    line-height: 1.5;
}

/* Actionable Tips Grid */
.actionable-tips {
    background: #F0F8F6;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tip-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tip-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Stats Section */
.stats-section {
    margin: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}

.stat-context {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Timeline Section */
.timeline-section {
    margin: 50px 0;
    background: white;
    padding: 40px;
    border-radius: 15px;
}

.timeline {
    margin-top: 30px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: 5px;
}

.timeline-timeframe {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.timeline-actions {
    list-style: none;
    padding: 0;
}

.timeline-actions li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.timeline-actions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Warning Signs Section */
.warning-section {
    background: #FFF9E6;
    padding: 40px;
    border-radius: 15px;
    margin: 50px 0;
    border-left: 4px solid var(--warning);
}

.warning-description {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.warning-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.warning-sign {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.warning-sign:hover {
    transform: translateX(5px);
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Social Share Section */
.social-share {
    background: linear-gradient(135deg, #F8F9FA, #E8F5F2);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.social-share h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #1565C0;
    transform: translateY(-2px);
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background: #0C85D0;
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-whatsapp:hover {
    background: #1FAF50;
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .tips-grid,
    .stats-grid,
    .warning-signs-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .actionable-tips,
    .warning-section,
    .timeline-section,
    .urgent-redflags-section,
    .immediate-plan-section,
    .why-result-section {
        padding: 25px;
    }
}
