/* Contact page — Figma node 1860:36 */

.page-contact {
  background: var(--color-bg);
  min-height: 100%;
}

.contact-hero {
  position: relative;
  box-sizing: border-box;
  min-height: min(560px, 78vh);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  color: #fff;
}

.contact-hero--editorial {
  --hero-accent: var(--color-accent);
}

.contact-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero-media.js-parallax {
  overflow: hidden;
}

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

.contact-hero-media.js-parallax .contact-hero-img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 118%;
  top: -9%;
  object-fit: cover;
  z-index: 0;
}

.contact-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
}

.contact-hero > .container.contact-hero-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  width: 100%;
  padding-bottom: 108px;
  padding-top: 12px;
  box-sizing: border-box;
}

.contact-hero-copy-inner {
  width: 100%;
  min-width: 0;
}

.contact-hero-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 70px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0;
}

.contact-hero-lead {
  margin: 16px 0 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
}

.contact-main-wrap {
  position: relative;
  z-index: 3;
  margin-top: -88px;
  padding-bottom: 64px;
  width: 100%;
  box-sizing: border-box;
}

.contact-main-anim {
  width: 100%;
  min-width: 0;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr min(390px, 100%);
  gap: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.contact-form-panel {
  background: #fbf8f1;
  border-radius: 10px;
  padding: 40px 36px 36px;
  min-width: 0;
}

.contact-form-heading {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: #131313;
}

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

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field-label {
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: rgba(19, 19, 19, 0.6);
}

.contact-field-required-mark {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95em;
  margin-left: 2px;
  cursor: help;
  border-bottom: none;
  color: rgba(19, 19, 19, 0.4);
}

.contact-field.is-invalid .contact-field-label,
.contact-field.is-invalid .contact-field-required-mark {
  color: #991b1b;
}

.contact-field.is-invalid .contact-input,
.contact-field.is-invalid .contact-textarea {
  border-bottom-color: #dc2626;
  box-shadow: 0 1px 0 0 rgba(220, 38, 38, 0.35);
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(19, 19, 19, 0.25);
  background: transparent;
  padding: 8px 0 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #131313;
  border-radius: 0;
  outline: none;
}

.contact-input:focus,
.contact-textarea:focus {
  border-bottom-color: #0e5ba3;
}

.contact-field.is-invalid .contact-input:focus,
.contact-field.is-invalid .contact-textarea:focus {
  border-bottom-color: #b91c1c;
  box-shadow: 0 1px 0 0 rgba(185, 28, 28, 0.45);
}

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

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 8px;
  min-width: 160px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: #0e5ba3;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.contact-submit:hover {
  background: #0c4d8c;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.contact-submit:active {
  background: #0a3f73;
  box-shadow: none;
}

.contact-submit .contact-submit-label {
  position: relative;
  z-index: 1;
}

.contact-submit:focus-visible {
  outline: 2px solid rgba(14, 91, 163, 0.45);
  outline-offset: 2px;
}

.contact-submit:hover:focus-visible {
  outline-color: #0e5ba3;
}

.contact-form-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  border: 1px solid transparent;
}

.contact-form-hint:not([hidden]) {
  margin-top: 12px;
}

.contact-form-hint--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.contact-form-hint--error::before {
  content: "!";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 50%;
  background: #fecaca;
  color: #991b1b;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1;
}

.contact-form-hint--success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.contact-form-hint--success::before {
  content: "✓";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 50%;
  background: #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1;
}

.contact-aside-panel {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 0;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.contact-aside-heading {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: #131313;
}

.contact-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-aside-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: rgba(19, 19, 19, 0.65);
}

.contact-aside-list a {
  color: inherit;
  text-decoration: none;
}

.contact-aside-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-aside-list img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.contact-aside-map-block {
  margin: 36px -28px 0;
}

.contact-aside-map {
  position: relative;
  overflow: hidden;
  height: 255px;
  line-height: 0;
  background: #e8eaed;
}

.contact-aside-map-frame {
  width: 100%;
  height: 100%;
  min-height: 255px;
  border: 0;
  display: block;
}

.contact-aside-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #0e5ba3;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid rgba(19, 19, 19, 0.08);
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-aside-map-link:hover {
  background: rgba(14, 91, 163, 0.06);
  color: #0c4d8c;
}

.contact-aside-map-link:focus-visible {
  outline: 2px solid #0e5ba3;
  outline-offset: -2px;
}

@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside-panel {
    padding-bottom: 0;
  }

  .contact-main-wrap {
    margin-top: -56px;
  }

  .contact-hero-copy {
    padding-bottom: 84px;
  }
}

@media (max-width: 767px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 28px 20px 24px;
  }

  .contact-main-wrap {
    margin-top: -40px;
    padding-bottom: 48px;
  }

  .contact-hero-copy {
    padding-bottom: 60px;
  }
}
