/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #667eea;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

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

/* Sections */
.section {
    padding: 60px 20px;
}

.section-alt {
    background-color: white;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    text-align: center;
    color: #2c3e50;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 40px;
}

/* Forms */
.symptoms-form,
.calculator-form {
    max-width: 700px;
    margin: 0 auto;
}

.question-block {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.radio-option input,
.checkbox-option input {
    margin-right: 12px;
    cursor: pointer;
}

/* Calculator Form */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Results Box */
.results-box {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.severity-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.severity-mild {
    background-color: #d4edda;
    color: #155724;
}

.severity-moderate {
    background-color: #fff3cd;
    color: #856404;
}

.severity-severe {
    background-color: #f8d7da;
    color: #721c24;
}

.tips-list {
    list-style: none;
    margin: 24px 0;
}

.tips-list li {
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.tips-list li:before {
    content: "✓ ";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.app-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e9ecef;
}

.app-cta p {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

/* Email Section */
.email-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.email-form input {
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.email-form input:focus {
    outline: none;
    border-color: #667eea;
}

.form-message {
    margin-top: 16px;
    font-weight: 600;
}

.form-message.success {
    color: #4CAF50;
}

.form-message.error {
    color: #e53e3e;
}

/* App Download Section */
.app-section {
    text-align: center;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.feature {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.app-badges {
    margin-top: 40px;
}

.app-badge-link img {
    max-width: 200px;
    height: auto;
}

.coming-soon {
    margin-top: 16px;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design - Tablet & Desktop */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
    }

    .form-row {
        flex-direction: row;
    }

    .form-group {
        flex: 1;
    }

    .email-form {
        flex-direction: row;
    }

    .email-form input {
        flex: 1;
    }

    .email-form button {
        width: auto;
    }

    .app-features {
        flex-direction: row;
    }

    .feature {
        flex: 1;
    }

    .result-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading:after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
