/* Job Posting Specific Styles */

.posting-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-title {
    text-align: center;
    color: #2E7D32;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Job Type Selector */
.job-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-option {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.type-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.type-option.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1));
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-option h3 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

.type-option p {
    color: #666;
    font-size: 0.9rem;
}

/* Job Form */
.job-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3:before {
    content: '';
    width: 4px;
    height: 20px;
    background: #4CAF50;
    border-radius: 2px;
}

/* Input Styles */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.detect-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.detect-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Checkbox Groups */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group h4 {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    transform: scale(1.2);
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border: 2px solid #FFC107;
    border-radius: 15px;
    padding: 1.5rem;
}

.premium-option {
    text-align: center;
}

.premium-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.premium-label input[type="checkbox"] {
    width: auto;
    transform: scale(1.5);
    margin: 0;
}

.premium-text {
    font-weight: 600;
    color: #F57F17;
    font-size: 1.1rem;
}

.premium-text small {
    display: block;
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.form-actions .btn {
    min-width: 150px;
    position: relative;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Success Modal */
.success-modal {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-modal h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #FF9800;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .job-type-selector {
        grid-template-columns: 1fr;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .posting-container {
        padding: 0 0.5rem;
    }
    
    .job-form {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .type-option {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .posting-container {
        margin: 1rem auto;
    }
    
    .job-form {
        padding: 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .premium-label {
        flex-direction: row;
        text-align: left;
    }
    
    .premium-text {
        font-size: 1rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}