/* Public styles for Hire-Fit Engine */

.hfe-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hfe-survey-form {
    margin-top: 20px;
}

.hfe-field-group {
    margin-bottom: 25px;
}

.hfe-field-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.hfe-field-group input[type="text"],
.hfe-field-group input[type="email"],
.hfe-field-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hfe-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.hfe-trait-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.hfe-trait-item label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

.hfe-trait-slider {
    width: 100%;
    margin: 10px 0;
}

.hfe-trait-value {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.hfe-submit-group {
    text-align: center;
    margin-top: 30px;
}

.hfe-submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.hfe-submit-button:hover {
    background: #005a87;
}

.hfe-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hfe-loading {
    margin-top: 15px;
    padding: 10px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    text-align: center;
    color: #0073aa;
}

.hfe-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 6px;
}

.hfe-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.hfe-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hfe-assessment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hfe-assessment-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.hfe-score-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.hfe-score-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hfe-flags {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.hfe-flag-require_human_confirmation {
    color: #dc3545;
    font-weight: bold;
}

.hfe-flag-gather_additional_context {
    color: #ffc107;
}

.hfe-recommendations {
    margin-top: 20px;
    padding: 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
}

.hfe-recommendations ul {
    margin: 10px 0;
    padding-left: 20px;
}

.hfe-profile-display {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.hfe-profile-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.hfe-assessments-list {
    margin-top: 15px;
}

.hfe-assessment-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
}

.hfe-assessment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hfe-assessment-date {
    color: #6c757d;
    font-size: 14px;
}

.hfe-job-listing {
    margin: 20px 0;
}

.hfe-job-item {
    background: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hfe-job-item h4 {
    margin-top: 0;
    color: #0073aa;
}

.hfe-job-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.hfe-job-description {
    margin: 15px 0;
    line-height: 1.6;
}

.hfe-job-requirements {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.hfe-requirements-list {
    margin: 10px 0;
    padding-left: 20px;
}

.hfe-requirements-list li {
    margin-bottom: 5px;
}

.hfe-job-actions {
    text-align: right;
    margin-top: 15px;
}

.hfe-apply-button {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.hfe-apply-button:hover {
    background: #218838;
}

/* Responsive design */
@media (max-width: 768px) {
    .hfe-survey-container,
    .hfe-assessment-container,
    .hfe-profile-display {
        margin: 10px;
        padding: 15px;
    }
    
    .hfe-traits-grid {
        grid-template-columns: 1fr;
    }
    
    .hfe-score-summary {
        grid-template-columns: 1fr;
    }
    
    .hfe-assessment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}