/* ── Brand Variables Overrides (Matching the premium homepage system) ── */
  

  /* ── Custom Scrollbar ── */
  html {
    scrollbar-color: var(--primary) var(--surface-2);
    scrollbar-width: thin;
    scroll-behavior: smooth;
  }

  body {
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 64px; /* Space for the sticky navigation header */
  }



  /* ── Page Layout Wrapper ── */
  .contact-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: calc(100vh - 170px);
    max-width: 1120px;
    margin: 40px auto 48px;
    width: calc(100% - 104px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 48px rgba(10, 15, 30, 0.08), 0 2px 8px rgba(10, 15, 30, 0.04);
    border: 1px solid var(--border);
    background: #fff;
  }
  @media (max-width: 1200px) { .contact-wrap { width: calc(100% - 48px); } }

  /* ── Left Panel (Premium Dark Navy Mode) ── */
  .contact-left {
    background: var(--teal);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }
  /* Glowing modern backdrops */
  .contact-left::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 65% 50% at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse 60% 70% at 0% 100%, rgba(0, 0, 0, 0.18) 0%, transparent 55%);
    z-index: 0;
  }
  /* Grid pattern overlay */
  .contact-left::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
  }

  .contact-left > * { position: relative; z-index: 1; }

  /* Logo */
  .contact-logo { display: flex; justify-content: flex-start; margin-bottom: 48px; }
  .contact-logo svg { height: 26px; width: auto; }

  /* Headline & Rotation */
  .contact-headline { margin-bottom: 0; }
  .contact-headline h2 {
    font-size: clamp(26px, 2.8vw, 34px); /* Perfectly matches right panel h1 size */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em; /* Matches right panel h1 */
    color: #fff;
    margin: 0 0 12px; /* Reset margin-top to 0 for pixel-perfect vertical alignment */
  }

  /* Responsive Left Panel Spacer to align testimonial cards perfectly with right inputs */
  .contact-left-spacer {
    height: 86px; /* Matches exact height of description p (2 lines * 25.2px line-height) + 36px margin */
  }
  @media (max-width: 900px) {
    .contact-left-spacer {
      display: none;
    }
  }
  .headline-text {
    display: inline-block;
    animation: fadeSlideIn .5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .headline-text.fade-out {
    animation: fadeSlideOut .4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
  }

  /* Testimonials Glassmorphism Cards */
  .contact-testimonials {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    display: none;
    animation: fadeSlideIn .45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .testimonial-card.active { display: block; }

  .testimonial-card .testimonial-inner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  .testimonial-brand {
    font-size: 9.5px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--primary-m);
    margin-bottom: 10px;
    display: block;
  }
  .testimonial-quote {
    font-size: 14px; font-weight: 400; line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    min-height: 76px;
  }
  
  /* Carousel Dots and Authors */
  .testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .testimonial-author {
    display: none;
    align-items: center;
    gap: 12px;
    animation: fadeSlideIn .4s ease forwards;
  }
  .testimonial-author.active { display: flex; }

  .testimonial-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    border: 1px solid var(--primary-m);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
  }
  .testimonial-name { font-size: 13.5px; font-weight: 600; color: #fff; }
  .testimonial-role { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }

  .testimonial-dots {
    display: flex; gap: 6px;
  }
  .t-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none; cursor: pointer; padding: 0;
    transition: all .25s ease;
  }
  .t-dot.active {
    background: #fff;
    width: 20px; border-radius: 3px;
  }

  /* Divider & Partners */
  .trusted-divider {
    border: none; border-top: 1px solid rgba(255,255,255,.08);
    margin: 24px 0 16px;
  }
  .trusted-label {
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.35);
    margin-bottom: 12px;
  }
  .trusted-logos {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .trusted-logo {
    display: flex; align-items: center; justify-content: center;
    padding: 8px 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .trusted-logo:last-child { border-right: none; }
  .trusted-logo span {
    font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s;
  }
  .trusted-logo:hover span { color: rgba(255, 255, 255, 0.7); }

  /* ── Right Panel (Sleek Form) ── */
  .contact-right {
    background: #fff;
    padding: 56px 56px;
    display: flex;
    align-items: flex-start; /* Align with the top to match the left column */
  }
  .contact-form-wrap { width: 100%; max-width: 440px; margin: 0 auto; }

  .contact-form-wrap h1 {
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 800; letter-spacing: -.035em;
    color: var(--navy); margin: 0 0 12px; /* Reset margin-top to 0 for pixel-perfect alignment */
    line-height: 1.15; /* Match left heading line-height exactly */
    text-align: left;
  }
  .contact-form-wrap p {
    font-size: 15px; line-height: 1.68;
    color: var(--muted); margin: 0 0 36px; /* Reset margin-top to 0 for exact height calculation */
    text-align: left;
  }

  /* Form Fields & Rows */
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  .form-row--full { grid-template-columns: 1fr; }
  .form-field { display: flex; flex-direction: column; }

  .form-input,
  .form-select,
  .form-textarea {
    font-family: inherit;
    font-size: 14px; font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 13.5px 16px;
    width: 100%;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    outline: none;
    -webkit-appearance: none; appearance: none;
  }
  .form-input::placeholder,
  .form-textarea::placeholder { color: var(--subtle); }
  
  /* Focus States: Glowing soft brand effect */
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
  }

  .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
  }
  .form-select option[value=""] { color: var(--subtle); }

  .form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
  }

  .form-submit{display: block; width: 100%;
    font-family: inherit;
    font-size: 15px; font-weight: 600; letter-spacing: -.01em;
    color: #fff;
    background: var(--rose);
    border: none; border-radius: 8px;
    padding: 15px 28px;
    cursor: pointer;
    margin-top: 20px;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--rose) 32%, transparent);}
  .form-submit:hover {
    background: color-mix(in srgb, var(--rose) 85%, #000);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--rose) 45%, transparent);
  }
  .form-submit:active { transform: none; }

  /* Error Message */
  .form-error {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 6px;
    margin-left: 2px;
  }

  /* Success State overlay */
  .form-success {
    display: none;
    text-align: center;
    padding: 40px 0;
    animation: fadeSlideIn 0.5s ease forwards;
  }
  .form-success__icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--green-l); border: 1.5px solid var(--green-m);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
  }
  .form-success__icon svg { width: 26px; height: 26px; color: var(--green); }
  .form-success h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 10px; letter-spacing: -.03em; }
  .form-success p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

  /* ── Responsive adjustments ── */
  @media (max-width: 900px) {
    .contact-wrap {
      grid-template-columns: 1fr;
      margin: 24px 16px 32px;
      width: calc(100% - 32px);
    }
    .contact-left { order: 2; padding: 44px 32px; border-right: none; border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .contact-right { order: 1; padding: 44px 32px; }
    .contact-headline h2 { min-height: auto; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .trusted-logos { grid-template-columns: repeat(2, 1fr); }
    .trusted-logo:nth-child(2) { border-right: none; }
  }
  @media (max-width: 640px) {
    .contact-left { padding: 36px 24px; }
    .contact-right { padding: 36px 24px; }
  }