.contact-page main {
  overflow: hidden;
}

.contact-hero,
.contact-section {
  position: relative;
  z-index: 10;
}

.contact-hero {
  display: flex;
  min-height: 72vh;
  align-items: center;
  padding: 10rem 1.5rem 4rem;
}

.contact-hero h1 {
  max-width: 66rem;
  margin: 1.5rem 0 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.contact-lead {
  max-width: 49rem;
  margin: 2rem 0 0;
  color: #eaf8ff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.contact-section {
  padding: 3rem 1.5rem 9rem;
  border-top: 1px solid var(--border);
  background: rgb(22 104 255 / 3%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.contact-aside {
  padding-top: 1rem;
}

.contact-aside h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
  line-height: 0.95;
}

.contact-aside > p:not(.data-label) {
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.contact-direct {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.contact-direct a {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.contact-direct small {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-direct strong {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgb(3 6 12 / 76%);
  box-shadow: 0 32px 90px -54px rgb(63 232 255 / 50%);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-field {
  display: grid;
  gap: 0.65rem;
}

.contact-field-wide,
.contact-submit-row {
  grid-column: 1 / -1;
}

.contact-field > span {
  color: #eaf8ff;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-field > span small {
  margin-left: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.58rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgb(134 156 168 / 28%);
  border-radius: 0.125rem;
  outline: 0;
  background: rgb(3 6 12 / 72%);
  color: #eaf8ff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-field input {
  min-height: 3.5rem;
  padding: 0 1rem;
}

.contact-field textarea {
  min-height: 11rem;
  resize: vertical;
  padding: 1rem;
  line-height: 1.6;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--primary);
  background: rgb(22 104 255 / 6%);
  box-shadow: 0 0 0 3px rgb(63 232 255 / 8%);
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.contact-submit-row p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  line-height: 1.6;
}

.contact-submit-row a {
  color: var(--primary);
}

.contact-submit {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--primary);
  border-radius: 0.125rem;
  background: var(--primary);
  color: #03060c;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-submit:hover {
  background: #eaf8ff;
  transform: translateY(-0.2rem);
  box-shadow: var(--glow-cyan);
}

.contact-notice {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.55;
}

.contact-notice strong {
  color: #eaf8ff;
}

.contact-notice-success {
  border-color: rgb(63 232 255 / 42%);
  background: rgb(63 232 255 / 6%);
}

.contact-notice-error {
  border-color: rgb(255 108 125 / 45%);
  background: rgb(255 108 125 / 6%);
}

.contact-notice ul {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .contact-hero,
  .contact-section {
    padding-inline: 3rem;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: 68vh;
    padding-top: 8rem;
  }

  .contact-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-field-wide,
  .contact-submit-row {
    grid-column: auto;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

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