/* Contact form styles. */
.page-contact-form {
  height: 100vh;
  height: 100dvh;
  min-width: 20rem;
  overflow: hidden;
}

.page-contact-form .site-header,
.page-contact-form .site-footer {
  display: none;
}

.page-contact-form main {
  height: 100%;
}

.contact-page {
  align-items: center;
  background: #070d18;
  display: flex;
  isolation: isolate;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.contact-page::before {
  background: url("../images/contact-form-background-v2.png") center/cover no-repeat;
  content: "";
  filter: blur(14px);
  inset: -16px;
  position: absolute;
  z-index: 0;
}

.contact-page::after {
  background: linear-gradient(rgba(7, 13, 24, 0.25), rgba(7, 13, 24, 0.25)), url("../images/contact-form-background-v2.png") center/contain no-repeat;
  content: "";
  filter: blur(12px);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.contact-dialog {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: calc(100% - 24px);
  max-width: 760px;
  overflow: auto;
  position: relative;
  scrollbar-gutter: stable;
  width: 100%;
  z-index: 2;
}

@supports not selector(::-webkit-scrollbar) {
  .contact-dialog {
    scrollbar-color: #8f9297 transparent;
    scrollbar-width: thin;
  }
}
.contact-dialog::-webkit-scrollbar {
  width: 10px;
}

.contact-dialog::-webkit-scrollbar-button {
  appearance: none;
  background: transparent;
  border: 0;
  display: none;
  height: 0;
  width: 0;
}

.contact-dialog::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 18px;
}

.contact-dialog::-webkit-scrollbar-thumb {
  background: #8f9297;
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 999px;
  min-height: 48px;
}

.contact-dialog::-webkit-scrollbar-thumb:hover {
  background: #6f7379;
  background-clip: content-box;
}

.contact-dialog__close {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe9f8;
  border-radius: 21px;
  color: #090d16;
  display: flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 22px;
  top: 22px;
  transition: background-color 160ms ease, transform 160ms ease;
  width: 42px;
  z-index: 1;
}

.contact-dialog__close:hover {
  background: #f4f8fc;
  transform: rotate(4deg);
}

.contact-dialog__close:focus-visible,
.contact-form__control:focus-visible,
.contact-form__submit:focus-visible {
  outline: 3px solid rgba(24, 116, 255, 0.35);
  outline-offset: 2px;
}

.contact-dialog__header {
  align-items: flex-start;
  border-bottom: 1px solid #dbe9f8;
  display: flex;
  flex-direction: column;
  padding: 32px 72px 22px 32px;
}

.contact-dialog__eyebrow {
  color: #1874ff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-dialog__title {
  color: #090d16;
  font-family: Montserrat, Roboto, system-ui, sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -2.16px;
  line-height: 48px;
  margin-bottom: 11px;
}

.contact-dialog__description {
  color: #58657b;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 23.2px;
  width: 100%;
}

.contact-form {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  padding: 26px 32px 32px;
}

.contact-form__grid {
  column-gap: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 16px;
  width: 100%;
}

.contact-form__field--conditional {
  grid-column: 1/-1;
}

.contact-form__field {
  display: grid;
  gap: 7px;
  grid-template-rows: 19px 46px;
  min-width: 0;
}

.contact-form__field--wide {
  grid-column: 1/-1;
  grid-template-rows: 19px 60px;
}

.contact-form__field--contact {
  grid-column: 1/-1;
}

.contact-form__field[hidden],
.contact-form__contact-fields[hidden] {
  display: none;
}

.contact-form__contact-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.contact-form__contact-fields {
  grid-column: 2/-1;
  min-width: 0;
}

.contact-form__contact-fields--whatsapp {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.contact-form__label {
  align-items: flex-start;
  color: #090d16;
  display: flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  gap: 2px;
  line-height: 18.85px;
}

.contact-form__required {
  color: #1874ff;
}

.contact-form__control {
  background: #fbfdff;
  border: 1px solid #cbdced;
  border-radius: 11px;
  color: #090d16;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  min-height: 46px;
  padding: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.contact-form__control::placeholder,
.contact-form__select:invalid {
  color: #757575;
  opacity: 1;
}

.contact-form__control:hover {
  border-color: #9fbedc;
}

.contact-form__control:focus {
  border-color: #1874ff;
  box-shadow: 0 0 0 3px rgba(24, 116, 255, 0.1);
}

.contact-form__control[aria-invalid=true] {
  border-color: #c62828;
}

.contact-form__field-error {
  color: #c62828;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.contact-form__select-wrap {
  position: relative;
}

.contact-form__select {
  appearance: none;
  cursor: pointer;
  height: 46px;
  padding-right: 34px;
}

.contact-form__select-icon {
  color: #090d16;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.contact-form__textarea {
  min-height: 60px;
  resize: vertical;
}

.contact-form__footer {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1fr) max-content;
  width: 100%;
}

.contact-form__consents {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__consent {
  align-items: flex-start;
  color: #58657b;
  display: flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
}

.contact-form__consent-label {
  cursor: pointer;
}

.contact-form__consent-link {
  color: #1874ff;
  font-weight: 600;
  margin-left: 0.25em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-form__consent-link:hover {
  color: #005ed6;
}

.contact-form__consent-link:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(24, 116, 255, 0.35);
  outline-offset: 2px;
}

.contact-form__checkbox {
  accent-color: #1874ff;
  flex: 0 0 auto;
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.contact-form__checkbox:focus-visible {
  outline: 3px solid rgba(24, 116, 255, 0.35);
  outline-offset: 2px;
}

.contact-form__actions {
  align-items: center;
  display: flex;
}

.contact-form__error {
  color: #c62828;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 14px;
}

.contact-form__submit {
  align-items: center;
  background: #090d16;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 15px 35px rgba(8, 15, 30, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  height: 58px;
  justify-content: center;
  padding: 0 28px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.contact-form__submit:hover {
  background: #1874ff;
  transform: translateY(-2px);
}

@media (max-width: 40rem) {
  .contact-form__footer,
  .contact-form__consents {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 48rem) {
  html:has(> body.page-contact-form) {
    overflow: hidden;
  }
  .contact-page {
    padding: 12px;
  }
  .contact-dialog {
    border-radius: 20px;
    height: 80vh;
    height: 80dvh;
    max-height: 100%;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .contact-dialog__close {
    right: 16px;
    top: 16px;
  }
  .contact-dialog__header {
    flex: 0 0 auto;
    height: max-content;
    min-height: max-content;
    padding: 28px 62px 22px 22px;
  }
  .contact-dialog__title {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1;
  }
  .contact-form {
    padding: 22px;
  }
  .contact-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form__field--website {
    order: 1;
  }
  .contact-form__field--job-title {
    order: 2;
  }
  #other-job-title-field {
    order: 3;
  }
  .contact-form__field--industry {
    order: 4;
  }
  .contact-form__field--wide,
  .contact-form__footer {
    order: 5;
  }
  .contact-form__field {
    grid-template-rows: max-content auto;
  }
  .contact-form__field--wide {
    grid-column: auto;
    grid-template-rows: max-content auto;
  }
  .contact-form__field--contact {
    grid-column: auto;
  }
  .contact-form__contact-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form__contact-fields {
    grid-column: auto;
  }
}
@media (max-width: 26.875rem) {
  .contact-form__contact-fields--whatsapp {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fit the contact dialog inside the landing modal without changing its fields. */
#contact-modal .contact-dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
#contact-modal .contact-dialog__close { cursor: pointer; padding: 0; }
#contact-modal .contact-form__error { margin-top: 0; padding: 0 32px 24px; }
#contact-modal .contact-form__submit:disabled { cursor: wait; opacity: .65; }
