:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Навигация */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .btn-primary {
    color: white !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Timeline */
.typical-day {
    background: var(--light-color);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: attr(data-time);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: calc(50% - 2rem);
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.solution-pain h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.pain-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.solution-answer {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.solution-answer h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.solution-answer ul {
    list-style: none;
    padding-left: 0;
}

.solution-answer li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.solution-answer li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Calculator */
.calculator {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.calculator-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.calculator-result {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
}

.result-breakdown h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.breakdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.breakdown-item.total {
    font-weight: 600;
    font-size: 1.1rem;
}

.breakdown-item.discount {
    color: var(--secondary-color);
}

.breakdown-item.final {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.result-included {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.result-included h4 {
    margin-bottom: 1rem;
}

.result-included ul {
    list-style: none;
}

.result-included li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.result-included i {
    color: var(--secondary-color);
}

/* Transparency */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.transparency-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.transparency-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.transparency-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.qr-placeholder {
    margin: 1.5rem 0;
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
}

.experts-list, .equipment-list {
    text-align: left;
}

.expert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.expert-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.expert-name {
    font-weight: 600;
    color: var(--dark-color);
}

.expert-role {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.expert-experience {
    font-size: 0.85rem;
    color: var(--text-color);
}

.equipment-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.equipment-item i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.calibration {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
}

.link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Guarantees */
.guarantees {
    background: var(--dark-color);
    color: white;
}

.guarantees .section-title,
.guarantees .section-subtitle {
    color: white;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.guarantee-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.guarantee-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.guarantee-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.guarantee-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* How It Works */
.how-it-works {
    background: var(--light-color);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Reviews (Ozon Style) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-rating {
    display: flex;
    gap: 0.25rem;
    color: var(--accent-color);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-color);
}

.review-title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-position {
    font-size: 0.85rem;
    color: var(--text-color);
}

.review-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-text p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.review-pros-cons {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
}

.pros, .cons {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.pros strong {
    color: var(--secondary-color);
}

.cons strong {
    color: #dc2626;
}

/* FAQ */
.faq {
    background: var(--light-color);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.faq-answer > div {
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p, .faq-answer ul, .faq-answer ol {
    margin-bottom: 1rem;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 1.5rem;
}

.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.faq-answer th, .faq-answer td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.faq-answer th {
    background: var(--light-color);
    font-weight: 600;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-top: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    color: var(--text-color);
}

.form-checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-checkbox label a:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-color);
}

.contact-messengers h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.messengers {
    display: flex;
    gap: 1rem;
}

.messenger-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.messenger-btn:hover {
    transform: translateY(-2px);
}

.messenger-btn.whatsapp {
    background: #25d366;
    color: white;
}

.messenger-btn.telegram {
    background: #0088cc;
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    display: flex;
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-card {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item::before {
        left: 1rem;
        transform: translateY(-50%);
    }

    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem !important;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   QUIZ MODAL STYLES
   ============================================ */

/* Modal Overlay and Container */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quiz-modal.active {
    display: flex;
}

.quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.quiz-container {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    z-index: 10001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Close Button */
.quiz-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.quiz-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.quiz-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Progress Bar */
.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.progress-step.completed .step-circle {
    background: #4caf50;
    color: white;
}

.progress-step.completed .step-circle::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.5rem 1.5rem;
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
}

.progress-step.completed ~ .progress-line::after,
.progress-step.active ~ .progress-line::after {
    width: 100%;
}

/* Quiz Form */
.quiz-form {
    position: relative;
    min-height: 350px;
}

.quiz-step {
    display: none;
    animation: fadeInStep 0.4s ease-out;
}

.quiz-step.active {
    display: block;
}

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

.quiz-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quiz-note {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #f44336;
}

.error-message {
    display: none;
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.error-message.show {
    display: block;
}

/* Quiz Options (Radio Cards) */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quiz-option {
    cursor: pointer;
}

.quiz-option input[type="radio"] {
    display: none;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    min-height: 140px;
    text-align: center;
}

.option-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.option-card strong {
    font-size: 1.1rem;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.25rem;
}

.option-card small {
    font-size: 0.85rem;
    color: #666;
}

.quiz-option:hover .option-card {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quiz-option input[type="radio"]:checked + .option-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quiz-option input[type="radio"]:checked + .option-card i,
.quiz-option input[type="radio"]:checked + .option-card strong,
.quiz-option input[type="radio"]:checked + .option-card small {
    color: white;
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #764ba2;
}

/* Quiz Buttons */
.quiz-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-buttons button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quiz-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-buttons .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.quiz-buttons .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-buttons .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.quiz-buttons .btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.quiz-buttons .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Screen */
.quiz-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-success h3 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.quiz-success p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.quiz-success .btn-primary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-success .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quiz-container {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }

    .quiz-header h2 {
        font-size: 1.5rem;
    }

    .quiz-header p {
        font-size: 0.9rem;
    }

    .quiz-progress {
        padding: 0;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .progress-line {
        margin: 0 0.25rem 1.5rem;
    }

    .quiz-step h3 {
        font-size: 1.25rem;
    }

    .quiz-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .option-card {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }

    .option-card i {
        font-size: 1.5rem;
    }

    .option-card strong {
        font-size: 1rem;
    }

    .option-card small {
        font-size: 0.8rem;
    }

    .quiz-buttons {
        flex-direction: column-reverse;
    }

    .quiz-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 1.5rem 1rem;
    }

    .quiz-header h2 {
        font-size: 1.25rem;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .step-label {
        display: none;
    }

    .success-icon {
        font-size: 3rem;
    }
}
