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

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #3d1a78 0%, #2a1054 100%);
    padding: 12px 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    gap: 3px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
}

.logo-text {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
}

.logo-svg {
    height: 30px;
    width: auto;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #0a609c 0%, #0a558f 100%);
    padding: 40px 20px 0;
    position: relative;
    min-height: 500px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.hero-title .quote {
    color: #facc15;
}

/* Quiz Card */
.quiz-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    margin: 0 auto 20px;
}

.quiz-step {
    border: none;
}

.quiz-question {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
}

/* Progress Bar */
.progress-box {
    margin-bottom: 20px;
}

.progress-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.progress-complete {
    font-weight: 700;
}

.progress-bar-container {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4 0%, #2196f3 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    background-size: 20px 20px;
    animation: progress-stripe 1s linear infinite;
}

@keyframes progress-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Quiz Options */
.quiz-options {
    display: grid;
    gap: 10px;
}

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

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

.quiz-options-5 .quiz-btn:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

.quiz-btn {
    background: #5055f7;
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    background: #3d42d4;
    transform: translateY(-2px);
}

/* Quiz Result */
.quiz-result {
    text-align: center;
    padding: 20px 0;
}

.loading-steps {
    padding: 30px 0;
}

.loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: loader-bounce 1s infinite;
}

.loader-dot:nth-child(1) {
    background: #ff396f;
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    background: #6236ff;
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    background: #1dcc70;
    animation-delay: 0.4s;
}

@keyframes loader-bounce {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.step-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.result-content {
    padding: 20px 0;
}

.congrats-text {
    color: #90c156;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
}

.result-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.result-text .highlight {
    color: #90c156;
    font-weight: 700;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    background: #facc15;
    color: #000;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.cta-icon {
    margin-right: 8px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.countdown-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: 600;
}

.countdown {
    font-family: monospace;
    font-size: 1.4rem;
}

/* Hero Image */
.hero-image {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Bar */
.stats-bar {
    background: #0a558f;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stats-text {
    color: #fff;
    font-size: 1rem;
}

.stats-text strong {
    color: #facc15;
}

.stats-faces {
    height: 25px;
    width: auto;
}

/* Quotes Section */
.quotes-section {
    padding: 60px 20px;
    background: #fff;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.quotes-table-wrapper {
    max-width: 750px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 350px;
    overflow-y: auto;
}

.quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.quotes-table thead {
    background: #1973b7;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.quotes-table th {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quotes-table td {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.quotes-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.quotes-table tbody tr:nth-child(even) {
    background: #fff;
}

.quotes-table tbody tr:hover {
    background: #f0f7ff;
}

.blur-name {
    filter: blur(5px);
    user-select: none;
}

/* Reviews Section */
.reviews-section {
    padding: 60px 20px;
    background: #eef8fb;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    border: 1px solid #1973b7;
    border-radius: 10px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.review-stars {
    height: 14px;
    width: auto;
    max-width: 82px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    flex-grow: 1;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0fa343;
    font-size: 0.85rem;
}

.badge-icon {
    width: 12px;
    height: 12px;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: #fff;
    text-align: center;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 30px 15px 0;
    }

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

    .quiz-card {
        padding: 20px 15px;
    }

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

    .quiz-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .quiz-options-4,
    .quiz-options-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .quotes-table th,
    .quotes-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

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

@media (max-width: 480px) {
    .quiz-options-4,
    .quiz-options-5 {
        grid-template-columns: 1fr;
    }

    .quiz-options-5 .quiz-btn:last-child {
        max-width: 100%;
    }

    .cta-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .stats-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* Scrollbar Styling */
.quotes-table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.quotes-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.quotes-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.quotes-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
