/* CF7 Job Apply v4.3 — live apply-online look, 2-col + one 3-col row */

.apply-online-form,
.career-form {
  max-width: 980px;
  margin: 0 auto;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}

.apply-online-form h3,
.career-form h3 {
  color: #2b2b2b;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.apply-online-form .guidance,
.career-form .guidance {
  color: #6b6b6b;
  margin: 0 0 22px 0;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 22px;
}

.form-grid > p {
  grid-column: span 3;
  margin: 0;
}

.form-grid > p.col-third {
  grid-column: span 2;
}

.form-grid > p.full-width {
  grid-column: 1 / -1;
}

.apply-online-form label,
.career-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.apply-online-form .wpcf7-form-control-wrap,
.career-form .wpcf7-form-control-wrap {
  display: block;
}

.apply-online-form input[type="text"],
.apply-online-form input[type="email"],
.apply-online-form input[type="tel"],
.apply-online-form input[type="date"],
.apply-online-form input[type="number"],
.apply-online-form select,
.apply-online-form textarea,
.apply-online-form .wpcf7-text,
.apply-online-form .wpcf7-email,
.apply-online-form .wpcf7-tel,
.apply-online-form .wpcf7-date,
.apply-online-form .wpcf7-number,
.apply-online-form .wpcf7-select,
.apply-online-form .wpcf7-textarea,
.career-form input[type="text"],
.career-form input[type="email"],
.career-form input[type="tel"],
.career-form input[type="date"],
.career-form input[type="number"],
.career-form select,
.career-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d5cc;
  border-radius: 2px;
  font-size: 14px;
  color: #222;
  background: #fff;
  box-sizing: border-box;
  box-shadow: none;
}

.apply-online-form textarea,
.career-form textarea {
  min-height: 90px;
  resize: vertical;
}

.apply-online-form select,
.career-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

.apply-online-form input::placeholder,
.apply-online-form textarea::placeholder,
.career-form input::placeholder,
.career-form textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

.apply-online-form .notice-period-wrap.is-optional label::after,
.apply-online-form .experience-wrap.is-optional label::after,
.apply-online-form .job-history-wrap.is-optional label::after {
  content: " (not mandatory)";
  font-weight: 400;
  color: #6b6b6b;
}

.apply-online-form .city-other-wrap {
  display: none;
}

.apply-online-form .city-other-wrap.is-open {
  display: block;
}

.apply-online-form .word-count {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  font-weight: 400;
}

.apply-online-form .wpcf7-submit,
.apply-online-form input[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 2px;
  background: #a07812;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.apply-online-form .wpcf7-submit:hover,
.apply-online-form input[type="submit"]:hover {
  background: #8a6810;
}

.form-grid > p.file-upload-wrap {
  grid-column: span 3;
}

.file-upload-wrap.has-smart-upload label {
  margin-bottom: 8px;
}

.file-upload-wrap .cjaf-file-native,
.file-upload-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-wrap {
  position: relative;
}

.apply-online-form .cjaf-upload,
.career-form .cjaf-upload,
.cjaf-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 168px;
  padding: 22px 16px;
  border: 1px dashed #c9c0ae !important;
  border-radius: 6px !important;
  background: #faf8f3 !important;
  color: #333 !important;
  cursor: pointer;
  text-align: center;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-sizing: border-box;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cjaf-upload:hover,
.cjaf-upload:focus {
  border-color: #a07812 !important;
  background: #fff !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(160, 120, 18, 0.12) !important;
}

.cjaf-upload.is-drag {
  border-color: #a07812 !important;
  border-style: solid !important;
  background: #fff !important;
}

.cjaf-upload.has-file {
  border-style: solid !important;
  border-color: #a07812 !important;
  background: #fff !important;
}

.cjaf-upload.is-error {
  border-color: #b42318 !important;
  background: #fff8f7 !important;
}

.cjaf-upload-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23a07812' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 0l-4 4m4-4l4 4'/%3E%3Cpath d='M5 16.5V19a1 1 0 001 1h12a1 1 0 001-1v-2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cjaf-upload-title {
  font-size: 15px;
  font-weight: 700;
  color: #2b2b2b;
}

.cjaf-upload-hint {
  font-size: 12px;
  color: #7a7368;
}

.cjaf-upload-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #28303d !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
}

.cjaf-upload:hover .cjaf-upload-btn {
  background: #1f2631;
}

.cjaf-upload-name {
  margin-top: 4px;
  font-size: 12px;
  color: #6b6b6b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cjaf-upload.has-file .cjaf-upload-name {
  color: #2b2b2b;
  font-weight: 600;
}

.cjaf-upload.is-error .cjaf-upload-name {
  color: #b42318;
}

.wpcf7-response-output {
  color: #000 !important;
  background: #f6fff6 !important;
  border: 1px solid #c8f7c8 !important;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  display: block !important;
}

#cvUploadPopup,
#cv-upload-form {
  display: none !important;
}

@media (max-width: 800px) {
  .form-grid > p,
  .form-grid > p.col-third,
  .form-grid > p.file-upload-wrap {
    grid-column: 1 / -1;
  }
}
