/* =========================================================
   CONTACT CTA SECTION
   Refined for readability, conversion, accessibility, and
   responsive performance from TVs to phones
   ========================================================= */

/* =========================================================
   SECTION FOUNDATION
   ========================================================= */
   .cta-section {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 5vw, 6.5rem);
    isolation: isolate;
    background:
      radial-gradient(circle at top left, rgba(0, 198, 255, 0.16), transparent 32%),
      radial-gradient(circle at bottom right, rgba(28, 163, 199, 0.16), transparent 30%),
      linear-gradient(135deg, #183040 0%, #1f4356 42%, #1b617c 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  }
  
  .cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    pointer-events: none;
    z-index: 0;
  }
  
  .cta-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: clamp(220px, 28vw, 500px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,198,255,0.16) 0%, rgba(0,198,255,0) 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
  }
  
  /* =========================================================
     CONTAINER
     ========================================================= */
  .cta-container {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
    display: grid;
    gap: clamp(1.5rem, 2vw, 2.25rem);
  }
  
  .cta-content {
    text-align: center;
    max-width: 980px;
    margin-inline: auto;
  }
  
  /* =========================================================
     TYPOGRAPHY
     ========================================================= */
  .cta-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 2.3vw + 1.2rem, 4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #f6fbff;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(0,0,0,0.18);
  }
  
  .cta-title .highlight {
    color: #8fe8ff;
    text-shadow: 0 1px 10px rgba(0, 198, 255, 0.22);
  }
  
  .cta-subtitle {
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(1rem, 0.45vw + 0.95rem, 1.2rem);
    line-height: 1.8;
    color: #dbeaf3; /* lighter for dark background, but not washed out */
    text-wrap: pretty;
  }
  
  .cta-subtitle strong {
    color: #ffffff;
    font-weight: 700;
  }
  
  /* =========================================================
     ACTIONS
     ========================================================= */
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.85rem, 1.3vw, 1rem);
    margin-top: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 0;
  }
  
  .cta-actions a.btn-cta-phone,
  .cta-actions button.btn-cta-form,
  .contact-form .btn-submit {
    margin-top: 0 !important;
  }
  
  /* shared button styling */
  .btn-cta-phone,
  .btn-cta-form,
  .btn-submit {
    appearance: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    min-height: 58px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: clamp(0.98rem, 0.16vw + 0.95rem, 1.05rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      background-color 0.22s ease,
      color 0.22s ease,
      border-color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn-cta-phone .icon,
  .btn-cta-form .icon {
    font-size: 1.1em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* =========================================================
     PHONE BUTTON
     ========================================================= */
  .btn-cta-phone {
    background: linear-gradient(135deg, #22d3ee 0%, #0ea5c6 48%, #0a7ea8 100%);
    color: #ffffff;
    box-shadow:
      0 10px 26px rgba(3, 105, 161, 0.28),
      inset 0 1px 0 rgba(255,255,255,0.18);
  }
  
  .btn-cta-phone:hover,
  .btn-cta-phone:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow:
      0 14px 32px rgba(3, 105, 161, 0.34),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
  
  .btn-cta-phone:active {
    transform: translateY(0);
  }
  
  /* =========================================================
     FORM TOGGLE BUTTON
     Improved from prior version to look premium on dark bg
     ========================================================= */
  .btn-cta-form {
    background: rgba(255,255,255,0.09);
    color: #f7fbff;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
      0 10px 24px rgba(0,0,0,0.14),
      inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .btn-cta-form:hover,
  .btn-cta-form:focus-visible {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(143,232,255,0.4);
    transform: translateY(-2px);
    box-shadow:
      0 14px 30px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }
  
  .btn-cta-form:active {
    transform: translateY(0);
  }
  
  /* =========================================================
     ACCESSIBLE FOCUS
     ========================================================= */
  .btn-cta-phone:focus-visible,
  .btn-cta-form:focus-visible,
  .btn-submit:focus-visible,
  .contact-form input:focus-visible,
  .contact-form textarea:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 3px rgba(255,255,255,0.18),
      0 0 0 6px rgba(143,232,255,0.24);
  }
  
  /* =========================================================
     FORM PANEL
     ========================================================= */
  .contact-form {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    background: rgba(255,255,255,0.96);
    color: #23313c;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: clamp(18px, 1.5vw, 24px);
    padding: clamp(1.1rem, 1vw + 0.95rem, 1.75rem);
    box-shadow:
      0 20px 50px rgba(9, 22, 31, 0.24),
      0 2px 8px rgba(9, 22, 31, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
      opacity 0.32s ease,
      transform 0.32s ease,
      max-height 0.32s ease,
      padding 0.32s ease,
      margin 0.32s ease;
  }
  
  .contact-form.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-width: 0;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .contact-form textarea {
    grid-column: 1 / -1;
    min-height: 140px;
    resize: vertical;
  }
  
  /* =========================================================
     FORM FIELDS
     ========================================================= */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    background: #ffffff;
    color: #24323d;
    border: 1px solid #d5e0e8;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #6f8090;
  }
  
  .contact-form input:hover,
  .contact-form textarea:hover {
    border-color: #bfd1dc;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #4ebfdd;
    background: #ffffff;
    box-shadow:
      0 0 0 4px rgba(78,191,221,0.16),
      inset 0 1px 2px rgba(15,23,42,0.03);
  }
  
  /* =========================================================
     SUBMIT BUTTON
     ========================================================= */
  .btn-submit {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #155e75 0%, #0f8aad 48%, #14b8d4 100%);
    color: #ffffff;
    border-radius: 16px;
    box-shadow:
      0 10px 24px rgba(8, 85, 109, 0.24),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }
  
  .btn-submit:hover,
  .btn-submit:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow:
      0 14px 30px rgba(8, 85, 109, 0.3),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
  
  .btn-submit:active {
    transform: translateY(0);
  }
  
  /* =========================================================
     SUCCESS MESSAGE
     ========================================================= */
  .form-success-message {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(236, 253, 245, 0.96);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #166534;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  }
  
  .form-success-message p {
    margin: 0;
    line-height: 1.65;
  }
  
  .form-success-message.hidden {
    display: none;
  }
  
  /* =========================================================
     LARGE DESKTOPS / ULTRAWIDE / TVS
     ========================================================= */
  @media (min-width: 1600px) {
    .cta-container {
      width: min(100% - 4rem, 1480px);
    }
  
    .cta-content {
      max-width: 1100px;
    }
  
    .cta-subtitle {
      max-width: 840px;
    }
  
    .cta-actions {
      gap: 1rem;
    }
  
    .btn-cta-phone,
    .btn-cta-form {
      min-height: 62px;
      padding-inline: 1.65rem;
      font-size: 1.08rem;
    }
  
    .contact-form {
      width: min(100%, 1080px);
      padding: 1.8rem;
    }
  
    .form-success-message {
      width: min(100%, 1080px);
    }
  }
  
  /* =========================================================
     DESKTOP / LAPTOP
     ========================================================= */
  @media (max-width: 1199px) {
    .cta-container {
      width: min(100% - 1.75rem, 1100px);
    }
  
    .contact-form {
      width: min(100%, 940px);
    }
  }
  
  /* =========================================================
     TABLET
     ========================================================= */
  @media (max-width: 991px) {
    .cta-section {
      padding-block: clamp(3rem, 6vw, 4.5rem);
    }
  
    .cta-container {
      width: min(100% - 1.5rem, 1000px);
    }
  
    .cta-subtitle {
      line-height: 1.75;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-form textarea {
      min-height: 130px;
    }
  }
  
  /* =========================================================
     MOBILE
     ========================================================= */
  @media (max-width: 767px) {
    .cta-container {
      width: min(100% - 1.25rem, 100%);
      gap: 1.25rem;
    }
  
    .cta-title {
      margin-bottom: 0.85rem;
    }
  
    .cta-subtitle {
      font-size: 1rem;
      line-height: 1.72;
    }
  
    .cta-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 0.8rem;
      margin-top: 1.35rem;
    }
  
    .btn-cta-phone,
    .btn-cta-form {
      width: 100%;
      min-height: 56px;
    }
  
    .contact-form {
      border-radius: 18px;
      padding: 1rem;
    }
  
    .contact-form input,
    .contact-form textarea {
      border-radius: 14px;
      font-size: 0.98rem;
    }
  
    .btn-submit {
      border-radius: 14px;
    }
  
    .form-success-message {
      border-radius: 16px;
      padding: 0.95rem 1rem;
    }
  }
  
  /* =========================================================
     SMALL PHONES
     ========================================================= */
  @media (max-width: 479px) {
    .cta-section {
      padding-block: 2.75rem;
    }
  
    .cta-container {
      width: min(100% - 1rem, 100%);
    }
  
    .cta-title {
      font-size: clamp(1.72rem, 8vw, 2.1rem);
      line-height: 1.12;
    }
  
    .cta-subtitle {
      font-size: 0.98rem;
      line-height: 1.68;
    }
  
    .btn-cta-phone,
    .btn-cta-form,
    .btn-submit {
      min-height: 54px;
      font-size: 0.97rem;
      padding-inline: 1rem;
    }
  
    .contact-form {
      padding: 0.92rem;
    }
  
    .contact-form textarea {
      min-height: 120px;
    }
  }
  
  /* =========================================================
     REDUCED MOTION
     ========================================================= */
  @media (prefers-reduced-motion: reduce) {
    .btn-cta-phone,
    .btn-cta-form,
    .btn-submit,
    .contact-form,
    .contact-form input,
    .contact-form textarea {
      transition: none;
    }
  }
  
  /* =========================================================
     PRINT
     ========================================================= */
  @media print {
    .cta-section {
      background: #1f4356 !important;
      color: #ffffff !important;
      box-shadow: none;
    }
  
    .cta-section::before,
    .cta-section::after {
      display: none;
    }
  
    .cta-actions {
      flex-direction: row;
    }
  
    .btn-cta-phone,
    .btn-cta-form,
    .btn-submit {
      box-shadow: none;
    }
  
    .contact-form {
      background: #ffffff;
      box-shadow: none;
      border: 1px solid #d8e0e6;
    }
  }











  /* =========================================================
   CTA RESPONSIVE ENHANCEMENTS
   Append below existing CTA CSS
   - Improves symmetry, spacing, scaling, and device coverage
   - Covers very small phones through large TVs
   ========================================================= */

/* =========================================================
   STRUCTURE + BALANCE
   ========================================================= */

.cta-section {
  padding-inline: 0;
}

.cta-container {
  align-items: start;
}

.cta-content,
.contact-form,
.form-success-message {
  width: min(100%, 980px);
}

.cta-content {
  display: grid;
  justify-items: center;
}

.cta-title {
  max-width: 14ch;
}

.cta-subtitle {
  max-width: 70ch;
}

.cta-actions {
  width: 100%;
  max-width: 760px;
  align-items: stretch;
}

.cta-actions > * {
  flex: 0 1 auto;
}

.btn-cta-phone,
.btn-cta-form {
  min-width: 220px;
}

.contact-form {
  transform-origin: top center;
}

.form-grid {
  align-items: start;
}

.contact-form input,
.contact-form textarea {
  min-height: 56px;
}

.contact-form textarea {
  min-height: 140px;
}

.btn-submit {
  justify-self: stretch;
}

/* Better symmetry when form is visible */
#ctaForm:not(.hidden) {
  margin-top: 0.15rem;
}

#ctaSuccess:not(.hidden) {
  margin-top: 0.15rem;
}

/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {
  .cta-section {
    padding-block: clamp(4rem, 5vw, 6.5rem);
  }

  .cta-container {
    gap: clamp(1.6rem, 2vw, 2.35rem);
  }

  .cta-title {
    max-width: 15ch;
    font-size: clamp(2.4rem, 2vw + 1.1rem, 4.1rem);
    line-height: 1.05;
  }

  .cta-subtitle {
    max-width: 74ch;
    font-size: clamp(1.04rem, 0.32vw + 0.96rem, 1.22rem);
    line-height: 1.82;
  }

  .cta-actions {
    max-width: 820px;
    gap: 1rem;
  }

  .btn-cta-phone,
  .btn-cta-form {
    min-height: 60px;
    padding-inline: 1.5rem;
  }

  .contact-form {
    width: min(100%, 1000px);
  }
}

/* =========================================================
   ULTRAWIDE / TV
   ========================================================= */

@media (min-width: 1600px) {
  .cta-section {
    padding-block: clamp(4.5rem, 5vw, 7rem);
  }

  .cta-container {
    width: min(100% - 4rem, 1520px);
    gap: 2.4rem;
  }

  .cta-content,
  .contact-form,
  .form-success-message {
    width: min(100%, 1100px);
  }

  .cta-title {
    max-width: 16ch;
    font-size: clamp(3rem, 2vw + 1.2rem, 4.8rem);
  }

  .cta-subtitle {
    max-width: 76ch;
    font-size: 1.18rem;
    line-height: 1.86;
  }

  .cta-actions {
    max-width: 900px;
    gap: 1rem;
  }

  .btn-cta-phone,
  .btn-cta-form {
    min-height: 64px;
    min-width: 250px;
    padding-inline: 1.8rem;
    font-size: 1.08rem;
  }

  .contact-form {
    padding: 1.9rem;
    border-radius: 26px;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 58px;
    font-size: 1.02rem;
  }

  .contact-form textarea {
    min-height: 150px;
  }

  .btn-submit {
    min-height: 58px;
  }
}

@media (min-width: 1920px) {
  .cta-container {
    width: min(100% - 5rem, 1700px);
  }

  .cta-content,
  .contact-form,
  .form-success-message {
    width: min(100%, 1180px);
  }

  .cta-title {
    font-size: clamp(3.5rem, 2vw + 1.3rem, 5.2rem);
    line-height: 1.03;
  }

  .cta-subtitle {
    font-size: 1.22rem;
    max-width: 78ch;
  }

  .btn-cta-phone,
  .btn-cta-form {
    min-height: 66px;
    min-width: 270px;
    padding-inline: 2rem;
  }

  .contact-form {
    width: min(100%, 1160px);
  }
}

/* =========================================================
   DESKTOP / LAPTOP REFINEMENT
   ========================================================= */

@media (max-width: 1199px) {
  .cta-title {
    max-width: 15ch;
  }

  .cta-subtitle {
    max-width: 68ch;
  }

  .cta-actions {
    max-width: 760px;
  }
}

/* =========================================================
   TABLET LANDSCAPE / SMALL LAPTOP
   ========================================================= */

@media (max-width: 991px) {
  .cta-section {
    padding-block: clamp(3rem, 6vw, 4.5rem);
  }

  .cta-content,
  .contact-form,
  .form-success-message {
    width: min(100%, 900px);
  }

  .cta-title {
    max-width: 16ch;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.08;
  }

  .cta-subtitle {
    max-width: 62ch;
    line-height: 1.76;
  }

  .cta-actions {
    max-width: 680px;
    gap: 0.9rem;
  }

  .btn-cta-phone,
  .btn-cta-form {
    min-width: 0;
  }

  .contact-form {
    padding: 1.1rem;
  }
}

/* =========================================================
   TABLET PORTRAIT
   ========================================================= */

@media (max-width: 768px) {
  .cta-section {
    padding-block: 3rem 3.5rem;
  }

  .cta-container {
    width: min(100% - 1.25rem, 100%);
    gap: 1.2rem;
  }

  .cta-content,
  .contact-form,
  .form-success-message {
    width: 100%;
  }

  .cta-title {
    max-width: 15ch;
    margin-bottom: 0.8rem;
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    line-height: 1.1;
  }

  .cta-subtitle {
    max-width: 46rem;
    font-size: 1rem;
    line-height: 1.72;
  }

  .cta-actions {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .btn-cta-phone,
  .btn-cta-form {
    width: 100%;
    min-height: 56px;
  }

  .contact-form {
    border-radius: 18px;
    padding: 1rem;
  }

  .form-grid {
    gap: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 54px;
    border-radius: 14px;
  }

  .contact-form textarea {
    min-height: 130px;
  }

  .btn-submit {
    min-height: 54px;
    border-radius: 14px;
  }
}

/* =========================================================
   LARGE PHONES
   ========================================================= */

@media (max-width: 600px) {
  .cta-section {
    padding-block: 2.85rem 3.15rem;
  }

  .cta-container {
    width: min(100% - 1.05rem, 100%);
    gap: 1.05rem;
  }

  .cta-title {
    max-width: 14ch;
    font-size: clamp(1.8rem, 7.2vw, 2.2rem);
    margin-bottom: 0.72rem;
  }

  .cta-subtitle {
    max-width: 34rem;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .cta-actions {
    margin-top: 1.15rem;
    gap: 0.72rem;
  }

  .btn-cta-phone,
  .btn-cta-form,
  .btn-submit {
    min-height: 54px;
    padding-inline: 1rem;
    font-size: 0.97rem;
  }

  .btn-cta-phone .icon,
  .btn-cta-form .icon {
    font-size: 1rem;
  }

  .contact-form {
    padding: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.97rem;
  }

  .contact-form textarea {
    min-height: 122px;
  }

  .form-success-message {
    padding: 0.92rem 0.95rem;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {
  .cta-section {
    padding-block: 2.7rem 3rem;
  }

  .cta-container {
    width: min(100% - 1rem, 100%);
    gap: 0.95rem;
  }

  .cta-title {
    max-width: 13ch;
    font-size: clamp(1.68rem, 8vw, 2rem);
    line-height: 1.12;
  }

  .cta-subtitle {
    font-size: 0.96rem;
    line-height: 1.66;
  }

  .cta-actions {
    gap: 0.68rem;
    margin-top: 1rem;
  }

  .btn-cta-phone,
  .btn-cta-form,
  .btn-submit {
    min-height: 52px;
    border-radius: 999px;
    font-size: 0.95rem;
    padding-inline: 0.95rem;
  }

  .contact-form {
    border-radius: 16px;
    padding: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 52px;
    border-radius: 13px;
    padding: 0.88rem 0.92rem;
  }

  .contact-form textarea {
    min-height: 116px;
  }

  .btn-submit {
    border-radius: 13px;
  }

  .form-success-message {
    border-radius: 14px;
  }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 359px) {
  .cta-title {
    font-size: 1.54rem;
  }

  .cta-subtitle {
    font-size: 0.92rem;
  }

  .btn-cta-phone,
  .btn-cta-form,
  .btn-submit {
    min-height: 50px;
    font-size: 0.92rem;
    padding-inline: 0.85rem;
  }

  .contact-form {
    padding: 0.82rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.94rem;
  }

  .contact-form textarea {
    min-height: 108px;
  }
}

/* =========================================================
   SHORT VIEWPORTS
   ========================================================= */

@media (max-height: 740px) and (min-width: 768px) {
  .cta-section {
    padding-block: 3rem 3.6rem;
  }

  .cta-title {
    font-size: clamp(2rem, 2vw + 1rem, 3rem);
  }

  .cta-subtitle {
    line-height: 1.7;
  }

  .cta-actions {
    margin-top: 1.2rem;
  }
}

/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {
  .cta-section {
    padding-block: 2rem 2.4rem;
  }

  .cta-container {
    gap: 0.9rem;
  }

  .cta-title {
    max-width: 18ch;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 0.55rem;
  }

  .cta-subtitle {
    max-width: 70ch;
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.95rem;
  }

  .btn-cta-phone,
  .btn-cta-form {
    width: auto;
    min-height: 48px;
    min-width: 200px;
  }

  .contact-form {
    padding: 0.85rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .contact-form textarea {
    grid-column: 1 / -1;
    min-height: 96px;
  }

  .btn-submit {
    min-height: 48px;
  }
}

/* =========================================================
   TOUCH DEVICE REFINEMENT
   ========================================================= */

@media (hover: none) and (pointer: coarse) {
  .btn-cta-phone:hover,
  .btn-cta-form:hover,
  .btn-submit:hover {
    transform: none;
  }

  .btn-cta-phone:active,
  .btn-cta-form:active,
  .btn-submit:active {
    transform: translateY(1px) scale(0.995);
  }

  .contact-form input,
  .contact-form textarea,
  .btn-cta-phone,
  .btn-cta-form,
  .btn-submit {
    -webkit-tap-highlight-color: transparent;
  }
}

/* =========================================================
   REDUCED MOTION REFINEMENT
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .contact-form.hidden {
    transform: none;
  }
}





/* =========================================================
   CTA MOBILE + BUTTON SYMMETRY REFINEMENT
   Append below existing page-index-cta.css
   ========================================================= */

/* Shared balance improvements */
.cta-content {
  display: grid;
  justify-items: center;
}

.cta-title {
  max-width: 14ch;
  text-wrap: balance;
}

.cta-subtitle {
  max-width: 68ch;
  text-wrap: pretty;
}

.cta-actions {
  width: 100%;
  max-width: 760px;
  align-items: stretch;
}

.cta-actions .btn-cta-phone,
.cta-actions .btn-cta-form {
  flex: 1 1 280px;
  min-width: 280px;
  min-height: 58px;
}

.cta-actions .btn-cta-phone,
.cta-actions .btn-cta-form,
.contact-form .btn-submit {
  justify-content: center;
  text-align: center;
}

.contact-form,
.form-success-message {
  width: min(100%, 980px);
}

.contact-form input,
.contact-form textarea,
.btn-submit {
  min-height: 56px;
}

.contact-form textarea {
  min-height: 136px;
}

/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
   ========================================================= */

@media (max-width: 991px) {
  .cta-title {
    max-width: 15ch;
  }

  .cta-subtitle {
    max-width: 60ch;
  }

  .cta-actions {
    max-width: 700px;
    gap: 0.9rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form {
    flex: 1 1 240px;
    min-width: 240px;
  }
}

/* =========================================================
   MOBILE STACK + CLEAN SYMMETRY
   ========================================================= */

@media (max-width: 767px) {
  .cta-section {
    padding-block: 3rem 3.35rem;
  }

  .cta-container {
    width: min(100% - 1.15rem, 100%);
    gap: 1.15rem;
  }

  .cta-content,
  .contact-form,
  .form-success-message {
    width: 100%;
  }

  .cta-title {
    max-width: 13ch;
    margin-bottom: 0.78rem;
    font-size: clamp(1.9rem, 6.8vw, 2.55rem);
    line-height: 1.1;
  }

  .cta-subtitle {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.7;
  }

  .cta-actions {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.78rem;
    margin-top: 1.2rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 56px;
    padding-inline: 1rem;
  }

  .contact-form {
    border-radius: 18px;
    padding: 1rem;
  }

  .form-grid {
    gap: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .contact-form textarea {
    min-height: 124px;
  }

  .btn-submit {
    min-height: 54px;
    border-radius: 14px;
  }

  .form-success-message {
    border-radius: 16px;
    padding: 0.95rem 1rem;
  }
}

/* =========================================================
   LARGE PHONES
   ========================================================= */

@media (max-width: 600px) {
  .cta-section {
    padding-block: 2.85rem 3.1rem;
  }

  .cta-container {
    width: min(100% - 1rem, 100%);
    gap: 1rem;
  }

  .cta-title {
    max-width: 12.5ch;
    font-size: clamp(1.76rem, 7.6vw, 2.15rem);
    margin-bottom: 0.72rem;
  }

  .cta-subtitle {
    max-width: 31rem;
    font-size: 0.97rem;
    line-height: 1.66;
  }

  .cta-actions {
    gap: 0.72rem;
    margin-top: 1.05rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form,
  .btn-submit {
    min-height: 54px;
    font-size: 0.96rem;
    padding-inline: 0.95rem;
  }

  .btn-cta-phone .icon,
  .btn-cta-form .icon {
    font-size: 1rem;
  }

  .contact-form {
    padding: 0.94rem;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 52px;
    font-size: 0.97rem;
    padding: 0.88rem 0.92rem;
  }

  .contact-form textarea {
    min-height: 118px;
  }
}

/* =========================================================
   SMALL PHONES / iPHONE SE RANGE
   ========================================================= */

@media (max-width: 430px) {
  .cta-section {
    padding-block: 2.65rem 2.95rem;
  }

  .cta-container {
    width: min(100% - 0.9rem, 100%);
    gap: 0.92rem;
  }

  .cta-title {
    max-width: 12ch;
    font-size: clamp(1.6rem, 8.2vw, 1.95rem);
    line-height: 1.12;
  }

  .cta-subtitle {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .cta-actions {
    gap: 0.66rem;
    margin-top: 0.95rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form,
  .btn-submit {
    min-height: 52px;
    font-size: 0.94rem;
    padding-inline: 0.9rem;
  }

  .contact-form {
    border-radius: 16px;
    padding: 0.88rem;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 50px;
    border-radius: 13px;
    font-size: 0.95rem;
  }

  .contact-form textarea {
    min-height: 112px;
  }

  .btn-submit {
    border-radius: 13px;
  }

  .form-success-message {
    border-radius: 14px;
    padding: 0.88rem 0.92rem;
  }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 375px) {
  .cta-title {
    font-size: clamp(1.48rem, 8.4vw, 1.78rem);
  }

  .cta-subtitle {
    font-size: 0.91rem;
    line-height: 1.58;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form,
  .btn-submit {
    min-height: 50px;
    font-size: 0.91rem;
    padding-inline: 0.82rem;
  }

  .btn-cta-phone .icon,
  .btn-cta-form .icon {
    font-size: 0.96rem;
  }

  .contact-form {
    padding: 0.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.93rem;
  }

  .contact-form textarea {
    min-height: 104px;
  }
}

/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {
  .cta-section {
    padding-block: 2rem 2.3rem;
  }

  .cta-title {
    max-width: 18ch;
    font-size: clamp(1.5rem, 4vw, 1.95rem);
    margin-bottom: 0.55rem;
  }

  .cta-subtitle {
    max-width: 72ch;
    font-size: 0.93rem;
    line-height: 1.56;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    gap: 0.72rem;
    margin-top: 0.9rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form {
    width: auto;
    min-width: 210px;
    min-height: 48px;
  }

  .contact-form {
    padding: 0.85rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .contact-form textarea {
    grid-column: 1 / -1;
    min-height: 96px;
  }

  .btn-submit {
    min-height: 48px;
  }
}

/* =========================================================
   TOUCH REFINEMENT
   ========================================================= */

@media (hover: none) and (pointer: coarse) {
  .btn-cta-phone:hover,
  .btn-cta-form:hover,
  .btn-submit:hover {
    transform: none;
  }

  .btn-cta-phone:active,
  .btn-cta-form:active,
  .btn-submit:active {
    transform: translateY(1px) scale(0.995);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .contact-form.hidden {
    transform: none;
  }
}




@media (max-width: 600px) {
  .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
  }

  .cta-actions .btn-cta-phone,
  .cta-actions .btn-cta-form {
    width: min(100%, 320px);
    max-width: 320px;
    min-width: 0;
    margin-inline: auto;
  }

  .cta-actions .btn-cta-phone {
    justify-content: center;
    text-align: center;
  }

  .cta-actions .btn-cta-phone .icon,
  .cta-actions .btn-cta-form .icon {
    flex: 0 0 auto;
  }
}