/* NEXTZHEN Contact page */

.contact-hero .company-hero__media {
  background-image: url("/assets/images/contact/hero.png");
  background-position: center center;
}

.contact-hero .company-hero__overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Page heading */

.contact-heading {
  background-color: #ffffff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 11.7px 1px rgba(185, 185, 185, 0.08);
}

.contact-heading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.04vw, 20px);
  width: min(100%, 1338px);
  margin: 0 auto;
  padding: clamp(72px, 7.81vw, 150px) 24px clamp(48px, 5.21vw, 100px);
  text-align: center;
}

.contact-heading__title {
  margin: 0;
  color: #333333;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(32px, 2.760416vw, 53px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.contact-heading__subtitle {
  width: min(100%, 1290px);
  margin: 0;
  color: rgba(51, 51, 51, 0.8);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(16px, 1.197916vw, 23px);
  font-weight: 400;
  line-height: clamp(24px, 1.5625vw, 30px);
}

/* Inquiry form */

.contact-inquiry {
  padding: 0 24px clamp(64px, 6.25vw, 120px);
  background-color: #ffffff;
}

.contact-inquiry__inner {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

.contact-card {
  padding: 40px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-form__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.contact-form__title {
  margin: 0;
  color: #211c1c;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(22px, 1.40625vw, 27px);
  font-weight: 700;
  line-height: 1.3;
}

.contact-form__subtitle {
  margin: 0;
  max-width: 52rem;
  color: #8b8b8b;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.885416vw, 17px);
  font-weight: 400;
  line-height: 1.5;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.contact-field__label {
  color: #211c1c;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 1.09375vw, 21px);
  font-weight: 600;
  line-height: 1.3;
}

.contact-field__control {
  width: 100%;
  margin: 0;
  padding: 20px 16px;
  color: #211c1c;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-field__control::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

.contact-field__control:hover {
  border-color: #cbd5e1;
}

.contact-field__control:focus {
  outline: none;
  border-color: #1b2cc1;
  box-shadow: 0 0 0 3px rgba(27, 44, 193, 0.16);
}

.contact-field__control:focus-visible {
  outline: none;
  border-color: #1b2cc1;
  box-shadow: 0 0 0 3px rgba(27, 44, 193, 0.16);
}

.contact-field__control[aria-invalid="true"] {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.contact-field__control--textarea {
  display: block;
  width: 100%;
  height: 480px;
  min-height: 480px;
  resize: vertical;
}

.contact-field__error {
  min-height: 1.125rem;
  margin: 0;
  color: #c62828;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.125rem;
}

/* Privacy policy */

.contact-privacy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.contact-privacy__title {
  margin: 0;
  color: #211c1c;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(16px, 0.9375vw, 18px);
  font-weight: 700;
  line-height: 1.4;
}

.contact-privacy__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-privacy__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-privacy__item--retention {
  gap: 6px;
}

.contact-privacy__item-title {
  margin: 0;
  color: #211c1c;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.885416vw, 17px);
  font-weight: 600;
  line-height: 1.4;
}

.contact-privacy__item-text,
.contact-privacy__notice,
.contact-privacy__bullet-text {
  margin: 0;
  color: #8b8b8b;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.885416vw, 17px);
  font-weight: 400;
  line-height: 1.5;
}

.contact-privacy__bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.contact-privacy__bullet-mark {
  flex-shrink: 0;
  color: #8b8b8b;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.885416vw, 17px);
  line-height: 1.5;
}

.contact-privacy__notice {
  margin: 0;
}

/* Consent */

.contact-consent {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-consent__label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.contact-consent__box {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: 1.5px solid #1b2cc1;
  border-radius: 4px;
  transition: box-shadow 180ms ease;
}

.contact-consent__check {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 160ms ease;
}

.contact-consent__input:checked + .contact-consent__box .contact-consent__check {
  opacity: 1;
}

.contact-consent__input:focus-visible + .contact-consent__box {
  box-shadow: 0 0 0 3px rgba(27, 44, 193, 0.2);
}

.contact-consent__input[aria-invalid="true"] + .contact-consent__box {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.contact-consent__text {
  color: #211c1c;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(16px, 0.989583vw, 19px);
  font-weight: 400;
  line-height: 1.4;
}

/* Form feedback */

.contact-form-feedback {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.contact-form-feedback.is-success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.contact-form-feedback.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* Honeypot — hidden from users, available to bots */

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit */

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 20px 16px;
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(16px, 0.989583vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  background-color: #1b2cc1;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    opacity 180ms ease;
}

.contact-submit:hover:not(:disabled):not(.is-loading) {
  background-color: #161fa8;
}

.contact-submit:focus-visible {
  outline: 2px solid #1b2cc1;
  outline-offset: 3px;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-submit.is-loading,
.contact-submit[aria-busy="true"] {
  opacity: 0.72;
  cursor: progress;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .contact-field__control,
  .contact-consent__check,
  .contact-consent__box,
  .contact-submit {
    transition: none;
  }
}

/* Tablet */

@media (max-width: 1199px) {
  .contact-heading__inner {
    padding-inline: 24px;
  }

  .contact-inquiry {
    padding-inline: 24px;
  }

  .contact-card {
    padding: 32px;
  }

  .contact-form {
    gap: 32px;
  }

  .contact-form__row {
    gap: 16px;
  }

  .contact-field__control--textarea {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 899px) {
  .contact-heading__inner {
    padding: clamp(56px, 8vw, 80px) 20px clamp(40px, 6vw, 64px);
  }

  .contact-inquiry {
    padding-inline: 20px;
    padding-bottom: clamp(56px, 8vw, 80px);
  }

  .contact-card {
    padding: 28px 24px;
  }

  .contact-form {
    gap: 28px;
  }

  .contact-field__label {
    font-size: clamp(16px, 4vw, 21px);
  }

  .contact-field__control {
    padding: 16px 14px;
  }

  .contact-field__control--textarea {
    min-height: 260px;
  }
}

/* Mobile: single column */

@media (max-width: 767px) {
  .contact-form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .contact-form__fields {
    gap: 16px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-form {
    gap: 24px;
  }

  .contact-privacy {
    padding: 16px;
  }

  .contact-field__control--textarea {
    min-height: 200px;
  }

  .contact-consent__text {
    font-size: clamp(15px, 4vw, 19px);
  }

  .contact-submit {
    min-height: 56px;
    padding: 16px;
  }
}

@media (max-width: 599px) {
  .contact-heading__inner {
    padding-inline: 20px;
  }

  .contact-inquiry {
    padding-inline: 16px;
  }
}
