/**
 * Survey Creator Wizard Styles
 */

.survey-creator-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.creator-wizard-container {
    background-color: var(--bg-primary);
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
}

.wizard-step.active .wizard-step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wizard-step.completed .wizard-step-number {
    background-color: var(--success-color);
    color: white;
}

.wizard-step.completed .wizard-step-number::before {
    content: "✓";
}

.wizard-step-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-step.active .wizard-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.wizard-step-line {
    width: 80px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1rem;
    transition: background-color var(--transition-base);
}

.wizard-step-line.completed {
    background-color: var(--success-color);
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
}

.wizard-step-content {
    padding: 2rem;
}

.wizard-step-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Date Inputs - prevent layout breaking */
input[type="date"] {
    max-width: 100%;
    width: 100%;
}

/* On larger screens, limit date input width */
@media (min-width: 768px) {
    input[type="date"] {
        max-width: 300px;
    }
}

.wizard-step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Form Elements */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.checkbox-label:hover {
    background-color: var(--bg-tertiary);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.cover-upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    cursor: pointer;
}

.radio-option label {
    cursor: pointer;
    font-weight: 500;
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-base);
}

.question-card:hover {
    border-color: var(--primary-color);
}

.question-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    background-color: var(--error-color);
    color: white;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.option-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.option-item input {
    flex: 1;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Radio Option Cards */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
}

.radio-option-card:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.radio-option-card input[type="radio"]:checked + .radio-option-content {
    color: var(--primary-color);
}

.radio-option-card input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

.radio-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.radio-option-icon {
    font-size: 2rem;
}

.radio-option-title {
    font-weight: 600;
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
}

.radio-option-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Summary Box */
.summary-box {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-box h3 {
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-steps {
        padding: 1rem;
    }

    .wizard-step-line {
        width: 40px;
        margin: 0 0.5rem;
    }

    .wizard-step-label {
        font-size: 0.75rem;
    }

    .wizard-step-content {
        padding: 1.5rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        flex-direction: column-reverse;
    }

    .wizard-actions button {
        width: 100%;
    }

    .radio-option-card {
        padding: 0.75rem;
    }

    .radio-option-icon {
        font-size: 1.5rem;
    }
}
