/* ==========================================================================
   Contact Us — standalone full-page (no shared header/footer)
   ========================================================================== */
:root {
  --contact-bg-left: #f8f7fa;
  --contact-bg-right: #f8de3d;
  --contact-text: #171717;
  --contact-text-muted: #606060;
  --contact-border: rgba(23, 23, 23, 0.16);
  --contact-card-border: #d0d0d0;
  --contact-input-border: #a1a1a1;
  --contact-input-placeholder: #8b857d;
  --contact-quote: #171717;
}

html,
body.contact-page-body {
  margin: 0;
  min-height: 100%;
  background-color: var(--contact-bg-left);
}

.contact-page-body {
  overflow-x: hidden;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.contact-page {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
  width: 100%;
}

.contact-info,
.contact-form-panel {
  flex: 1 1 50%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(32px, 4vw, 48px) clamp(20px, 4vw, 48px);
}

.contact-info {
  background-color: var(--contact-bg-left);
  display: flex;
  flex-direction: column;
}

.contact-form-panel {
  background-color: var(--contact-bg-right);
  display: flex;
  flex-direction: column;
}

/* Desktop (>=1024px): if the viewport is taller than the content needs,
   center both panels' content vertically instead of leaving a large dead
   gap below it (RESPONSIVE_REQUIREMENTS.md: "no excessive empty space"). */
@media (min-width: 1024px) {
  .contact-info,
  .contact-form-panel {
    justify-content: center;
  }
}

/* ==========================================================================
   Left panel — info
   ========================================================================== */
.contact-info__logo {
  display: inline-flex;
  width: 115px;
}

.contact-info__logo img {
  width: 100%;
  height: auto;
}

.contact-info__heading {
  margin-top: clamp(28px, 5vw, 48px);
  max-width: 435px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--contact-text);
}

.contact-info__list {
  margin-top: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.3px;
  color: var(--contact-text);
}

.contact-info__check {
  flex: 0 0 auto;
  display: inline-flex;
}

.contact-info__divider {
  margin-top: clamp(24px, 3vw, 34px);
  height: 1px;
  width: 100%;
  max-width: 608px;
  background-color: var(--contact-border);
}

.contact-info__trust {
  margin-top: clamp(24px, 3vw, 32px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-info__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-info__trust-brand {
  font-weight: 700;
  font-size: 12px;
  color: var(--contact-text);
}

.contact-info__trust-score {
  font-weight: 800;
  font-size: 13px;
  color: var(--contact-text);
}

.contact-info__trust-stars {
  color: #d4bd00;
  font-size: 14px;
  letter-spacing: 1px;
}

.contact-info__trust-sep {
  width: 1px;
  height: 20px;
  background-color: rgba(23, 23, 23, 0.2);
}

.contact-info__subheading {
  margin-top: clamp(28px, 4vw, 40px);
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.45px;
  color: var(--contact-text);
}

.contact-info__testimonial-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.contact-info__testimonial-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.contact-info__testimonial-track::-webkit-scrollbar {
  display: none;
}

.contact-info__testimonial {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  margin: 0;
  background-color: #ffffff;
  border: 1px solid var(--contact-card-border);
  border-radius: 20px;
  padding: 20px 24px 24px;
}

.contact-info__quote-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--contact-quote);
  color: #f8de3d;
}

.contact-info__testimonial-text {
  margin-top: 4px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.45px;
  color: #181818;
}

.contact-info__testimonial-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info__testimonial-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  font-weight: 800;
  font-size: 14px;
  color: #0a0a0a;
}

.contact-info__testimonial-meta {
  display: flex;
  flex-direction: column;
}

.contact-info__testimonial-name {
  font-style: normal;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.3px;
  color: #181818;
}

.contact-info__testimonial-role {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--contact-text-muted);
}

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

.contact-info__nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 14px 17px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-info__nav-btn:hover,
.contact-info__nav-btn:focus-visible {
  transform: scale(1.08);
  background-color: #faf6e0;
}

.contact-info__nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  background-color: #ffffff;
}

