.job-hero {
  background:var(--color-bg-soft);
  padding:50px 0;
  text-align:left;
}
.job-hero__subtitle {
  font-size:16px;
  color:var(--color-muted);
  margin:0 0 8px;
}
.job-hero__title {
  font-size:clamp(26px,4vw,36px);
  font-weight:700;
  margin:0;
}

.job-wrap {
  display:grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "content aside";
  gap:50px;
  margin:32px 0 80px;
}

.job-content {
  line-height:1.7;
  font-size:16px;
  color:var(--color-text);
  grid-area: content; 
}
/* Sticky box (desktop) */
.job-sidebar {
  position:relative;
  grid-area: aside;
}
.job-box {
  position:sticky;
  top:150px;
  background:#fff;
  border:1px solid #e1e5ee;
  border-radius:4px;
  padding:30px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.job-box p {
  margin:0 0 14px;
  font-size:16px;
  color:var(--color-text);
}
.job-box strong {
  display:block;
  margin-bottom:4px;
  font-weight:600;
}
.job-box .job-meta {
  display:block;      /* ép xuống dòng */
  margin-top:2px;     /* khoảng cách nhỏ giữa strong và text */
  color: var(--color-muted)
}
.btn-apply {
  display:block;
  width:100%;
  background:var(--color-primary);
  color:#fff;
  font-weight:600;
  font-size: 1rem;
  padding:12px 18px;
  border-radius:4px;
  text-align:center;
  border:none;
  cursor:pointer;
}
.btn-apply:hover {
  background: var(--color-primary-hover);
}

/* ========= BREAKPOINT ========= */
@media (max-width: 960px){
  .job-wrap{
    grid-template-columns: 1fr;
    grid-template-areas:
      "aside"
      "content";              /* cho sidebar (sticky box) lên trên */
    gap:20px;
  }
  .job-box{
    position: static;         /* bỏ sticky trên mobile */
    top: auto;
  }
}


/* ===== Modal ===== */
.modal {
  display:none;
  position:fixed;
  top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.6);
  z-index:1000;
  justify-content:center;
  align-items:center;
}
.modal-content {
  background:#fff;
  padding:24px;
  border-radius:8px;
  max-width:600px;
  width:90%;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
}
.modal
.modal-close {
  position:absolute;
  top:12px; right:16px;
  font-size:24px;
  cursor:pointer;
}
/* CF7 form fields inside modal */
.nx-body input[type=text],
.nx-body input[type=email],
.nx-body input[type=tel],
.nx-body input[type=url],
.nx-body input[type=file],
.nx-body textarea,
.nx-body select {
  width:100%;
  padding:10px 12px;
  border:1px solid #dcdcdc;
  border-radius:4px;
  font-size:14px;
  box-sizing:border-box;
  transition: border-color .2s, box-shadow .2s;
}
.nx-body textarea{
  resize: vertical;
  min-height: 130px;
}
.nx-body input[type=text]:focus,
.nx-body input[type=email]:focus,
.nx-body input[type=tel]:focus,
.nx-body input[type=url]:focus,
.nx-body input[type=file]:focus,
.nx-body textarea:focus,
.nx-body select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(11,87,208,.15); /* hiệu ứng glow nhẹ */
}

.nx-body .nx-fields label {
  display: block;
  margin: 0 0 32px;  /* mỗi label cách label trước 16px */
  font-size: 14px;
  font-weight: 400;
}

.wpcf7-not-valid-tip {
    position: absolute;
    margin-top: 6px;
    margin-bottom: 14px;
    white-space: nowrap;
}

.nx-body input[type=submit],
.nx-body button[type=submit] {
  display: block;
  width:100%;
  background:var(--color-primary);
  color:#fff;
  border:0;
  font-size: 1rem;
  border-radius:4px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
  text-align: center;
}
.nx-body input[type=submit]:hover {
  background:var(--color-primary-hover);
}
/* ==== Input file custom ==== */
.nx-body input[type="file"] {
  height: 44px;
  width: 100%;
  box-sizing: border-box;

  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fff
    url("../img/icon-attach.svg") 12px center / 18px 18px no-repeat; /* icon trái */

  padding: 0 12px 0 44px;   /* chừa khoảng trống cho icon */
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 44px;        /* chữ giữa dọc */
  cursor: pointer;
  display: block;
}

/* Ẩn nút mặc định */
.nx-body input[type="file"]::file-selector-button,
.nx-body input[type="file"]::-webkit-file-upload-button {
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}

/* Hover / Focus style */
.nx-body input[type="file"]:hover {
  border-color: #cfd6e4;
}
.nx-body input[type="file"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(11, 87, 208, .15);
}

.nx-body input[type="file"]:hover{ border-color:#cfd6e4; }
.nx-body input[type="file"]:focus{
  outline:none;
  border-color:var(--color-primary);
  box-shadow:0 0 0 2px rgba(11,87,208,.15);
}


/* === Checkbox group – clean & centered tick === */
.cf7-checkbox-group .wpcf7-list-item{
  display:flex; align-items:center; gap:10px; margin:6px 0;
}

.cf7-checkbox-group input[type="checkbox"]{
  /* reset */
  -webkit-appearance:none; -moz-appearance:none; appearance:none;

  width:24px; height:24px;
  border:1px solid var(--color-border);
  border-radius:4px;
  background:#fff;
  cursor:pointer;
  display:inline-block;
  vertical-align:middle;
  transition:border-color .2s, background-color .2s, box-shadow .2s;
}

/* focus ring (cho accessibility) */
.cf7-checkbox-group input[type="checkbox"]:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(11,87,208,.18);
  border-color:var(--color-primary);
}

/* checked: nền xanh + tick trắng ở GIỮA */
.cf7-checkbox-group input[type="checkbox"]:checked{
  background-color:var(--color-primary);
  border-color:var(--color-primary);
  /* tick SVG – luôn cân giữa, khỏi cần ::after canh tọa độ */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l5 5 9-11'/></svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size:16px 16px;
}

/* label text */
.cf7-checkbox-group label{ 
  margin-bottom:12px !important; 
  font-size:13px; color:var(--color-muted); }



