/* ===========================================
   HUMAN RESOURCES FORM - Modern Design
   =========================================== */

.human-res-form {
  
}

.hr-form-container {
    background: var(--global--color-white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form Header */
.hr-form-header {
    color: var(--global--color-white);
    text-align: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}



@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hr-form-icon {
    width: 80px;
    height: 80px;
    background: var(--global--color-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hr-form-icon i {
    font-size: 32px;
    color: var(--global--color-white);
}

.hr-form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    font-family: var(--global--font-heading);
}

.hr-form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Form Sections */
.form-sections {
    padding: 0;
}

.form-section {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-header i {
    color: var(--global--color-primary);
    font-size: 20px;
}

.section-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--global--color-heading);
    margin: 0;
    font-family: var(--global--font-heading);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position:relative;
}

/* Form Labels */
.form-label,
.form-group label {
    font-weight: 500;
    color: var(--global--color-heading);
    font-size: 13px;
    font-family: var(--global--font-heading);
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 200px;
    padding:15px;
    line-height:1.5;
}

.character-count {
    font-size: 12px;
    color: var(--global--color-body);
    text-align: right;
    margin-top: 5px;
}

.character-count .current {
    font-weight: 600;
    color: var(--global--color-primary);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: var(--global--color-heading);
    transition: all 0.3s ease;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--global--color-white);
    position: relative;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--global--color-primary);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.radio-item input[type="radio"]:checked + label .radio-custom {
    border-color: var(--global--color-primary);
}

.radio-item input[type="radio"]:checked + label .radio-custom::after {
    transform: scale(1);
}

.radio-item label:hover .radio-custom {
    border-color: var(--global--color-primary);
    transform: scale(1.05);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafbfc;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--global--color-primary);
    background: var(--global--color-primary-light);
}

.file-upload-area.dragover {
    border-color: var(--global--color-primary);
    background: var(--global--color-primary-light);
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    width: 60px;
    height: 60px;
    background: var(--global--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--global--color-white);
    font-size: 24px;
}

.file-upload-text strong {
    display: block;
    font-size: 16px;
    color: var(--global--color-heading);
    margin-bottom: 5px;
}

.file-upload-text span {
    font-size: 14px;
    color: var(--global--color-body);
}

.file-upload-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--global--color-white);
    border: 2px solid var(--global--color-primary);
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 15px;
    position: relative;
}

.selected-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-file-info i {
    color: var(--global--color-primary);
    font-size: 20px;
}

.file-name {
    font-weight: 600;
    color: var(--global--color-heading);
    margin-right: 10px;
}

.file-size {
    font-size: 14px;
    color: var(--global--color-body);
}

.remove-file {
    background: #dc3545;
    color: var(--global--color-white);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

.remove-file:active {
    transform: scale(0.95);
}

/* Consent Section */
.consent-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--global--color-white);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom i {
    color: var(--global--color-white);
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
    background: var(--global--color-primary);
    border-color: var(--global--color-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-label .checkbox-custom i {
    opacity: 1;
    transform: scale(1);
}

.consent-text {
    font-size: 14px;
    color: var(--global--color-body);
    line-height: 1.6;
}

.consent-text a {
    color: var(--global--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* reCAPTCHA */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Submit Section */
.submit-section {
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, var(--global--color-primary), var(--global--color-secondary));
    color: var(--global--color-white);
    border: none;
    border-radius: 8px 8px 0 8px;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--global--font-heading);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 100%;
}

.btn-submit:not(:disabled):hover {
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit:disabled:hover {
    transform: none;
}

.submit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--global--color-body);
}

.submit-note i {
    color: var(--global--color-primary);
}

/* Form Result Messages */
.form-result {
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.form-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-result.loading {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.result-icon {
    font-size: 20px;
}

/* Validation Messages */
.form-validation-message {
    font-size: 11px;
    color: #dc3545;
    display: flex;
    align-items: center;
    pointer-events:none;
    position:absolute;
    right:0;
}

.form-validation-message i {
    font-size: 9px;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    
    .hr-form-container {
        border-radius: 15px;
    }
    
    .hr-form-header {
        padding: 30px 20px;
    }
    
    .hr-form-header h2 {
        font-size: 1.6rem;
    }
    
    .hr-form-header p {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .file-upload-area {
        padding: 25px 15px;
    }
    
    .file-upload-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .consent-text {
        font-size: 13px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .hr-form-header {
        padding: 25px 15px;
    }
    
    .hr-form-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .hr-form-icon i {
        font-size: 28px;
    }
    
    .hr-form-header h2 {
        font-size: 1.4rem;
    }
    
    .hr-form-header p {
        font-size: 0.95rem;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .file-upload-area {
        padding: 20px 10px;
    }
    
    .file-upload-text strong {
        font-size: 15px;
    }
    
    .file-upload-text span {
        font-size: 13px;
    }
}