/* ==========================================================================
   CTA Form Home Page Block
   ──────────────────────────────────────────────────────────────────────────
   Breakpoints:
     mobile   : <600px
     sm tablet: 600px+
     md tablet: 768px+
     desktop  : 1024px+
     lg desktop: 1280px+ (photos visible)
   ========================================================================== */

/* ── Section shell ──────────────────────────────────────────────────────── */
.praxent_cta-form-home {
  position: relative;
  background-color: #000;
  overflow: hidden;
  padding: 60px 20px 80px;
  width: 100%;
}

@media (min-width: 600px) {
  .praxent_cta-form-home {
    padding: 70px 40px 90px;
  }
}

@media (min-width: 768px) {
  .praxent_cta-form-home {
    padding: 80px 48px 100px;
  }
}

@media (min-width: 1024px) {
  .praxent_cta-form-home {
    padding: 90px 64px 110px;
  }
}

/* ── Background image ───────────────────────────────────────────────────── */
.cfh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('https://praxent.com/wp-content/uploads/2026/03/Moire-Background-AI-Modernization-Experts-Praxent.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── Inner wrapper ──────────────────────────────────────────────────────── */
.cfh-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 600px) {
  .cfh-inner {
    gap: 28px;
  }
}

@media (min-width: 768px) {
  .cfh-inner {
    gap: 32px;
  }
}

