/* Questionnaire Specific Styles */

/* Progress Indicator styling */
.progress-container {
    background-color: var(--white);
    border: var(--border-width) solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.progress-bar-outer {
    flex: 1;
    height: 25px;
    background-color: #EEE;
    border: 3px solid var(--dark);
    box-shadow: 2px 2px 0 var(--dark);
    overflow: hidden;
    position: relative;
}
.progress-bar-inner {
    height: 100%;
    width: 0%;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.progress-label {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 80px;
    text-align: right;
}

/* Question Cards Styling */
.question-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--dark);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--dark);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.question-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 var(--dark);
}
.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--purple);
    border-bottom: var(--border-width) solid var(--dark);
}
.question-card.activity-card::before {
    background-color: var(--yellow);
}
.question-num {
    display: inline-block;
    background-color: var(--dark);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Modern Likert Scale Buttons */
.likert-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin-top: 1.2rem;
}
@media (max-width: 768px) {
    .likert-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.35rem;
    }
}
.likert-option {
    position: relative;
    cursor: pointer;
}
.likert-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.likert-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: var(--border-width) solid var(--dark);
    background-color: var(--white);
    box-shadow: 3px 3px 0 var(--dark);
    transition: all 0.1s ease;
}
.likert-option input:checked + span {
    background-color: var(--yellow);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--dark);
}
.likert-option:hover span {
    background-color: #FFFDE5;
    transform: scale(1.05) translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--dark);
}
.likert-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .likert-container {
        gap: 0.4rem;
    }
    .likert-option span {
        font-size: 0.95rem;
        padding: 0.6rem 0.3rem;
    }
}

/* ==========================================================================
   NEW WIZARD STYLING & ANIMATIONS
   ========================================================================== */

/* Step Progress Header Styles */
.step-progress-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-progress-item {
    background-color: var(--white);
    border: 2px solid var(--dark);
    box-shadow: 2px 2px 0 var(--dark);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.step-progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #eee;
    border: 2px solid var(--dark);
    flex-shrink: 0;
}
.step-progress-icon i {
    width: 16px;
    height: 16px;
}

.step-progress-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
}

.step-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active Step */
.step-progress-item.active {
    background-color: var(--yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--dark);
}
.step-progress-item.active .step-progress-icon {
    background-color: var(--white);
}
.step-progress-item.active .step-lbl {
    color: var(--dark);
}

/* Completed Step */
.step-progress-item.completed {
    background-color: var(--green);
}
.step-progress-item.completed .step-progress-icon {
    background-color: var(--white);
}
.step-progress-item.completed .step-lbl {
    color: var(--dark);
}

.active-step-label-container {
    background-color: var(--white);
    border: 2px solid var(--dark);
    padding: 0.75rem 1rem;
    box-shadow: 3px 3px 0 var(--dark);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Step Wizard Sections */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
}

/* Wizard Info Grid (Step 0) */
.wizard-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 600px) {
    .wizard-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Completion Screen Styles */
.completion-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .completion-layout {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
}

.completion-checklist li i {
    flex-shrink: 0;
}

/* Validation Alert Banner */
.neo-validation-error {
    background-color: var(--primary);
    color: var(--white);
    border: 4px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    padding: 1rem 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Transition Animations */
.fade-slide-next {
    animation: slideNext 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-slide-prev {
    animation: slidePrev 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideNext {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slidePrev {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsiveness for Steps Indicator Header */
@media (max-width: 768px) {
    .step-progress-wrapper {
        gap: 0.4rem;
    }
    .step-progress-item {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    .step-progress-icon {
        width: 26px;
        height: 26px;
    }
    .step-title {
        font-size: 0.7rem;
    }
    .step-lbl {
        font-size: 0.55rem;
    }
}

@media (max-width: 600px) {
    .step-progress-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 0.6rem !important;
        padding: 0.2rem 0.2rem 0.6rem 0.2rem !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        grid-template-columns: none !important;
    }
    .step-progress-item {
        flex: 0 0 110px !important;
        scroll-snap-align: start !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0.5rem !important;
        box-sizing: border-box !important;
        background-color: var(--white);
        border: 2px solid var(--dark);
        box-shadow: 2px 2px 0 var(--dark);
    }
    .step-progress-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-top: 0.25rem !important;
    }
    .step-lbl {
        font-size: 0.55rem !important;
    }
    .step-title {
        font-size: 0.65rem !important;
        max-width: 90px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }
    .step-progress-icon {
        width: 24px !important;
        height: 24px !important;
        border: 2px solid var(--dark) !important;
        background-color: #eee !important;
        flex-shrink: 0 !important;
    }
    .step-progress-icon i {
        width: 14px !important;
        height: 14px !important;
    }
    .step-progress-item.active {
        background-color: var(--yellow) !important;
        box-shadow: 3px 3px 0 var(--dark) !important;
    }
    .step-progress-item.active .step-progress-icon {
        background-color: var(--white) !important;
    }
    .step-progress-item.completed {
        background-color: var(--green) !important;
    }
    .step-progress-item.completed .step-progress-icon {
        background-color: var(--white) !important;
    }
}

@media (max-width: 480px) {
    .likert-container {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.25rem !important;
    }
    .likert-option span {
        padding: 0.6rem 0.2rem !important;
        font-size: 0.9rem !important;
        border-width: 2px !important;
        box-shadow: 2px 2px 0 var(--dark) !important;
        min-height: 44px !important;
    }
    .likert-option input:checked + span {
        transform: translate(1px, 1px) !important;
        box-shadow: 1px 1px 0 var(--dark) !important;
    }
    .likert-legend {
        font-size: 0.65rem !important;
        margin-top: 0.4rem !important;
    }
}

/* Wizard Buttons Class */
.wizard-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 480px) {
    .wizard-actions {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    .wizard-actions button,
    .wizard-actions a {
        width: 100% !important;
        flex: none !important;
    }
}

