/* Khung tải CV kéo-thả của form ứng tuyển – cùng màu / font với .apply_form trong style.css */
.apply_form .cv_upload {
  position: relative;
}
.apply_form .cv_upload_input {
  /* ẩn nhưng vẫn focus được bằng bàn phím và vẫn nằm trong FormData */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.apply_form .cv_dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 190px;
  margin: 0;
  padding: 30px 24px;
  text-align: center;
  background: #fff;
  border: 2px dashed #e7e3f2;
  border-radius: 6px;
  box-shadow: 0px 2px 4px 0px rgba(12, 0, 46, 0.04);
  cursor: pointer;
  transition: border-color 0.2s linear, background-color 0.2s linear, box-shadow 0.2s linear;
}
.apply_form .cv_dropzone:hover,
.apply_form .cv_upload_input:focus-visible + .cv_dropzone {
  border-color: #c9b9f9;
  box-shadow: 0px 10px 14px 0px rgba(12, 0, 46, 0.06);
}
.apply_form .cv_upload.is-dragover .cv_dropzone {
  border-color: #5e2ced;
  background: #f7f4ff;
  box-shadow: 0px 20px 30px 0px rgba(94, 44, 237, 0.12);
}
.apply_form .cv_dropzone_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f2effc;
  color: #5e2ced;
  font-size: 26px;
  transition: transform 0.2s linear, background-color 0.2s linear, color 0.2s linear;
}
.apply_form .cv_upload.is-dragover .cv_dropzone_icon {
  transform: translateY(-4px);
  background: #5e2ced;
  color: #fff;
}
.apply_form .cv_dropzone_title {
  font: 500 16px/24px "Roboto", sans-serif;
  color: #222d39;
  margin-bottom: 6px;
}
.apply_form .cv_dropzone_title span {
  color: #5e2ced;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.apply_form .cv_dropzone_hint {
  font: 300 14px/22px "Roboto", sans-serif;
  color: #9ca3b9;
}

/* đã chọn file */
.apply_form .cv_file {
  display: none;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e7e3f2;
  border-radius: 6px;
  box-shadow: 0px 2px 4px 0px rgba(12, 0, 46, 0.04);
}
.apply_form .cv_upload.has-file .cv_dropzone {
  display: none;
}
.apply_form .cv_upload.has-file .cv_file {
  display: flex;
}
.apply_form .cv_file_icon {
  flex: 0 0 48px;
  height: 48px;
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f2effc;
  color: #5e2ced;
  font: 600 11px/1 "Roboto", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.apply_form .cv_file_info {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.apply_form .cv_file_name {
  font: 500 15px/22px "Roboto", sans-serif;
  color: #222d39;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apply_form .cv_file_meta {
  font: 300 13px/20px "Roboto", sans-serif;
  color: #677294;
}
.apply_form .cv_file_meta .ti-check {
  color: #00aa6a;
  margin-right: 4px;
}
.apply_form .cv_file_actions {
  flex: 0 0 auto;
  margin-left: 12px;
  display: flex;
  gap: 8px;
}
.apply_form .cv_file_btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7e3f2;
  border-radius: 50%;
  background: #fff;
  color: #677294;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s linear;
}
.apply_form .cv_file_btn:hover,
.apply_form .cv_file_btn:focus-visible {
  border-color: #5e2ced;
  color: #5e2ced;
  outline: none;
}
.apply_form .cv_file_btn.cv_remove:hover,
.apply_form .cv_file_btn.cv_remove:focus-visible {
  border-color: #f0576c;
  color: #f0576c;
}

/* lỗi chọn file (sai định dạng / quá lớn) */
.apply_form .cv_error {
  display: none;
  margin-top: 10px;
  font: 400 14px/22px "Roboto", sans-serif;
  color: #f0576c;
}
.apply_form .cv_error .ti-alert {
  margin-right: 6px;
}
.apply_form .cv_upload.has-error .cv_error {
  display: block;
}
.apply_form .cv_upload.has-error .cv_dropzone {
  border-color: #f7b5bf;
  background: #fffafb;
}

/* sau khi gửi xong form bị khoá */
.apply_form .cv_upload.is-disabled .cv_dropzone,
.apply_form .cv_upload.is-disabled .cv_file_btn {
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 575px) {
  .apply_form .cv_dropzone {
    min-height: 160px;
    padding: 24px 16px;
  }
  .apply_form .cv_file {
    padding: 14px;
  }
  .apply_form .cv_file_icon {
    flex-basis: 40px;
    height: 40px;
    margin-right: 12px;
  }
}
