/**
 * Smart CV Builder - Form Steps Component Styles
 */

/* Step Navigator */
.step-navigator {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.step-list::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: pointer;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.step-circle:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
}

.step-item.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
    max-width: 80px;
}

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

.step-item.completed .step-label {
    color: var(--success-color);
}

/* Progress Bar */
.step-progress {
    height: 4px;
    background: #f7fafc;
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.step-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.form-header h3 {
    margin-bottom: 0.25rem;
}

.form-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.form-body {
    padding: 2rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.form-navigation .btn {
    min-width: 120px;
}

/* Dynamic List */
.dynamic-list {
    margin-bottom: 1.5rem;
}

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

.dynamic-list-item {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.dynamic-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.dynamic-list-item-title {
    font-weight: 600;
    color: var(--primary-color);
}

.add-item-btn {
    width: 100%;
    border: 2px dashed #e2e8f0;
    background: transparent;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.add-item-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.add-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image Uploader */
.image-uploader {
    text-align: center;
    padding: 2rem;
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: #f7fafc;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 3rem;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Rich Text Editor */
.rich-text-editor {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.rich-text-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.rich-text-editor .ql-container {
    border: none;
    min-height: 120px;
}

/* Review Section */
.review-section {
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.review-section:hover {
    background: #edf2f7;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-section-title {
    font-weight: 600;
    color: var(--primary-color);
}

.review-item {
    display: flex;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.review-item-label {
    width: 100px;
    color: #718096;
}

.review-item-value {
    color: #2d3748;
}

/* Required Field */
.required::after {
    content: ' *';
    color: var(--error-color);
}

@media (max-width: 768px) {
    .step-list {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step-list::before {
        display: none;
    }

    .step-item {
        flex: 0 0 auto;
    }

    .step-label {
        display: none;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .form-navigation .btn {
        width: 100%;
    }
}
