.fitjob-functional-page:has(.contact-page-hero) {
  padding: 0;
  overflow-x: clip;
  background: #f6f7f9;
}

.fitjob-functional-page:has(.contact-page-hero) > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.contact-page-hero {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 42px;
  text-align: center;
}

.contact-hero-copy {
  min-width: 0;
}

.contact-kicker {
  display: block;
  margin-bottom: 14px;
  color: #ef3434;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-page-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  color: #191919;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.contact-page-hero p {
  max-width: 700px;
  margin: 22px auto 0;
  color: #687083;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
}

.contact-form-section {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 96px;
}

.contact-form-intro {
  margin: 0 0 22px;
  text-align: center;
}

.contact-form-intro h2 {
  margin: 0;
  color: #191919;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.contact-form-card {
  min-width: 0;
  padding: 36px;
  border: 1px solid #e1e4e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.contact-request-form {
  display: grid;
  gap: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-field span {
  color: #24262b;
  font-size: 14px;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d3d7de;
  border-radius: 12px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-field input,
.contact-field select {
  min-height: 54px;
  padding: 0 15px;
}

.contact-field textarea {
  min-height: 168px;
  padding: 15px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 0;
  border-color: #ef3434;
  box-shadow: 0 0 0 4px rgba(239, 52, 52, .1);
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #687083;
  font-size: 13px;
  line-height: 1.55;
}

.contact-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.contact-consent a {
  color: #c92724;
  font-weight: 700;
}

.contact-submit {
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: #ef3434;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.contact-submit:hover {
  background: #d52d2d;
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.contact-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-notice {
  margin-bottom: 22px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.contact-notice.is-success {
  border: 1px solid #a9dfbd;
  background: #edf9f1;
  color: #176334;
}

.contact-notice.is-error {
  border: 1px solid #f1b5b5;
  background: #fff2f2;
  color: #9c2424;
}

@media (max-width: 760px) {
  .contact-page-hero,
  .contact-form-section {
    width: min(100% - 32px, 640px);
  }

  .contact-page-hero {
    padding: 52px 0 30px;
  }

  .contact-form-section {
    padding: 18px 0 72px;
  }

  .contact-form-card {
    padding: 28px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .contact-page-hero,
  .contact-form-section {
    width: calc(100% - 24px);
  }

  .contact-page-hero {
    padding: 42px 0 24px;
  }

  .contact-kicker {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .contact-page-hero h1 {
    font-size: clamp(36px, 11.5vw, 46px);
    line-height: 1.06;
  }

  .contact-page-hero p {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-form-section {
    padding: 14px 0 56px;
  }

  .contact-form-intro {
    margin-bottom: 16px;
  }

  .contact-form-intro h2 {
    font-size: 28px;
  }

  .contact-form-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .contact-request-form {
    gap: 17px;
  }

  .contact-field input,
  .contact-field select {
    min-height: 52px;
  }

  .contact-field textarea {
    min-height: 150px;
  }

  .contact-submit {
    width: 100%;
  }
}
