/* Quiz Modal Styles */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop for focus */
    z-index: 20000;
    /* Above everything */
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.quiz-content {
    background: white;
    max-width: 800px;
    /* Wider for cards */
    margin: 5% auto;
    border-radius: 20px;
    padding: 0;
    /* Clean edges */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-header {
    background: var(--primary-green);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-header h2 {
    color: white;
    /* Override default primary-green */
    margin: 0;
    font-size: 1.5rem;
}

.close-quiz {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.quiz-body {
    padding: 40px;
    text-align: center;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.quiz-question {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 40px;
    font-family: var(--font-serif);
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.quiz-option {
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.quiz-option-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.quiz-option h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.quiz-option p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Result Card */
.quiz-result-container {
    display: flex;
    flex-direction: column;
    /* Mobile first */
    gap: 30px;
    text-align: left;
    background: #f0f7f4;
    border-radius: 20px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .quiz-result-container {
        flex-direction: row;
    }
}

.result-image {
    flex: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.result-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-tag {
    background: var(--accent-orange);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    align-self: flex-start;
    margin-bottom: 15px;
}

.result-title {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.result-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.lead-capture {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px dashed var(--primary-green);
}

.lead-capture input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #128C7E;
}