/* contact.css - Contact page
 * Source: Figma - Full prototype V4 -> Contact (989:2236) at 1728px
 */

.site-main--contact {
  background: var(--bg, #f2e8d4);
  color: var(--brand, #183a40);
  overflow-x: hidden;
}

.contact-hero {
  background: var(--bg, #f2e8d4);
  padding: 86px 0 70px;
}

.contact-hero__inner {
  width: min(100% - 140px, 1588px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(0, 797px);
  gap: clamp(56px, 5.8vw, 100px);
  align-items: start;
}

.contact-hero__left {
  display: flex;
  flex-direction: column;
  gap: 118px;
}

.contact-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 118px;
  font-style: italic;
  font-weight: 400;
  line-height: 0.95;
  color: var(--accent, #561f33);
  letter-spacing: 0;
}

.contact-hero__title em {
  font-style: italic;
  font-weight: 700;
}

.contact-hero__media {
  width: 629px;
  max-width: 100%;
  aspect-ratio: 629 / 544;
  overflow: hidden;
  border-radius: 0;
}

.contact-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero__right {
  width: 797px;
  max-width: 100%;
  padding-top: 0;
  min-width: 0;
}

.contact-hero__lead {
  margin: 42px 0 159px;
  font-family: var(--sans);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent, #561f33);
  letter-spacing: 0;
  text-align: right;
}

.contact-hero__form,
.contact-form {
  width: 100%;
  min-width: 0;
}

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

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form__field {
  position: relative;
  display: block;
}

.contact-form__input {
  width: 100%;
  height: 67px;
  padding: 0 40px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand, #183a40);
  background: transparent;
  border: 1px solid rgba(24, 58, 64, 0.34);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form__input::placeholder {
  color: #8f9092;
  opacity: 1;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--accent, #561f33);
  box-shadow: 0 0 0 2px rgba(86, 31, 51, 0.12);
}

.contact-form__textarea {
  resize: none;
  min-height: 150px;
  padding-top: 22px;
  padding-bottom: 48px;
  line-height: 1.35;
  overflow: hidden;
}

.contact-form__field--message .contact-form__textarea {
  padding-right: 150px;
}

.contact-form__counter {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
  color: #8f9092;
  pointer-events: none;
}

.contact-form__interest {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form__interest-label {
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  color: #8f9092;
}

.contact-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand, #183a40);
  background: transparent;
  border: 1px solid rgba(24, 58, 64, 0.12);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.contact-form__chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__chip:has(input:checked) {
  gap: 16px;
  color: var(--bg, #f2e8d4);
  background: var(--accent, #561f33);
  border-color: var(--accent, #561f33);
}

.contact-form__chip:has(input:focus-visible) {
  outline: 2px solid rgba(86, 31, 51, 0.3);
  outline-offset: 3px;
}

.contact-form__check {
  display: none;
  font-size: 16px;
  line-height: 1;
}

.contact-form__chip:has(input:checked) .contact-form__check {
  display: inline-block;
}

.contact-form__actions {
  margin-top: 0;
}

.contact-form__submit {
  width: 361px;
  height: 81px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent, #561f33);
  background: transparent;
  border: 1px solid var(--accent, #561f33);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  color: var(--bg, #f2e8d4);
  background: var(--accent, #561f33);
  outline: none;
}

@media (max-width: 1500px) {
  .contact-hero__inner {
    width: min(100% - 80px, 1320px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .contact-hero__title {
    font-size: clamp(82px, 6.8vw, 112px);
  }

  .contact-hero__lead {
    margin-top: clamp(28px, 2.4vw, 42px);
    margin-bottom: calc(clamp(165px, 12.5vw, 201px) - clamp(28px, 2.4vw, 42px));
  }

  .contact-form__row {
    gap: 28px;
  }

  .contact-form__input {
    padding-inline: 34px;
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .contact-hero {
    padding: 58px 0 64px;
  }

  .contact-hero__inner {
    width: min(100% - 48px, 760px);
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-hero__left {
    gap: 42px;
  }

  .contact-hero__right {
    width: 100%;
    padding-top: 0;
  }

  .contact-hero__lead {
    margin-bottom: 42px;
    font-size: 22px;
  }

  .contact-hero__media {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .contact-hero__inner {
    width: calc(100vw - 36px);
    max-width: 560px;
    overflow: hidden;
  }

  .contact-hero__title {
    font-size: clamp(64px, 17vw, 92px);
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-hero__right,
  .contact-hero__form,
  .contact-form,
  .contact-form__field,
  .contact-form__input {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .contact-form__input,
  .contact-form__counter {
    font-size: 20px;
  }

  .contact-form__input {
    padding-inline: 22px;
  }

  .contact-form__chips {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form__chip {
    max-width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 20px;
    line-height: 1.2;
    white-space: normal;
  }

  .contact-form__field--message .contact-form__textarea {
    padding-right: 92px;
  }

  .contact-form__counter {
    left: 22px;
    right: auto;
    top: auto;
    bottom: 16px;
    transform: none;
    font-size: 18px;
  }

  .contact-form__submit {
    width: 100%;
  }
}
