/* Frontend Form Styles */

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

.rekuna-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.rekuna-form-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.rekuna-step-indicator {
    font-size: 14px;
    color: #666;
}

.rekuna-step-number {
    font-weight: bold;
    color: #0073aa;
}

.rekuna-form-step h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.rekuna-form-field {
    margin-bottom: 20px;
}

.rekuna-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.rekuna-form-field .required {
    color: #d63638;
    margin-left: 3px;
}

.rekuna-field-help {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

.rekuna-form-input,
.rekuna-form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.rekuna-form-input:focus,
.rekuna-form-textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.rekuna-form-input.error,
.rekuna-form-textarea.error {
    border-color: #d63638;
}

.rekuna-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rekuna-form-checkbox {
    margin-right: 8px;
    width: auto;
}

.rekuna-taxonomy-field {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    position: relative;
}

.rekuna-taxonomy-field.error {
    border-color: #d63638;
}

.rekuna-taxonomy-search {
    margin-bottom: 15px;
}

.rekuna-taxonomy-search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.rekuna-taxonomy-options {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.rekuna-taxonomy-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.rekuna-taxonomy-option:hover {
    background: #f0f6fc;
}

.rekuna-taxonomy-option.selected {
    background: #0073aa;
    color: #fff;
}

.rekuna-taxonomy-option:last-child {
    border-bottom: none;
}

.rekuna-taxonomy-selected {
    margin-top: 10px;
    padding: 8px;
    background: #e9e9e9;
    border-radius: 4px;
    min-height: 20px;
}

.rekuna-selected-item {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 4px 8px;
    background: #0073aa;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    position: relative;
}

.rekuna-selected-item-name {
    margin-right: 4px;
}

.rekuna-selected-item-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rekuna-selected-item-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rekuna-max-selection-message {
    margin-top: 8px;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
}

.rekuna-edit-selection-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.rekuna-edit-selection-btn:hover {
    background: #005a87;
}

.rekuna-taxonomy-field--max-reached {
    border-color: #28a745;
    background: #f8fff9;
}

.rekuna-taxonomy-field--max-reached .rekuna-taxonomy-search-input {
    background: #f0f8f0;
    border-color: #28a745;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

.rekuna-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.rekuna-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.rekuna-btn-primary {
    background: #0073aa;
    color: #fff;
}

.rekuna-btn-primary:hover {
    background: #005a87;
}

.rekuna-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.rekuna-btn-secondary:hover {
    background: #e0e0e0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .rekuna-talent-form {
        margin: 10px;
        padding: 15px;
    }
    
    .rekuna-form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .rekuna-btn {
        width: 100%;
    }
}