@media (hover: none) and (pointer: coarse) {
  .contact-info__nav-btn:hover {
    transform: none;
    background-color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-info__nav-btn:hover,
  .contact-info__nav-btn:focus-visible {
    transform: none !important;
  }

  .contact-info__testimonial-track {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Right panel — form
   ========================================================================== */
.contact-form-panel__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.45px;
  color: var(--contact-text);
  max-width: 664px;
}

.contact-form-panel__icon {
  flex: 0 0 auto;
  display: inline-flex;
}

/* min-height is a best-effort estimate, not exact — the embedded
   ActiveCampaign form's real height depends on its own third-party
   reCAPTCHA script load timing (same limitation already accepted for
   this identical iframe on the homepage, content.css .contact__form-iframe).
   If the embed renders taller than this, the iframe scrolls internally
   rather than breaking the page layout — that's expected, not a bug. */
.contact-form-panel__iframe {
  margin-top: clamp(28px, 4vw, 40px);
  width: 100%;
  max-width: 664px;
  flex: 1;
  min-height: 700px;
  border: none;
}

/* ==========================================================================
   Page-load entrance animation — slides in from right to left
   ========================================================================== */
@keyframes contact-page-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.contact-page {
  animation: contact-page-slide-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .contact-page {
    animation: none;
  }
}

/* ==========================================================================
   Responsive composition layer
   ========================================================================== */

/* Tablet: 768px–1023px — an intentional tablet composition, not scaled-up
   mobile: the extra width is used to pair Name/Email side by side and to
   widen the testimonial/list columns instead of just stretching a single
   mobile column. */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-page {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .contact-info,
  .contact-form-panel {
    flex-basis: auto;
    padding: 40px clamp(32px, 6vw, 56px);
  }

  .contact-info__heading {
    max-width: 620px;
  }

  .contact-info__list {
    max-width: 640px;
  }

  .contact-info__testimonial-wrap {
    max-width: 640px;
  }

  .contact-form-panel__iframe {
    max-width: 640px;
    min-height: 640px;
  }
}

/* Mobile: <= 767px */
@media (max-width: 767px) {
  .contact-page {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .contact-info,
  .contact-form-panel {
    flex-basis: auto;
    padding: 28px 20px;
  }

  .contact-info__logo {
    width: 96px;
  }

  .contact-info__heading {
    margin-top: 24px;
    max-width: 100%;
    font-size: clamp(26px, 8vw, 32px);
  }

  .contact-info__list {
    margin-top: 20px;
    max-width: 100%;
  }

  .contact-info__item {
    font-size: 15px;
    line-height: 21px;
  }

  .contact-info__divider {
    margin-top: 24px;
    max-width: 100%;
  }

  .contact-info__trust {
    margin-top: 20px;
    row-gap: 12px;
  }

  .contact-info__subheading {
    margin-top: 28px;
    font-size: 18px;
  }

  .contact-info__testimonial-wrap {
    max-width: 100%;
  }

  .contact-info__testimonial {
    padding: 18px 18px 20px;
    border-radius: 16px;
  }

  .contact-info__testimonial-text {
    font-size: 17px;
    line-height: 24px;
  }

  .contact-info__testimonial-footer {
    margin-top: 24px;
    gap: 12px;
  }

  .contact-info__nav-btn {
    width: 44px;
    height: 44px;
  }

  .contact-form-panel__heading {
    font-size: 18px;
  }

  .contact-form-panel__iframe {
    margin-top: 24px;
    max-width: 100%;
    min-height: 700px;
  }
}

/* Small phone: <= 479px */
@media (max-width: 479px) {
  .contact-info,
  .contact-form-panel {
    padding: 24px 16px;
  }

  .contact-info__heading {
    font-size: clamp(24px, 8.5vw, 28px);
  }

  .contact-info__item {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-info__testimonial-text {
    font-size: 16px;
    line-height: 22px;
  }

  .contact-form-panel__heading {
    font-size: 17px;
    gap: 10px;
  }

  .contact-form-panel__icon svg {
    width: 30px;
    height: 30px;
  }
}

/* Touch devices: neutralize any hover-only transform so it can't get stuck */
@media (hover: none) and (pointer: coarse) {
  .contact-form__submit:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__submit:hover,
  .contact-form__submit:focus-visible {
    transform: none !important;
  }
}
