html {
  min-height: 100%;
  background: var(--navy);
}

.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
}

.contact-page main {
  display: block;
  flex: 1 0 auto;
  background: var(--soft-white);
}

.contact-page .site-header,
.contact-page .site-footer {
  width: 100%;
  flex: 0 0 auto;
}

.simple-contact {
  padding: 88px 0 110px;
  background: var(--soft-white);
}

.simple-contact-heading {
  max-width: 900px;
  margin: 0 auto 54px;
  text-align: center;
}

.simple-contact-heading h1 {
  margin: 0;
  color: var(--teal);
  font-family: var(--manrope);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.simple-contact-heading p {
  margin: 20px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 31px;
}

.contact-form-card {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 52px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.1);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 24px;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-group {
  min-width: 0;
}

.field-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-family: var(--plex);
  font-size: 16px;
  font-weight: 700;
}

.field-group input {
  width: 100%;
  border: 1px solid #aebfca;
  border-radius: 11px;
  color: var(--navy);
  background: var(--soft-white);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field-group input {
  min-height: 56px;
  padding: 0 16px;
}

.field-group input:hover {
  border-color: var(--teal);
}

.field-group input:focus-visible {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(44, 181, 165, 0.2);
}

.contact-submit {
  width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  cursor: pointer;
  font-family: var(--manrope);
  font-size: 16px;
  font-weight: 700;
}

.contact-submit:focus-visible {
  outline: 3px solid #f0a19e;
  outline-offset: 4px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  margin: 0;
  padding: 16px 18px;
  border-radius: 11px;
  color: var(--white);
  background: var(--teal);
  font-size: 15px;
  line-height: 24px;
}

.form-status[data-state="sending"] {
  background: var(--navy);
}

.form-status[data-state="error"] {
  background: #9d2f2f;
}

@media (hover: hover) {
  .contact-submit {
    transition: filter 160ms ease, transform 160ms ease;
  }

  .contact-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
}

@media (max-width: 1100px) {
  .simple-contact-shell {
    width: min(100% - 48px, 900px);
  }

  .contact-form-card {
    padding: 44px;
  }
}

@media (max-width: 680px) {
  .simple-contact {
    padding: 60px 0 72px;
  }

  .simple-contact-shell {
    width: min(100% - 32px, 560px);
  }

  .simple-contact-heading {
    margin-bottom: 38px;
  }

  .simple-contact-heading h1 {
    font-size: 44px;
  }

  .simple-contact-heading p {
    font-size: 17px;
    line-height: 28px;
  }

  .contact-form-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .field-group input,
  .contact-submit {
    transition: none;
  }
}
