.hwr-recruitment {
  color: inherit;
  font: inherit;
  max-width: 900px;
  margin: 24px 0;
  clear: both;
  padding: 28px;
  border: 1px solid rgba(122, 58, 150, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(45, 45, 55, 0.08);
}

.hwr-recruitment,
.hwr-recruitment * {
  box-sizing: border-box;
}

.hwr-recruitment__intro {
  display: grid;
  gap: 10px;
}

.hwr-recruitment .hwr-recruitment__heading {
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.hwr-recruitment .hwr-recruitment__contact-text {
  margin: 0;
  color: inherit;
  opacity: 0.78;
}

.hwr-recruitment__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 4px;
}

.hwr-recruitment__contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hwr-recruitment__toggle,
.hwr-recruitment__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: #7a3a96;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hwr-recruitment__toggle {
  margin-top: 22px;
}

.hwr-recruitment__toggle:hover,
.hwr-recruitment__submit:hover {
  background: #5a2774;
}

.hwr-recruitment__toggle:focus-visible,
.hwr-recruitment__submit:focus-visible,
.hwr-recruitment__contact:focus-visible {
  outline: 3px solid rgba(88, 169, 223, 0.55);
  outline-offset: 3px;
}

.hwr-recruitment__form input:focus-visible,
.hwr-recruitment__form textarea:focus-visible,
.hwr-recruitment__form select:focus-visible {
  outline: 2px solid rgba(88, 169, 223, 0.55);
  outline-offset: -2px;
}

.hwr-recruitment__toggle[aria-expanded="true"] {
  background: #5a2774;
}

.hwr-recruitment__form-wrap {
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(45, 45, 55, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.42s ease, margin-top 0.42s ease, padding-top 0.42s ease, opacity 0.24s ease, visibility 0s linear 0.42s;
}

.hwr-recruitment__form-wrap.is-open {
  max-height: 2400px;
  margin-top: 24px;
  padding-top: 24px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: max-height 0.42s ease, margin-top 0.42s ease, padding-top 0.42s ease, opacity 0.24s ease, visibility 0s linear 0s;
}

.hwr-recruitment__form {
  display: grid;
  gap: 20px;
}

.hwr-recruitment__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hwr-recruitment__field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hwr-recruitment__field--categories,
.hwr-recruitment__field--message-toggle,
.hwr-recruitment__message-wrap,
.hwr-recruitment__field--privacy {
  grid-column: 1 / -1;
}

.hwr-recruitment__field--categories {
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hwr-recruitment__form label,
.hwr-recruitment__form legend {
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.hwr-recruitment__form legend {
  padding: 0;
}

.hwr-recruitment__option {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
  cursor: pointer;
}

.hwr-recruitment__option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #7a3a96;
}

.hwr-recruitment__form input[type="text"],
.hwr-recruitment__form input[type="tel"],
.hwr-recruitment__form input[type="email"],
.hwr-recruitment__form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 45, 55, 0.22);
  border-radius: 10px;
  color: inherit;
  background: #fff;
  font: inherit;
}

.hwr-recruitment__form textarea {
  min-height: 120px;
  resize: vertical;
}

.hwr-recruitment__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.hwr-recruitment__field--categories .hwr-recruitment__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px 14px 48px;
  border: 1px solid rgba(122, 58, 150, 0.18);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 0%, #fbf8fd 100%);
  color: inherit;
  font-weight: 600 !important;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hwr-recruitment__field--categories .hwr-recruitment__option:hover {
  border-color: rgba(122, 58, 150, 0.42);
  box-shadow: 0 7px 18px rgba(122, 58, 150, 0.1);
  transform: translateY(-1px);
}

.hwr-recruitment__field--categories .hwr-recruitment__option::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(122, 58, 150, 0.32);
  border-radius: 7px;
  background: #fff;
  content: "";
  transform: translateY(-50%);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hwr-recruitment__field--categories .hwr-recruitment__option::after {
  position: absolute;
  top: 50%;
  left: 29px;
  color: #fff;
  content: "✓";
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hwr-recruitment__field--categories .hwr-recruitment__option:has(input:checked) {
  border-color: rgba(122, 58, 150, 0.62);
  background: linear-gradient(145deg, #faf4fd 0%, #f1e7f7 100%);
  box-shadow: 0 8px 20px rgba(122, 58, 150, 0.14);
}

.hwr-recruitment__field--categories .hwr-recruitment__option:has(input:checked)::before {
  border-color: #7a3a96;
  background: #7a3a96;
  box-shadow: 0 3px 8px rgba(122, 58, 150, 0.25);
}

.hwr-recruitment__field--categories .hwr-recruitment__option:has(input:checked)::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hwr-recruitment__field--categories .hwr-recruitment__option:focus-within {
  border-color: rgba(88, 169, 223, 0.78);
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(88, 169, 223, 0.65);
}

.hwr-recruitment__field--categories .hwr-recruitment__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hwr-recruitment__field--privacy {
  padding-top: 4px;
}

.hwr-recruitment__message-wrap {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: max-height 0.32s ease, opacity 0.2s ease, visibility 0s linear 0.32s;
}

.hwr-recruitment__message-wrap.is-open {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: max-height 0.32s ease, opacity 0.2s ease, visibility 0s linear 0s;
}

.hwr-recruitment__field--privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hwr-recruitment__error {
  min-height: 1.2em;
  color: #a32626;
  font-size: 0.9rem;
}

.hwr-recruitment__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hwr-recruitment__submit[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.hwr-recruitment__status {
  min-height: 1.4em;
  margin-top: 16px;
  color: inherit;
}

.hwr-recruitment__status:empty {
  min-height: 0;
  margin-top: 0;
}

.hwr-recruitment__status--success {
  color: #286b32;
}

.hwr-recruitment__status--error {
  color: #a32626;
}

.hwr-recruitment__status--sending {
  opacity: 0.75;
}

.hwr-recruitment__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 680px) {
  .hwr-recruitment {
    margin: 18px 0;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hwr-recruitment__fields {
    grid-template-columns: 1fr;
  }

  .hwr-recruitment__options {
    grid-template-columns: 1fr;
  }

  .hwr-recruitment__field--categories,
  .hwr-recruitment__field--message-toggle,
  .hwr-recruitment__message-wrap,
  .hwr-recruitment__field--privacy {
    grid-column: auto;
  }

  .hwr-recruitment__actions,
  .hwr-recruitment__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hwr-recruitment__form-wrap,
  .hwr-recruitment__form-wrap.is-open,
  .hwr-recruitment__message-wrap,
  .hwr-recruitment__message-wrap.is-open {
    transition: none;
  }
}
