/* Career / Join Us Form (CF7) */
section .wpcf7 {
  background-color: #faf7f2;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}

section .wpcf7 form {
  max-width: 100%;
  text-align: left;
}

/* Intro text */
section .wpcf7 .cf7-intro {
  font-size: 14px;
  color: black;
  text-align: center;
  margin-bottom: 1.5rem;
}

section .wpcf7 .cf7-intro a {
  color: #95282c;
  text-decoration: none;
}

section .wpcf7 .cf7-intro a:hover {
  text-decoration: underline;
}

/* Field spacing and labels */
section .wpcf7 .cf7-field {
  margin-top: 30px;
}

section .wpcf7 .cf7-field label {
  display: block;
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 15px;
}

section .wpcf7 .cf7-required {
  color: #b91c1c;
}

/* Two-column row for names */
section .wpcf7 .cf7-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

section .wpcf7 .cf7-row-2col .cf7-field {
  margin-top: 0;
}

/* Inputs */
section .wpcf7 input[type="text"],
section .wpcf7 input[type="email"],
section .wpcf7 input[type="tel"] {
  width: 100%;
  padding: 11px 7px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  color: #374151;
  box-sizing: border-box;
  line-height: normal;
}

section .wpcf7 input[type="text"]:focus,
section .wpcf7 input[type="email"]:focus,
section .wpcf7 input[type="tel"]:focus {
  outline: none;
  border-color: #7a1b1b;
}

section .wpcf7 input[type="text"]::placeholder,
section .wpcf7 input[type="email"]::placeholder,
section .wpcf7 input[type="tel"]::placeholder {
  color: #757575;
}

/* Phone group - country code + tel inline */
.cf7-phone-group {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.cf7-phone-group .wpcf7-form-control-wrap {
  display: flex;
  flex: 1;
}

.cf7-phone-group .wpcf7-form-control-wrap:first-child {
  flex: 0 0 auto;
  border-right: 1px solid #d1d5db;
}

.cf7-phone-group select.wpcf7-form-control {
  border: none;
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  outline: none;
  -webkit-appearance: auto;
  appearance: auto;
}

.cf7-phone-group input[type="tel"].wpcf7-form-control {
  border: none;
  border-radius: 0;
  flex: 1;
  width: 100%;
}

.cf7-phone-group input[type="tel"].wpcf7-form-control:focus {
  outline: none;
  box-shadow: none;
}

/* File upload */
section .wpcf7 .cf7-file-hint {
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  color: #6b7280;
  margin: 30px 0 15px 0;
}

section .wpcf7 input[type="file"] {
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  color: #6b7280;
  width: 100%;
  padding: 11px 7px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  line-height: normal;
}

/* Submit button */
.cf7-submit-wrap {
  text-align: center;
}

section .wpcf7 input[type="submit"] {
  background: var(--red);
  color: var(--white);
  border: var(--red) 1px solid;
  padding: 14px 80px;
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
  width: 100%;
}

section .wpcf7 input[type="submit"]:hover {
  background-color: var(--white);
  color: var(--red);
  border: var(--red) 1px solid;
}

/* Validation errors */
section .wpcf7 .wpcf7-not-valid-tip {
  color: #b91c1c;
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  margin-top: 15px;
}

section .wpcf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: clamp(0.875rem, 0.8216rem + 0.1487vw, 1rem); /* 16 14 */
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  section .wpcf7 .cf7-row-2col {
    grid-template-columns: 1fr;
  }

  section .wpcf7 {
    padding: 1.5rem 1.25rem;
  }

  section .wpcf7 input[type="submit"] {
    padding: 14px 40px;
  }
}

.wpcf7-spinner {
  display: none;
}
