/* ============================================================
   Paripulse contact page
   ============================================================ */

.contact-page {
  background: #ffffff;
}

.contact-main {
  background: #ffffff;
}

.contact-hero {
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(48px, 6vw, 84px);
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-intro {
  max-width: 560px;
  padding-top: clamp(2px, 0.8vw, 10px);
  animation: contact-rise 0.26s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.contact-intro h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
  text-wrap: balance;
}

.contact-lead {
  max-width: 46ch;
  margin: 0 0 32px;
  color: #475467;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  text-wrap: pretty;
}

.contact-direct {
  max-width: 480px;
  border-top: 1px solid var(--line);
}

.contact-direct__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-direct__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.contact-direct__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.contact-direct__copy a,
.contact-direct__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-direct__copy a:hover {
  color: var(--brand-red);
}

.contact-copy {
  min-height: 38px;
  flex: none;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

.contact-copy:hover,
.contact-copy:focus {
  border-color: #98a2b3;
  background: #ffffff;
  color: var(--ink);
}

.contact-copy:active {
  transform: scale(0.98);
}

.contact-note {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- form card ---------- */

.contact-card {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  animation: contact-rise 0.28s 0.05s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.contact-card__head {
  margin-bottom: 24px;
}

.contact-card__head h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(21px, 1.65vw, 26px);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-card__head > p:last-child {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-field > span {
  color: #344054;
  font-size: 11px;
  font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #6e6a61;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #f3a6ad;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.08);
}

.contact-field input.is-invalid,
.contact-field select.is-invalid,
.contact-field textarea.is-invalid {
  border-color: #f3a6ad;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.08);
}

.contact-count {
  align-self: flex-end;
  margin-top: -2px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.contact-feedback {
  margin: 0;
  color: #b42318;
  font-size: 11.5px;
  line-height: 1.5;
}

.contact-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  transition: transform 0.14s ease, opacity 0.14s ease, background-color 0.14s ease;
}

.contact-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.contact-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form__hint {
  margin: -2px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

.contact-fallback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.contact-fallback p {
  margin: 0 0 9px;
}

.contact-fallback .contact-copy {
  min-height: 32px;
  padding: 0 11px;
}

/* ---------- common requests ---------- */

.contact-help {
  padding: 64px 0 88px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.contact-help__head {
  margin-bottom: 24px;
}

.contact-help__head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact-resources {
  max-width: 920px;
  border-top: 1px solid var(--line);
}

.contact-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-resource h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.contact-resource p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-resource a {
  color: var(--brand-red);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.contact-resource a:hover {
  color: var(--brand-red-dark);
}

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .contact-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-intro {
    max-width: 680px;
  }

  .contact-lead {
    max-width: 55ch;
  }

  .contact-card {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-intro h1 {
    font-size: clamp(42px, 9vw, 58px);
  }

  .contact-resource {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contact-resource a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .contact-direct__row {
    flex-wrap: nowrap;
  }

  .contact-direct__copy {
    flex-basis: auto;
  }

  .contact-card {
    padding: 20px 18px;
  }
}

/* Match the dashboard select chevron on the contact form. */
.contact-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

.contact-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.contact-fallback__btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  text-decoration: none;
}

.contact-form[hidden],
.contact-fallback[hidden] {
  display: none;
}

.contact-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-success[hidden] {
  display: none;
}

.contact-success__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-success__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #101722;
  border-radius: 8px;
  background: #101722;
  color: #ffffff;
}

.contact-success__badge svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-success__eyebrow {
  margin: 0 0 2px;
  color: #c8322b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-success__head h3 {
  margin: 0;
  font-family: "Poppins", "Poppins Fallback", "Instrument Sans", "Instrument Sans Fallback", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.contact-success__copy {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.contact-success__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.contact-success__meta dt {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-success__meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.contact-success__actions {
  display: flex;
}

.contact-reset {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 520px) {
  .contact-success__meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit,
  .contact-copy {
    transition: none;
  }
  .contact-submit:active:not(:disabled),
  .contact-copy:active {
    transform: none;
  }
}

