.page-contact {
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 40%, rgba(67, 105, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 16% 56%, rgba(74, 211, 224, 0.11), transparent 25rem),
    #f3f5fb;
}

.contact-page-main {
  min-height: calc(100vh - 76px);
  padding: 54px 0 72px;
}

.contact-page-section {
  position: relative;
  overflow: hidden;
}

.contact-page-header {
  margin: 0 auto 22px;
  text-align: center;
}

.contact-page-header h1 {
  margin: 0 0 12px;
  color: #101828;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: #667085;
  font-size: 0.875rem;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-details a:hover {
  color: #1e40af;
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.page-contact nav.contact-social-links {
  position: static !important;
  width: fit-content !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.contact-social-links a {
  min-width: 72px;
  padding: 8px 17px;
  border: 1px solid rgba(30, 64, 175, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #344054;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.contact-social-links a:hover {
  transform: translateY(-2px);
  background: #1e40af;
  color: #fff;
}

.contact-form-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 590px);
  margin: 0 auto 27px;
  padding: 2px;
  overflow: hidden;
  border-radius: 19px;
  background: linear-gradient(125deg, #38bdf8, #536dfe, #a855f7, #22d3a6, #38bdf8);
  background-size: 300% 300%;
  animation: contactGradientShift 8s ease infinite;
  box-shadow: 0 20px 60px rgba(50, 72, 158, 0.16);
}

.contact-form-card {
  padding: 30px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-form-card form {
  display: grid;
  gap: 19px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(52, 64, 84, 0.42);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-field::placeholder {
  color: #667085;
  opacity: 1;
}

.contact-field:focus {
  border-color: #2445b8;
  box-shadow: 0 1px 0 #2445b8;
}

.contact-message {
  min-height: 104px;
  resize: vertical;
}

.contact-submit {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #2445b8;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: #17358f;
  box-shadow: 0 9px 20px rgba(36, 69, 184, 0.24);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-whatsapp-cta {
  display: flex;
  width: fit-content;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 25px;
  border-radius: 999px;
  background: #20c56a;
  box-shadow: 0 10px 24px rgba(32, 197, 106, 0.24);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.contact-whatsapp-cta:hover {
  transform: translateY(-2px);
  background: #17a957;
  box-shadow: 0 13px 28px rgba(32, 197, 106, 0.32);
}

.contact-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes contactGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 600px) {
  .contact-page-main {
    padding: 35px 0 52px;
  }

  .contact-page-header {
    margin-bottom: 20px;
  }

  .contact-details {
    gap: 7px 12px;
    font-size: 0.8rem;
  }

  .contact-social-links {
    gap: 8px;
    margin-top: 15px;
  }

  .contact-social-links a {
    min-width: 66px;
    padding: 7px 13px;
  }

  .contact-form-card {
    padding: 22px 19px;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form-frame {
    animation: none;
    background-position: 50% 50%;
  }

  .contact-details a,
  .contact-social-links a,
  .contact-field,
  .contact-submit,
  .contact-whatsapp-cta {
    transition: none;
  }
}
