/* ============================================
   POST TASK - MULTI-STEP FORM STYLES
   ============================================ */

/* Container */
.post-task-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* Progress Bar */
.post-task-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.post-task-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e8edf5;
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 2px;
}

.post-task-progress .step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.post-task-progress .step-indicator .step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8edf5;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.post-task-progress .step-indicator.active .step-circle {
    background: #1449fb;
    color: white;
    border-color: #1449fb;
    box-shadow: 0 4px 20px rgba(20, 73, 251, 0.35);
    transform: scale(1.05);
}

.post-task-progress .step-indicator.completed .step-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.post-task-progress .step-indicator .step-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.post-task-progress .step-indicator.active .step-label {
    color: #1449fb;
    font-weight: 700;
}

.post-task-progress .step-indicator.completed .step-label {
    color: #10b981;
}

/* Step Container */
.post-task-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.post-task-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Title */
.post-task-step h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.post-task-step .step-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 28px;
}

/* Form Groups */
.post-task-form-group {
    margin-bottom: 24px;
}

.post-task-form-group label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 14px;
}

.post-task-form-group label .required {
    color: #ef4444;
    margin-left: 4px;
}

.post-task-form-group .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8edf5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
}

.post-task-form-group .form-control:focus {
    border-color: #1449fb;
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 73, 251, 0.08);
    background: white;
}

.post-task-form-group .form-control.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.post-task-form-group .form-control:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.post-task-form-group .help-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.post-task-form-group .error-text {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.post-task-form-group .error-text.show {
    display: block;
}

/* Task Type Cards */
.task-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.task-type-card {
    padding: 30px 24px;
    border: 3px solid #e8edf5;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.task-type-card:hover {
    border-color: #94a3b8;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.task-type-card.selected {
    border-color: #1449fb;
    background: #f0f5ff;
    box-shadow: 0 8px 30px rgba(20, 73, 251, 0.12);
    transform: translateY(-4px);
}

.task-type-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: -12px;
    right: 16px;
    background: #1449fb;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.task-type-card i {
    font-size: 40px;
    color: #1449fb;
    margin-bottom: 14px;
    display: block;
}

.task-type-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.task-type-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
}

.task-type-card .service-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.task-type-card .service-tag {
    background: #e8edf5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.task-type-card.selected .service-tag {
    background: #dbeafe;
    color: #1449fb;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.category-item {
    padding: 16px 12px;
    border: 2px solid #e8edf5;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.category-item:hover {
    border-color: #94a3b8;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.category-item.selected {
    border-color: #1449fb;
    background: #f0f5ff;
    box-shadow: 0 4px 16px rgba(20, 73, 251, 0.1);
}

.category-item i {
    font-size: 28px;
    color: #1449fb;
    display: block;
    margin-bottom: 6px;
}

.category-item span {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

/* Preferences Grid */
.preferences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-group .exp-level-btn,
.btn-group .duration-btn {
    padding: 10px 20px;
    border: 2px solid #e8edf5;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    transition: all 0.3s ease;
}

.btn-group .exp-level-btn:hover,
.btn-group .duration-btn:hover {
    border-color: #94a3b8;
}

.btn-group .exp-level-btn.active,
.btn-group .duration-btn.active {
    border-color: #1449fb;
    background: #f0f5ff;
    color: #1449fb;
}

/* Location Section */
.location-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e8edf5;
    margin: 16px 0;
}

.btn-location {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e8edf5;
    border-radius: 10px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-location:hover {
    border-color: #1449fb;
    background: #f0f5ff;
}

.btn-location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.location-section .map-preview {
    height: 220px;
    background: #e8edf5;
    border-radius: 12px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.location-section .map-preview.active {
    background: #dbeafe;
    color: #1449fb;
}

/* Summary Section */
.task-summary {
    background: #f8fafc;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid #e8edf5;
}

.task-summary .summary-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid #e8edf5;
}

.task-summary .summary-item:last-child {
    border-bottom: none;
}

.task-summary .summary-label {
    font-weight: 700;
    color: #64748b;
    width: 160px;
    flex-shrink: 0;
    font-size: 14px;
}

.task-summary .summary-value {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
}

/* Navigation Buttons */
.post-task-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #e8edf5;
}

.post-task-nav .btn {
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.post-task-nav .btn-primary {
    background: #1449fb;
    color: white;
}

.post-task-nav .btn-primary:hover {
    background: #0d3bb8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 73, 251, 0.3);
}

.post-task-nav .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.post-task-nav .btn-secondary {
    background: #e8edf5;
    color: #0f172a;
}

.post-task-nav .btn-secondary:hover {
    background: #d5dce6;
}

.post-task-nav .btn-success {
    background: #10b981;
    color: white;
}

.post-task-nav .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Success Screen */
.post-task-success {
    text-align: center;
    padding: 50px 20px;
}

.post-task-success .success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 24px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.post-task-success h2 {
    font-size: 32px;
    color: #0f172a;
    margin-bottom: 10px;
}

.post-task-success .task-id {
    font-size: 20px;
    color: #1449fb;
    font-weight: 700;
    background: #f0f5ff;
    padding: 10px 32px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
}

.post-task-success .success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.post-task-success .success-actions .btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-wrapper .file-upload-box {
    border: 2px dashed #e8edf5;
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.file-upload-wrapper .file-upload-box:hover {
    border-color: #1449fb;
    background: #f0f5ff;
}

.file-upload-wrapper .file-upload-box i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.file-upload-wrapper .file-upload-box p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.file-upload-wrapper .file-list {
    margin-top: 14px;
}

.file-upload-wrapper .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8edf5;
    margin-bottom: 8px;
}

.file-upload-wrapper .file-item .file-name {
    font-size: 14px;
    color: #0f172a;
}

.file-upload-wrapper .file-item .file-remove {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    padding: 4px 8px;
}

/* Visibility Options */
.visibility-options {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.visibility-options .visibility-option {
    flex: 1;
    padding: 18px;
    border: 2px solid #e8edf5;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.visibility-options .visibility-option:hover {
    border-color: #94a3b8;
}

.visibility-options .visibility-option.selected {
    border-color: #1449fb;
    background: #f0f5ff;
}

.visibility-options .visibility-option i {
    font-size: 28px;
    color: #1449fb;
    display: block;
    margin-bottom: 6px;
}

.visibility-options .visibility-option h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0;
}

.visibility-options .visibility-option p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Ready Box */
.ready-box {
    background: #f0fdf4;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .post-task-container {
        padding: 16px;
    }

    .post-task-progress {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 8px 0;
    }
    
    .post-task-progress .step-indicator .step-label {
        font-size: 9px;
    }
    
    .post-task-progress .step-indicator .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .task-type-grid {
        grid-template-columns: 1fr;
    }

    .preferences-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .post-task-nav {
        flex-direction: column-reverse;
    }
    
    .post-task-nav .btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .task-summary .summary-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .task-summary .summary-label {
        width: 100%;
    }
    
    .visibility-options {
        flex-direction: column;
    }

    .post-task-step h3 {
        font-size: 22px;
    }

    .row {
        grid-template-columns: 1fr !important;
    }
}