/* Post Job Page Styles */
.post-job-main {
    min-height: 100vh;
    background: #2563eb;
    padding-bottom: 2rem;
    padding-top: 5rem;
}

.post-job-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.post-job-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-job-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.post-job-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Job Form Container */
.job-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.job-form {
    padding: 2rem;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.step-header h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Character Counter */
.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

/* Skills Input */
.skills-input-container {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
    transition: border-color 0.2s ease;
}

.skills-input-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.skills-input-container input {
    border: none;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: none;
}

.skills-input-container input:focus {
    box-shadow: none;
    border-color: transparent;
}

.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
}

.skill-tag {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.2s ease;
}

.skill-tag .remove-skill {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.skill-tag .remove-skill:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Popular Skills */
.popular-skills {
    margin-top: 1rem;
}

.skills-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-suggestion {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.skill-suggestion:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.skill-suggestion.selected {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

/* Radio Groups */
.radio-group {
    display: grid;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked+.radio-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.radio-option input[type="radio"]:checked+.radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option input[type="radio"]:checked~.radio-content {
    color: #1e293b;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.2s ease;
}

.radio-content strong {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.radio-content small {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Budget Input */
.budget-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-weight: 600;
    z-index: 1;
}

.budget-input-container input {
    padding-left: 2rem;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
    position: relative;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.file-upload-area i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.file-upload-area p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-link {
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.uploaded-files {
    margin-top: 1rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: #3b82f6;
}

.file-name {
    font-weight: 500;
    color: #374151;
}

.file-size {
    color: #6b7280;
    font-size: 0.85rem;
}

.remove-file {
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.remove-file:hover {
    background: #fee2e2;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.2s ease;
}

.checkbox-content strong {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.checkbox-content small {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.step-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Job Preview Container */
.job-preview-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* Job Preview */
.job-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.job-preview h3 {
    background: #1e293b;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-content {
    padding: 1.5rem;
}

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

.preview-header h4 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 1rem;
}

.preview-budget {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.preview-meta span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.preview-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preview-skill {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.preview-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-avatar {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.preview-posted {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.85rem;
}

/* Pricing Summary */
.pricing-summary {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.pricing-summary h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: #4b5563;
}

.pricing-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.pricing-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    border-top: 2px solid #f1f5f9;
}

.pricing-note {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Step Progress Indicator */
.step-progress {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #e3e5e9;
    transition: all 0.2s ease;
}

.step-indicator.active .step-number {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.step-indicator.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #e3e7ef;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.step-indicator.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .post-job-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .job-preview-container {
        position: static;
        order: -1;
    }

    .step-progress {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 2rem;
        background: rgba(255, 255, 255, 0.9);
        padding: 1rem;
        border-radius: 12px;
        backdrop-filter: blur(10px);
    }

    .step-number {
        color: #6b7280;
    }

    .step-label {
        color: #6b7280;
    }
}

@media (max-width: 768px) {
    .post-job-main {
        padding: 1rem 0;
    }

    .post-job-header h1 {
        font-size: 2rem;
    }

    .job-form {
        padding: 1.5rem;
    }

    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .step-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .radio-group {
        gap: 0.5rem;
    }

    .radio-option {
        padding: 0.75rem;
    }

    .preview-header {
        flex-direction: column;
        gap: 1rem;
    }

    .preview-header h4 {
        margin-right: 0;
    }

    .step-progress {
        padding: 0.75rem;
    }

    .step-indicator {
        gap: 0.25rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        color: #6b7280;
    }

    .step-label {
        font-size: 0.7rem;
        color: #6b7280;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .job-form {
        padding: 1rem;
    }

    .preview-content {
        padding: 1rem;
    }

    .pricing-summary {
        padding: 1rem;
    }
}

/* Loading States */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message i {
    font-size: 0.8rem;
}