.contact.section {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: #101010;
  color: #f4f1ea;
}

.contact.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: #f7f3eb;
}

.contact-layout {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6.5rem);
  width: min(84rem, calc(100% - 3rem));
  margin-inline: auto;
}

.contact h2 {
  max-width: none;
  margin: 0;
  color: #f4f1ea;
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 4.15rem);
  letter-spacing: -0.048em;
  line-height: 0.96;
}

.contact-copy p {
  max-width: 30rem;
  margin: 1.35rem 0 0;
  color: #e7e2d8;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.contact-rule {
  display: block;
  width: 3.4rem;
  height: 0.28rem;
  margin-top: 1.35rem;
  background: #01dce3;
}

.contact-copy p + p {
  margin-top: 1.15rem;
}

.contact-reach {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  max-width: none;
}

.contact-reach__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(247, 242, 230, 0.8);
  border-radius: 10px;
  color: #f7f2e6;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.contact-reach__btn:hover {
  border-color: #f7f2e6;
  background: #f7f2e6;
  color: #101010;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 1.15rem;
}

.contact .field {
  gap: 0.55rem;
}

.contact .field label {
  color: #f4f1ea;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.contact .req {
  font-weight: 700;
}

.contact .optional {
  font-weight: 500;
  color: #f4f1ea;
}

.contact .field input,
.contact .field textarea {
  border: 1px solid rgba(244, 241, 234, 0.28);
  border-radius: 12px;
  background: #1a1a1a;
  color: #f4f1ea;
  padding: 0.95rem 1.05rem;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
}

.contact .field input {
  min-height: 3.35rem;
}

.contact .field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.contact .field input::placeholder,
.contact .field textarea::placeholder {
  color: rgba(244, 241, 234, 0.42);
}

.contact .field input:focus-visible,
.contact .field textarea:focus-visible {
  outline: 2px solid #01dce3;
  outline-offset: 2px;
}

.contact .field-error:empty {
  display: none;
}

.contact-note {
  margin: 0.15rem 0 0;
  color: rgba(244, 241, 234, 0.78);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.contact-note a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.contact-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.7rem;
  margin-top: 0.35rem;
  padding: 0.9rem 3rem;
  border: 0;
  border-radius: 12px;
  background: #01dce3;
  color: #101010;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.contact-submit svg {
  position: absolute;
  right: 1.25rem;
}

.contact-submit:hover {
  background: #f7f3eb;
}

.contact-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: #f4f1ea;
}

.form-status:focus {
  outline: none;
}

.form-status:focus-visible {
  outline: 2px solid #01dce3;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .contact-reach {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .contact-reach__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.65rem 0.55rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .contact-reach__btn[href*="wa.me"] {
    font-size: 0;
  }

  .contact-reach__btn[href*="wa.me"]::after {
    content: "WhatsApp";
    font-size: 0.86rem;
    letter-spacing: -0.02em;
  }
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(20rem, 1fr) minmax(28rem, 45rem);
    align-items: start;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
