/* ==========================================
   Recruitment Form Common Styles
   Used by _RecruitmentFormCommonFields partial
   ========================================== */

/* Form Group */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input.readonly {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Validation States */
.field-error {
    display: none;
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc2626 !important;
    background: #fef2f2;
}

.form-group.has-error .drop-zone {
    border-color: #dc2626;
    background: #fef2f2;
}

.form-group.is-valid input,
.form-group.is-valid textarea {
    border-color: #16a34a !important;
}

.form-group.is-valid .drop-zone {
    border-color: #16a34a;
}

/* Error Summary */
.form-error-summary {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-error-summary strong {
    display: block;
    margin-bottom: 0.5rem;
}

.form-error-summary ul {
    margin: 0;
    padding-left: 1.2rem;
}

.form-error-summary ul li {
    margin-bottom: 0.2rem;
}

/* Autocomplete */
.autocomplete-wrap {
    position: relative;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: #f0f4ff;
    color: #667eea;
}

.autocomplete-item.no-match {
    color: #9ca3af;
    font-style: italic;
    cursor: default;
}

.autocomplete-item strong {
    color: #667eea;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

.drop-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.drop-text {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}

.drop-sub {
    color: #6b7280;
    font-size: 0.9rem;
}

.drop-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.drop-formats {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.drop-file-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.drop-file-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.drop-file-remove {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.2s;
}

.drop-file-remove:hover {
    background: #b91c1c;
}
