/* Wizard Container */
.wizard-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    /* Wider for better layout */
    margin: 0 auto;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.progress-bar-bg {
    background: #e0e0e0;
    height: 4px;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.progress-bar-fill {
    background: var(--accent-color);
    height: 4px;
    width: 0%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.wizard-steps-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.step-indicator {
    background: white;
    border: 2px solid #e0e0e0;
    color: #aeaeae;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: default;
    transition: all 0.3s ease;
}

.step-indicator.active {
    border-color: var(--accent-color);
    color: var(--color-primary);
    /* Assuming primary color is dark */
    transform: scale(1.2);
}

.step-indicator.completed {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Form Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.step-description {
    margin-bottom: 20px;
    color: #666;
}

/* Inputs & Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-option:hover,
.checkbox-option:hover {
    background: #f9f9f9;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    accent-color: var(--accent-color);
    transform: scale(1.2);
}

/* Rating Scale */
.rating-scale {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 15px;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.rating-option input {
    margin-bottom: 5px;
}

.rating-option span {
    font-size: 0.85rem;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-prev,
.btn-next {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-prev {
    background: #f0f0f0;
    color: #555;
    border: none;
}

.btn-prev:hover {
    background: #ddd;
}

.btn-next {
    background: var(--accent-color);
    color: white;
    border: none;
}

.btn-next:hover {
    background: #c79100;
    /* Darker gold */
}

/* Responsive */
@media (max-width: 600px) {
    .wizard-container {
        padding: 25px 15px;
        margin: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        /* Optional: flatter look on mobile */
    }

    /* Force container full width on mobile */
    #inscricao .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .form-input,
    .form-select {
        padding: 12px;
        font-size: 1rem;
    }

    .wizard-steps-indicators {
        gap: 5px;
        margin-bottom: 20px;
    }

    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .rating-scale {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
    }

    .rating-option {
        width: 18%;
        margin-bottom: 10px;
    }

    .rating-option span {
        font-size: 0.8rem;
    }

    .wizard-navigation {
        margin-top: 30px;
        padding-top: 20px;
        gap: 10px;
    }

    .btn-prev,
    .btn-next {
        padding: 12px 20px;
        font-size: 1rem;
        flex: 1;
        /* Make buttons expanded */
    }
}

/* Radio Group Error Highlight */
.radio-group.error,
.checkbox-group.error,
.rating-scale.error {
    border: 1px solid #dc3545;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(220, 53, 69, 0.05);
}

.modal-content-wizard {
    background: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    border-top: 6px solid var(--accent-color);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}