/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --accent-color: #ec4899;
    --secondary-color: #f59e0b;
    --tertiary-color: #14b8a6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #faf5ff;
    --bg-white: #ffffff;
    --bg-accent: #fdf4ff;
    --border-color: #e9d5ff;
    --error-color: #ef4444;
    --success-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.1), 0 2px 4px -1px rgba(124, 58, 237, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04);
    --shadow-colored: 0 10px 30px -5px rgba(236, 72, 153, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 50%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 60%, var(--accent-color) 100%);
    color: var(--bg-white);
    padding: 3rem 0 2.5rem;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    opacity: 0.5;
}

.hero::after {
    content: '📖';
    position: absolute;
    font-size: 15rem;
    opacity: 0.08;
    right: -3rem;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
}

.hero::before {
    content: '✒️';
    position: absolute;
    font-size: 12rem;
    opacity: 0.08;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn:focus {
    outline: 3px solid rgba(243, 158, 11, 0.5);
    outline-offset: 2px;
}

/* Quiz Section */
.quiz-section {
    padding: 3rem 0;
    min-height: 60vh;
    position: relative;
}

.quiz-section::before {
    content: '"';
    position: absolute;
    font-size: 20rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.03;
    top: -5rem;
    left: 5%;
    pointer-events: none;
    line-height: 1;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.question-container {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.question-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.question-title::before {
    content: '❝';
    position: absolute;
    left: -1.5rem;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.answer-btn {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.answer-btn::before {
    content: '→';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.answer-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateX(8px) translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.answer-btn:hover::before {
    color: var(--bg-white);
    transform: translateY(-50%) translateX(5px);
}

.answer-btn:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.answer-btn.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-colored);
}

.answer-btn.selected::before {
    color: var(--bg-white);
}

/* Contact Form Section */
.contact-form-section {
    padding: 3rem 0;
    min-height: 70vh;
}

.contact-form-section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.form-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lead-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error {
    border-color: var(--error-color);
}

.required {
    color: var(--error-color);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    min-height: 1.25rem;
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
}

/* Thank You Section */
.thank-you-section {
    padding: 3rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-accent) 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.6s ease;
}

.thank-you-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.thank-you-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.thank-you-content .note {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.footer-section a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .question-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .answers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .answer-btn:hover {
        transform: translateY(-4px);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .quiz-section,
    .contact-form-section {
        padding: 4rem 0;
    }
    
    .question-title::before {
        left: -2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .answer-btn {
        border-width: 3px;
    }
}
