.job-section {
  background: var(--color-white);
  padding: 64px 0;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
.job-container {
  display: flex;
  margin: 0 auto;
  gap: 64px;
  position: relative;
}
.job-description {
  flex: 2;
  text-align: justify;
}
.job-sidebar {
  max-width: 384px;
  width: 100%;
  flex: 1;
  background: var(--color-brown-100);
  padding: 32px;
  position: sticky;
  top: 20px;
  height: fit-content;
}
.job-sidebar-title {
  margin-top: 18px;
  margin-bottom: 24px;
}
.job-title {
  text-transform: uppercase;
  margin-bottom: 64px;
}
.job-content h2 {
  font-size: 22px;
  line-height: 150%;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: var(--font-display);
  color: var(--color-brown-800);
  margin-top: 64px;
}
.job-content h2:first-child {
  margin-top: 0;
}
.job-content h3 {
  font-size: 18px;
  line-height: 150%;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-display);
  margin-top: 26px;
}
.job-content h3:first-child {
  margin-top: 0;
}
.job-content p {
  font-size: 16px;
  line-height: 150%;
  font-family: var(--font-display);
}

.job-detail {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.job-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.job-detail-icon {
  min-width: 24px;
  text-align: center;
}
.job-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-apply {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
}
.share-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.share-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.related-career-detail {
  padding-top: 64px;
  padding-bottom: 82px;
  background: var(--color-white);
}
.related-career-detail--title {
  line-height: 150%;
  background: linear-gradient(
    180deg,
    #b27850 0%,
    #d8bca7 50.53%,
    #fff6ee 101.05%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .job-container {
    gap: 32px;
  }
  .job-sidebar {
    position: static;
    max-width: 300px;
    padding: 24px;
  }
  .job-detail {
    gap: 12px;
  }
  .job-title {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .job-container {
    flex-direction: column;
  }
  .job-sidebar {
    position: static;
    max-width: 100%;
  }
  .job-title {
    margin-bottom: 32px;
  }
}

/** Modal */
.modal-career-detail {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

@media (max-width: 768px) {
  .modal-career-detail {
    z-index: 9999 !important;
  }
}

.modal-content {
  background: #ffffff;
  padding: 32px;
  max-width: 588px;
  width: 100%;
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-content h2 {
  margin-top: 0;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  cursor: pointer;
}

.btn-back {
  background: #ccc;
  color: #333;
}
.modal.show {
  display: flex;
}

/** Form */
.modal-form--header {
  position: relative;
}
.modal-form--title {
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.form-group {
  margin-bottom: 20px;
}
.form-mt-auto {
  margin-top: auto;
}
label {
  display: block;
  margin-bottom: 8px;
}
.form-input,
.form-select {
  width: 100%;
  padding: 0 16px;
  border: 1px solid #b8b8b8;
  box-sizing: border-box;
  border-radius: 0px;
  height: 43px;
  outline: none;
  appearance: none; /* Remove default arrow */
  background-color: white;
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Sửa lại phần icon cho select */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L5 4.5L9 0.5' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  padding-right: 40px; /* Tạo khoảng trống cho icon */
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #b8b8b8;
  box-sizing: border-box;
  border-radius: 0px;
  height: 43px;
  outline: none;
}

/* Sửa lại phần placeholder */
.form-input::placeholder,
.form-select::placeholder {
  color: #999999;
}
.form-select::placeholder {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 9px;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L5 4.5L9 0.5' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}
.required {
  color: red;
}
.error {
  color: red;
  font-size: 12px;
  display: none;
}
input:invalid + .error {
  display: block;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.full-width {
  width: 100%;
}
.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.form-actions-online {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Custom select icon */
.form-select {
  position: relative;
}
.form-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 9px;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L5 4.5L9 0.5' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Custom default option color */
.form-select option[disabled] {
  color: #999999; /* Gray color for default/placeholder option */
}
.form-select {
  color: #999999; /* Initially gray to match placeholder */
}
.form-select.selected {
  color: black; /* Black when a valid option is selected */
}
.btn-back {
  position: absolute;
  cursor: pointer;
  background: transparent;
}
.btn-apply-online {
  margin-top: 28px;
  width: 100%;
}
.btn-form-online-add {
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tab-form {
  display: flex;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--color-gray-100);
}
.tab-form:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none !important;
}

.btn-form-icon {
  border: none;
  background: transparent;
  cursor: pointer;
}
.modal-online-form-header {
  margin-bottom: 30px;
}
.form-scroll {
  /* overflow-y: auto;
    max-height: 70vh; */
}
.form-experience-item {
  background: var(--color-brown-100);
  padding: 16px;
  margin-bottom: 16px;
}

.form-degree-item {
  background: var(--color-brown-100);
  padding: 16px;
  margin-bottom: 16px;
}

/* Custom checkbox */
.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.custom-checkbox {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-black);
  background-color: white;
  display: inline-block;
  cursor: pointer;
  border-radius: 2px;
}

.custom-checkbox.checked {
  background-color: #b27850;
  border-color: #b27850;
}

.custom-checkbox.checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-label {
  cursor: pointer;
}

.form-info-experience {
  background: #f7f6f2;
  padding: 22px 26px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-info-degree {
  background: #f7f6f2;
  padding: 22px 26px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.edit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  background: transparent;
}
.font-italic {
  font-style: italic;
}
.info-contents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-contents--item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  padding-bottom: 10px;
}
.info-contents--item:last-child {
  border-bottom: none;
  padding-bottom: 0px;
}

.d-none {
  display: block;
}

/* Success Modal Styles */
.success-icon {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.modal-form .btn {
  width: 100%;
}

@media (max-width: 500px) {
  .two-column {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0px;
  }
  .d-none {
    display: none;
  }
  .modal-content {
    padding: 42px 12px;
  }
  .modal-form--title-online {
    width: 60%;
    margin: auto;
  }
  .modal-online-form-header {
    margin-bottom: 32px;
  }
}

.section-content {
  transition: max-height 0.3s ease;
}

.tab-form .btn-form-icon svg {
  transition: transform 0.3s ease;
}

.tab-form[data-expanded="true"] .btn-form-icon svg {
  transform: rotate(180deg);
}

/* Uploaded files display */
.uploaded-files-container {
  margin-top: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.attachment-info {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2em;
  color: #000000;
}

.delete-all-files {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2em;
  color: #8a8a8a;
  text-align: right;
  padding: 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px dashed #cfcfcf;
  margin-bottom: 8px;
  border-radius: 0;
}

.file-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2em;
  color: #000000;
  flex: 1;
}

.delete-file {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.btn-submit-application {
  background-color: #e6d8cb !important;
  color: black !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  border: none !important;
  font-size: 14px !important;
  line-height: 16px !important;
  width: 100% !important;
  padding: 12px 32px !important;
  border-radius: 100px !important;
  text-transform: none !important;
}

.btn-submit-application:hover {
  background-color: #dccabb !important;
}

.copy-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  z-index: 9999;
  text-align: center;
  pointer-events: none;
  min-width: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
