/* Class names are prefixed "contact_form_react" (not "fragment_*") since this stylesheet and any
   fragment's CSS on the same page are both injected globally/unscoped -- see the equivalent note
   in hepheos-case-studies-react/assets/style.css for the collision this avoids. */

.contact_form_react {
  padding: 34px 36px 38px;
  border-radius: 20px;
  box-shadow: 0 24px 50px -30px rgba(25, 49, 51, .34);
}

.contact_form_react__title {
  font-size: 26px;
  font-weight: 800;
}

.contact_form_react__hint {
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 10px;
  max-width: 52ch;
}

.contact_form_react__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.contact_form_react__field_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact_form_react__field_wrap--full {
  grid-column: 1 / -1;
}

.contact_form_react__field_error {
  font-size: 13px;
  color: #d64545;
}

.contact_form_react__field_hint {
  font-size: 12px;
  color: var(--secondary);
  text-align: right;
}

.contact_form_react__field {
  width: 100%;
  border: 1px solid rgba(25, 49, 51, .16);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  outline: none;
  resize: none;
}
.contact_form_react__field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 234, 166, .2);
}
.contact_form_react__field--full {
  grid-column: 1 / -1;
}

.contact_form_react__select {
  appearance: none;
  color: var(--secondary);
}

.contact_form_react__captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(25, 49, 51, .16);
  background: #fff;
}
.contact_form_react__captcha:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 234, 166, .2);
}

.contact_form_react__captcha_image {
  height: 40px;
  width: 120px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

.contact_form_react__captcha_image--loading {
  background: linear-gradient(90deg, rgba(25, 49, 51, .05) 25%, rgba(25, 49, 51, .1) 37%, rgba(25, 49, 51, .05) 63%);
  background-size: 400% 100%;
  animation: contact_form_react_shimmer 1.4s ease infinite;
}

@keyframes contact_form_react_shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.contact_form_react__captcha_refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s ease, background .15s ease, transform .2s ease;
}
.contact_form_react__captcha_refresh:hover {
  color: var(--primary);
  background: rgba(25, 49, 51, .05);
}
.contact_form_react__captcha_refresh:active {
  transform: rotate(180deg);
}
.contact_form_react__captcha_refresh:disabled {
  opacity: .5;
  cursor: default;
}

.contact_form_react__captcha_divider {
  width: 1px;
  align-self: stretch;
  background: rgba(25, 49, 51, .12);
  flex-shrink: 0;
}

.contact_form_react__captcha_input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border: none;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 15px;
  color: var(--dark);
  background: transparent;
  outline: none;
}
.contact_form_react__captcha_input::placeholder {
  color: var(--secondary);
}

.contact_form_react__captcha_caption {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--secondary);
}

@media (max-width: 575.98px) {
  .contact_form_react__captcha {
    flex-wrap: wrap;
  }
  .contact_form_react__captcha_divider {
    display: none;
  }
  .contact_form_react__captcha_input {
    flex: 1 1 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(25, 49, 51, .16);
  }
}

.contact_form_react__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact_form_react__submit {
  padding: 14px 26px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.contact_form_react__disclaimer {
  font-size: 13px;
  color: var(--secondary);
  max-width: 30ch;
}

@media (max-width: 575.98px) {
  .contact_form_react__form {
    grid-template-columns: 1fr;
  }
}
