/* Quiz Modal Styles */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-overlay.active {
    display: flex;
    opacity: 1;
}

.quiz-container {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.quiz-overlay.active .quiz-container {
    transform: translateY(0);
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

/* Progress Bar */
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--primary-color, #2E7D32); /* Fallback green */
    width: 20%;
    transition: width 0.4s ease;
}

/* Steps */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

.quiz-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.quiz-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Options Grid */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option-btn {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 600;
}

.quiz-option-btn:hover {
    border-color: var(--primary-color, #2E7D32);
    background-color: #f9fdf9;
    transform: translateX(5px);
}

/* Form Styles */
#quizBiometriaForm .input-group {
    margin-bottom: 15px;
}

#quizBiometriaForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

#quizBiometriaForm input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

#quizBiometriaForm input:focus {
    border-color: var(--primary-color, #2E7D32);
    outline: none;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Loading State */
.quiz-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color, #2E7D32);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result State */
.quiz-result {
    text-align: center;
}

.result-badge {
    background-color: #e8f5e9;
    color: #2E7D32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.quiz-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

.plan-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.plan-header span:first-child {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.plan-price {
    color: #2E7D32;
    font-weight: 800;
    font-size: 20px;
}

.plan-price small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(46, 125, 50, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.guarantee-text {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}
