/*
 * Homepage contact panel.
 * Visual direction: bold geometric canvas with a practical form card.
 */

.home-contact {
  width: min(1320px, calc(100% - 72px));
  min-height: 680px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: clamp(52px, 7vw, 110px);
  align-items: center;
  margin: clamp(96px, 10vw, 155px) auto;
  padding: clamp(48px, 6vw, 82px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 13% 8%, #1769ff 0 15%, transparent 15.2%),
    radial-gradient(circle at 51% -2%, #1769ff 0 17%, transparent 17.2%),
    radial-gradient(circle at 93% 4%, #1769ff 0 16%, transparent 16.2%),
    radial-gradient(circle at 9% 65%, #145bea 0 19%, transparent 19.2%),
    radial-gradient(circle at 91% 67%, #145bea 0 20%, transparent 20.2%),
    linear-gradient(145deg, #071544, #06102e 66%, #040a1d);
  box-shadow: 0 36px 90px rgba(5, 14, 47, 0.2);
  isolation: isolate;
}

.home-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.home-contact-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.home-contact-art span {
  position: absolute;
  display: block;
  border: 34px solid rgba(79, 106, 255, 0.18);
  transform: rotate(45deg);
}

.home-contact-art span:nth-child(1) {
  width: 260px;
  height: 260px;
  left: 31%;
  top: 29%;
}

.home-contact-art span:nth-child(2) {
  width: 160px;
  height: 160px;
  left: -80px;
  bottom: -80px;
}

.home-contact-art span:nth-child(3) {
  width: 190px;
  height: 190px;
  left: 41%;
  bottom: -114px;
}

.home-contact-art span:nth-child(4) {
  width: 125px;
  height: 125px;
  right: 32%;
  top: -82px;
}

.home-contact-copy {
  max-width: 570px;
  position: relative;
  z-index: 1;
  color: #fff;
}

.home-contact-copy > p:first-child {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.68);
  font: 700 10px/1.3 "DM Sans", sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-contact-copy > p:first-child span {
  margin-right: 10px;
  color: #9ed8ff;
}

.home-contact-copy h2 {
  margin: 0;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.home-contact-copy h2 em {
  color: #f2ff9f;
  font-family: Georgia, serif;
  font-weight: 400;
}

.home-contact-note {
  max-width: 520px;
  margin: 27px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.62;
}

.home-contact-status {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font: 700 9px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.home-contact-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #87e3b5;
  box-shadow: 0 0 0 5px rgba(135, 227, 181, 0.11);
}

.home-contact-form {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 3.4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(1, 7, 26, 0.3);
}

.home-contact-form-heading > span {
  color: #7657e8;
  font: 700 9px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-contact-form-heading h3 {
  margin: 13px 0 0;
  color: #171821;
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 2.35vw, 36px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-contact-form-heading p {
  margin: 12px 0 0;
  color: #6b6d77;
  font-size: 12px;
  line-height: 1.45;
}

.home-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
  margin-top: 28px;
}

.home-contact-fields label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.home-contact-fields label > span {
  color: #363842;
  font: 700 10px/1.2 "DM Sans", sans-serif;
}

.home-contact-fields input,
.home-contact-fields select,
.home-contact-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(34, 36, 49, 0.08);
  border-radius: 8px;
  outline: 0;
  background: #f5f5f7;
  color: #1c1e27;
  font: 500 12px/1.4 "DM Sans", sans-serif;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.home-contact-fields input,
.home-contact-fields select {
  height: 46px;
  padding: 0 13px;
}

.home-contact-fields textarea {
  min-height: 94px;
  padding: 12px 13px;
  resize: vertical;
}

.home-contact-fields input:focus,
.home-contact-fields select:focus,
.home-contact-fields textarea:focus {
  border-color: rgba(118, 87, 232, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(118, 87, 232, 0.1);
}

.home-contact-message {
  grid-column: 1 / -1;
}

.home-contact-form > button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 9px;
  background: #17192d;
  color: #fff;
  font: 700 11px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.home-contact-form > button:hover {
  background: #7657e8;
  transform: translateY(-2px);
}

.home-contact-form > button span {
  color: #f2ff9f;
  font-size: 16px;
}

.home-contact-form > small {
  display: block;
  margin-top: 14px;
  color: #81838c;
  font-size: 9px;
  text-align: center;
}

.home-contact-form > small a {
  color: #383a45;
  font-weight: 700;
}

@media (max-width: 980px) {
  .home-contact {
    width: min(900px, calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .home-contact-copy {
    max-width: 650px;
  }

  .home-contact-form {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .home-contact {
    width: calc(100% - 24px);
    margin: 74px auto;
    padding: 52px 18px 18px;
    border-radius: 22px;
  }

  .home-contact-fields {
    grid-template-columns: 1fr;
  }

  .home-contact-message {
    grid-column: auto;
  }

  .home-contact-status {
    white-space: normal;
  }
}
