/* HighFelt contact — matches community ContactSection.css
   px (not rem): Ease sets html { font-size: 62.5% } so rem ≠ Next.js 16px root */

.hf-contact {
  --site-gap: max(20px, 5.5vw);
  --site-width: 1920px;
  --hf-contact-ink: #111111;
  --hf-contact-muted: #6b6570;
  --hf-contact-border: #e5e5e5;
  --hf-contact-font: "tiktoksans", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Corner art is 329x220 px → keep the 3:2-ish ratio when scaling. */
  --hf-contact-corner-w: clamp(84px, 12vw, 180px);

  width: 100%;
  background: #fff;
  color: var(--hf-contact-ink);
  font-family: var(--hf-contact-font);
  padding: clamp(32px, 4vw, 56px) 0;
  box-sizing: border-box;
}

.hf-contact *,
.hf-contact *::before,
.hf-contact *::after {
  box-sizing: border-box;
}

.hf-contact__inner {
  width: min(var(--site-width), 100% - var(--site-gap) * 2);
  margin: 0 auto;
}

.hf-contact__tilt-wrap {
  perspective: 1000px;
}

/* ── Panel with corner decorations ─────────────────────────────────────────── */

.hf-contact__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--hf-contact-border);
  border-radius: clamp(18px, 1.6vw, 24px);
  padding: clamp(48px, 5.5vw, 88px) clamp(24px, 6vw, 96px);
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-contact__panel.is-tilting {
  transition: none;
}

@media (hover: none), (pointer: coarse) {
  .hf-contact__tilt-wrap {
    perspective: none;
  }

  .hf-contact__panel {
    will-change: auto;
  }
}

.hf-contact__corner {
  position: absolute;
  z-index: 1;
  width: var(--hf-contact-corner-w);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hf-contact__corner--tl {
  top: 0;
  left: 0;
}

.hf-contact__corner--tr {
  top: 0;
  right: 0;
}

.hf-contact__corner--bl {
  bottom: 0;
  left: 0;
}

.hf-contact__corner--br {
  bottom: 0;
  right: 0;
}

/* ── Content ───────────────────────────────────────────────────────────────── */

.hf-contact__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.hf-contact__title {
  margin: 0 0 clamp(10px, 1.2vw, 14px);
  font-family: var(--hf-contact-font);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hf-contact-ink);
}

.hf-contact__subtitle {
  margin: 0 auto clamp(24px, 2.8vw, 36px);
  max-width: 34em;
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 17.6px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--hf-contact-muted);
  text-wrap: balance;
}

/* ── Form ──────────────────────────────────────────────────────────────────── */

.hf-contact__form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
  text-align: left;
}

.hf-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.8vw, 22px);
}

.hf-contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hf-contact__label {
  font-size: 13.6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hf-contact-ink);
}

/* Element+class beats Ease form.css `input[type=…]` (radius 5px, mid-gray). */
input.hf-contact__input,
textarea.hf-contact__input {
  width: 100%;
  height: auto;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--hf-contact-font);
  font-size: 15.2px;
  line-height: 1.4;
  color: var(--hf-contact-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.hf-contact__input::placeholder,
textarea.hf-contact__input::placeholder {
  color: #a5a0aa;
}

input.hf-contact__input:focus,
textarea.hf-contact__input:focus {
  outline: none;
  border-color: var(--hf-contact-ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.hf-contact__textarea {
  resize: vertical;
  min-height: 130px;
}

.hf-contact__submit {
  align-self: center;
  margin-top: clamp(4px, 0.8vw, 10px);
  padding: 14px 44px;
  border: none;
  border-radius: 9999px;
  background: var(--hf-contact-ink);
  color: #fff;
  font-family: var(--hf-contact-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hf-contact__submit:hover {
  background: #2b2b2b;
  transform: translateY(-1px);
}

.hf-contact__submit:active {
  transform: translateY(0);
}

.hf-contact__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.hf-contact__success {
  margin: 0;
  text-align: center;
  font-size: 14.4px;
  color: #1a9c4b;
}

.hf-contact__error {
  margin: 0;
  text-align: center;
  font-size: 14.4px;
  color: #c0392b;
}

.hf-contact__success[hidden],
.hf-contact__error[hidden] {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hf-contact {
    --hf-contact-corner-w: clamp(70px, 22vw, 90px);
  }

  .hf-contact__panel {
    padding: clamp(88px, 24vw, 120px) clamp(18px, 5vw, 28px);
  }

  .hf-contact__row {
    grid-template-columns: 1fr;
  }

  .hf-contact__submit {
    width: 100%;
  }
}
