/* ========================================
   QUIZ PAGE
   Interactive Quiz System
   ======================================== */

.quiz-container {
    background: var(--background-light);
    border-radius: var(--radius-2xl);
    max-width: 700px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    margin: var(--space-lg) auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: rgba(224, 224, 224, 0.5);
    border-radius: 0;
    margin-bottom: 0;
    z-index: 100;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-main-light));
    transition: width 0.4s ease;
    border-radius: 3px;
}

.step-indicator {
    text-align: center;
    color: var(--text-light);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
}

.quiz-content {
    position: relative;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-step.active.quiz-step-with-image {
    display: flex;
    flex-direction: column;
}

.quiz-step:not(.quiz-step-with-image) {
    padding: var(--space-2xl) var(--space-3xl);
}

.top-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.content-below {
    background: #ffffff;
    padding: var(--space-2xl) var(--space-3xl) var(--space-2xl);
}

.question-title {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    color: var(--text-black);
    margin-bottom: var(--space-xl);
    margin-top: 0;
    text-align: center;
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
}

.question {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--text-black);
    margin-bottom: var(--space-2xl);
    text-align: center;
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
}

.image-with-buttons {
    margin-bottom: var(--space-lg);
}

.main-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--background-white);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.option-btn:hover {
    border-color: var(--primary-main);
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(174, 143, 112, 0.2);
}

.option-btn:active {
    transform: translateY(0);
}

.option-btn small {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-regular);
    color: var(--text-medium-gray);
    margin-top: var(--space-xs);
}

.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.choice {
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 3px solid transparent;
    position: relative;
}

.choice:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-main);
}

.choice img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.choice-label {
    padding: var(--space-md);
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    color: var(--text-dark);
    background: var(--background-light);
}

.email-step {
    display: none;
    padding: var(--space-2xl) var(--space-3xl);
}

.email-step.active {
    display: block;
}

.input-group {
    margin-top: var(--space-xl);
}

.input-group + .input-group {
    margin-top: var(--space-sm);
}

.input-group input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-medium);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-family: var(--font-body);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px rgba(174, 143, 112, 0.1);
}

.submit-btn {
    width: 100%;
    padding: var(--space-md);
    margin-top: var(--space-xl);
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-main-dark) 100%);
    color: var(--background-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(174, 143, 112, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.thank-you {
    display: none;
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
}

.thank-you.active {
    display: block;
}

.thank-you h2 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.thank-you p {
    font-size: var(--text-lg);
    color: var(--text-medium-gray);
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--primary-main-dark) 100%);
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--background-white);
}
