/* Quiz Container */
.quiz-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--border-light);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #0a5f4e 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Quiz Steps */
#quizSteps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 120px;
    position: relative;
    overflow: hidden;
}

.quiz-step {
    position: absolute;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.quiz-step.prev {
    transform: translateX(-100%);
}

.step-content {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.step-header {
    margin-bottom: 32px;
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.step-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.1);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.input-row .form-input {
    width: auto;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Option Cards */
.option-grid {
    display: grid;
    gap: 12px;
}

.option-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary);
    background: #f8fffe;
}

.option-card.selected {
    border-color: var(--primary);
    background: #e8f7f4;
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

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

.option-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 14px;
    color: var(--text-medium);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-option:hover {
    border-color: var(--primary);
}

.checkbox-option.selected {
    background: #e8f7f4;
    border-color: var(--primary);
}

.checkbox-option input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    color: var(--text-dark);
}

/* Likert Scale */
.likert-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.likert-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-medium);
    transition: all 0.2s;
}

.likert-option:hover .likert-circle {
    border-color: var(--primary);
    background: #f8fffe;
}

.likert-option.selected .likert-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.likert-label {
    font-size: 13px;
    color: var(--text-medium);
    text-align: center;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 32px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.loading-subtext {
    color: var(--text-medium);
}

/* Results Box */
.results-box {
    background: linear-gradient(135deg, #e8f7f4 0%, #f8fffe 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 32px;
}

.results-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.results-label {
    font-size: 18px;
    color: var(--text-medium);
}

/* Celebration */
.celebration {
    text-align: center;
    padding: 40px;
}

.celebration-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.celebration-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.celebration-text {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Privacy Checkboxes */
.privacy-checks {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.privacy-check {
    display: flex;
    align-items: start;
    margin-bottom: 16px;
}

.privacy-check input {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-check label {
    font-size: 14px;
    color: var(--text-medium);
    cursor: pointer;
    line-height: 1.5;
}

.privacy-check a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-check a:hover {
    text-decoration: underline;
}

/* Navigation */
.quiz-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 24px;
    transition: all 0.2s;
}

.btn-back:hover {
    color: var(--primary);
}

#nextBtn {
    margin-left: auto;
}

/* Search Input */
.search-input {
    position: relative;
}

.search-input input {
    padding-right: 40px;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 20px;
    padding: 0 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-content {
        padding: 32px 24px;
    }

    .step-title {
        font-size: 24px;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .likert-scale {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .likert-circle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .likert-label {
        font-size: 11px;
    }

    .results-value {
        font-size: 36px;
    }

    .celebration-icon {
        font-size: 60px;
    }

    .celebration-title {
        font-size: 28px;
    }
}