/* ── Intro heading ──────────────────────────────────────────────────────── */
.cfh-heading {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 350;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: #fff;
  text-align: center;
  max-width: 860px;
  margin: 0;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.cfh-card {
  position: relative;
  width: 100%;
  max-width: 1146px;
  background: hsla(0, 0%, 100%, 0.03);
  border: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 24px;
  padding: 40px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 600px) {
  .cfh-card {
    border-radius: 28px;
    padding: 44px 40px 52px;
  }
}

@media (min-width: 768px) {
  .cfh-card {
    border-radius: 30px;
    padding: 48px 56px 56px;
  }
}

@media (min-width: 1024px) {
  .cfh-card {
    padding: 56px 80px 64px;
  }
}

@media (min-width: 1280px) {
  .cfh-card {
    padding: 48px 380px;
    min-height: 640px;
    overflow: hidden;
  }
}

/* Border drawn via ::after so it renders above the absolutely-positioned photos */
.cfh-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid hsla(0, 0%, 100%, 0.55);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

/* ── Flanking person photos ─────────────────────────────────────────────── */
.cfh-photo {
  display: none;
}

@media (min-width: 1280px) {
  .cfh-photo {
    display: block;
    position: absolute;
    bottom: 0;
    width: 340px;
    height: 460px;
    overflow: hidden;
  }

  .cfh-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .cfh-photo--left {
    left: 0;
    border-radius: 10px 10px 32px 10px;
    z-index: 0;
  }

  .cfh-photo--right {
    right: 0;
    border-radius: 10px 27px 27px 0;
    z-index: 0;
  }

  .cfh-photo--left img {
    border-radius: 10px 10px 32px 10px;
  }

  .cfh-photo--right img {
    border-radius: 10px 27px 27px 0;
  }
}


/* ── Card content (center column) ──────────────────────────────────────── */
.cfh-card-content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

@media (min-width: 600px) {
  .cfh-card-content {
    max-width: 640px;
    gap: 22px;
  }
}

@media (min-width: 768px) {
  .cfh-card-content {
    max-width: 720px;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .cfh-card-content {
    max-width: 840px;
    width: 100%;
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .cfh-card-content {
    width: 180%;
    max-width: none;
    gap: 20px;
  }
}

/* ── Eyebrow ────────────────────────────────────────────────────────────── */
.cfh-eyebrow {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 750;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2ba3ff;
  margin: 0;
  line-height: 1;
}

@media (min-width: 600px) {
  .cfh-eyebrow {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .cfh-eyebrow {
    font-size: 0.9375rem;
  }
}

/* ── Card title ─────────────────────────────────────────────────────────── */
.cfh-card-title {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 450;
  font-size: clamp(1.375rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

/* ── Description ────────────────────────────────────────────────────────── */
.cfh-description p {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 200;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.5;
  color: #fff;
  margin: 0 0 20px;
}

.cfh-description p:last-child {
  margin-bottom: 0;
}

/* ── HubSpot form container ─────────────────────────────────────────────── */
.cfh-hs-form {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 600px) {
  .cfh-hs-form {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .cfh-hs-form {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .cfh-hs-form {
    max-width: 480px;
  }
}

@media (min-width: 1280px) {
  .cfh-hs-form {
    max-width: 381px;
  }
}

/* ── HubSpot form grid layout ───────────────────────────────────────────── */
/* Mobile: single column. Tablet 600px+: 2-column name + email. */
.cfh-card-content .hs-form {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

@media (min-width: 600px) {
  .cfh-card-content .hs-form {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cfh-card-content .hs-form .hs_person_name {
    grid-column: 1;
  }

  .cfh-card-content .hs-form .hs_email {
    grid-column: 2;
  }
}

@media (min-width: 768px) {
  .cfh-card-content .hs-form {
    gap: 16px;
  }
}

/* Message, reCAPTCHA, submit — always full width */
.cfh-card-content .hs-form .hs_message,
.cfh-card-content .hs-form .hs_recaptcha,
.cfh-card-content .hs-form .hs_submit,
.cfh-card-content .hs-form .hs-field-desc {
  grid-column: 1 / -1;
}

/* Center the reCAPTCHA widget */
.cfh-card-content .hs-form .hs_recaptcha .input {
  display: flex;
  justify-content: center;
}

.cfh-card-content .hs-form .hs_recaptcha .grecaptcha-badge {
  margin: 0 auto;
}

.cfh-card-content .hs-form .hs-input {
  width: 100% !important;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #8c92a6 !important;
  border-radius: 4px;
  color: #fff;
  padding: 8px 12px;
  font-family: 'TWK Lausanne', sans-serif;
  font-size: 0.9375rem;
}

.cfh-card-content .hs-form .hs-input::placeholder {
  color: #8c92a6;
}

.cfh-card-content .hs-form label {
  color: #fff;
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 450;
  font-size: 0.9375rem;
  text-align: left;
  display: block;
}

.cfh-card-content .hs-form .hs-error-msgs {
  color: #ff5f57;
  font-size: 0.8125rem;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.cfh-card-content .hs-form .hs-button.primary {
  width: 100% !important;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.3) 50%, transparent 50%),
    linear-gradient(270deg, #4fec00 0%, #4fec00 18%, #00e2f9 45%, #00e2f9 62%, #2b97ff 100%) !important;
  background-size: 200% 100%, 100% 100% !important;
  background-position: right center, center !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 30px 30px 30px;
  color: #000 !important;
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 450;
  font-size: 1rem;
  padding: 14px 40px;
  cursor: pointer;
  transition: background-position 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.6s ease !important;
}

@media (min-width: 600px) {
  .cfh-card-content .hs-form .hs-button.primary {
    font-size: 1.15rem !important;
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .cfh-card-content .hs-form .hs-button.primary {
    max-width: 300px;
  }
}

@media (min-width: 1024px) {
  .cfh-card-content .hs-form .hs-button.primary {
    font-size: 1.25rem !important;
    max-width: 320px;
  }
}

@media (min-width: 1280px) {
  .cfh-card-content .hs-form .hs-button.primary {
    max-width: 100%;
  }
}

.cfh-card-content .hs-form .hs-button.primary:hover {
  background-position: left center, center !important;
  color: #ffffff !important;
}

/* ── Form submission success message ───────────────────────────────────── */
.cfh-card-content .submitted-message {
  width: 100%;
  text-align: center;
}

.cfh-card-content .submitted-message p {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: #fff;
  margin: 0;
}

.cfh-card-content .submitted-message a {
  color: #2ba3ff;
  text-decoration: none;
  font-weight: 450;
  transition: color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.cfh-card-content .submitted-message a:hover {
  color: #4fec00;
  filter: brightness(1.1);
}

/* ==========================================================================
   Bottom section — "The Praxent Difference"
   ========================================================================== */

/* cfh-bottom sits inside the section which already carries horizontal padding,
   so we only add a top margin and bottom padding here — no extra horizontal padding. */
.cfh-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 56px auto 0;
  padding-bottom: 20px;
}

@media (min-width: 600px) {
  .cfh-bottom {
    margin-top: 64px;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  .cfh-bottom {
    margin-top: 72px;
  }
}

@media (min-width: 1024px) {
  .cfh-bottom {
    margin-top: 80px;
  }
}

/* ── Section eyebrow ────────────────────────────────────────────────────── */
.cfh-section-eyebrow {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 450;
  font-size: clamp(0.75rem, 1.5vw, 1.1875rem);
  line-height: 1.5;
  color: #8c92a6;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

@media (min-width: 600px) {
  .cfh-section-eyebrow {
    margin-bottom: 12px;
  }
}

@media (min-width: 768px) {
  .cfh-section-eyebrow {
    margin-bottom: 16px;
  }
}

/* ── Section heading ────────────────────────────────────────────────────── */
.cfh-section-heading {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 350;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
}

@media (min-width: 600px) {
  .cfh-section-heading {
    margin-bottom: 28px;
  }
}

@media (min-width: 768px) {
  .cfh-section-heading {
    margin-bottom: 36px;
  }
}

@media (min-width: 1024px) {
  .cfh-section-heading {
    margin-bottom: 40px;
  }
}

/* ── Section body ───────────────────────────────────────────────────────── */
.cfh-section-body {
  max-width: 1116px;
}

.cfh-section-body p {
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 450;
  font-size: clamp(1rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  color: #8c92a6;
  margin: 0 0 0.75em;
}

.cfh-section-body p:last-child {
  margin-bottom: 0;
}

.cfh-text-white { color: #fff; }
.cfh-text-red   { color: #ff5f57; }

/* ── Section CTA button ─────────────────────────────────────────────────── */
.cfh-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 13px 32px;
  border-radius: 0 30px 30px 30px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.3) 50%, transparent 50%),
    linear-gradient(270deg, #4fec00 0%, #4fec00 18%, #00e2f9 45%, #00e2f9 62%, #2b97ff 100%);
  background-size: 200% 100%, 100% 100%;
  background-position: right center, center;
  font-family: 'TWK Lausanne', sans-serif;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.23;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.6s ease;
}

@media (min-width: 600px) {
  .cfh-section-btn {
    font-size: 1.15rem;
    margin-top: 40px;
    padding: 13px 40px;
  }
}

@media (min-width: 1024px) {
  .cfh-section-btn {
    font-size: 1.25rem;
    margin-top: 48px;
  }
}

.cfh-section-btn:hover {
  background-position: left center, center;
  color: #ffffff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
