.contacts-page {
    --primary-color-contact-us: #010E1B;
    
    font-family: 'Lexend Deca', sans-serif !important;
}

.contacts-page .tooltip{
    display: none !important;
}

.contacts-page .form-field{
    position: relative;
}

.contacts-page .form-field .validation-error{
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 12px;
    color: #E04141;
}
.contacts-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 120px clamp(2rem, 6vw, 6rem) 90px;
    border-radius: 0 0 60px 60px;
    background: var(--primary-color-contact-us);
}

.contacts-hero::before {
    content: "";
    position: absolute;
    top: 97px;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(48.39% 86.33% at 49.5% -20.46%, rgb(71 163 254 / 49%) 0%, rgba(0, 140, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.contacts-hero .ai-hero-container {
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contacts-hero .ai-hero-left {
    width:auto !important;
    margin: 0 auto;
    padding-top: 80px;
}

.contacts-hero .ai-hero-heading {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 48px !important;
    line-height: 48px !important;
    letter-spacing: -0.2px !important;
    margin: 0 !important;
    font-weight: 400 !important;
    color: #E9EBF8 !important;
}

.contacts-hero .ai-hero-heading + .ai-hero-heading {
    background: linear-gradient(90deg, #07F4FF 33.18%, #0385FF 80.56%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    padding-top: 10px;
}

.contacts-hero .ai-hero-description {
    text-align: center;
    font-size: 16px;
    line-height: 27.2px;
    color: #FFFFFF;
    margin: 18px auto 0;
    max-width: none;
}

.contacts-hero .hero-overlay {
    display: none;
}

.contact-section {
    padding: 80px 0 80px;
}

.contact-anchor {
    height: 20px;
    float: left;
    width: 100%;
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(400px, 860px);
    align-items: center;
    gap: 60px;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

.contact-left {
    position: relative;
    padding: 40px 0;
}

.contact-section{
    position: relative;
}

.ellipse-left{
    bottom: 130px;
    transform: rotate(95deg);
    position: absolute;
    left: -15%;
    opacity: 0.7;
}

.blue-circle-blur {
    position: absolute;
    top: 0px;
}


.blue-circle-blur-right{
    position: absolute;
    right: -50px;
    height: 450px;
}

@media (resolution: 1.25dppx) {
    .blue-circle-blur-right{
        right: -200px;
    }
}
@media (resolution: 1.10dppx) {
    .blue-circle-blur-right{
        right: -100px;
    }
}
@media (min-resolution: 1.3dppx) {
    .blue-circle-blur-right{
        right: -270px;
    }
}
.contact-title {
    position: relative;
    font-size: 80px;
    font-weight: 500;
    color: var(--primary-color-contact-us);
    line-height: 98px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
    text-align: right;
}

.contact-title .accent-dot {
    background-color: #009BCE;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
}

.contact-card {
    border: 1px solid rgba(3, 144, 254, 0.35);
    border-radius: 16px;
    padding: 51px 42px;
    box-shadow: 0 6px 18px rgba(1, 14, 27, 0.06);
    backdrop-filter: blur(3px);
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color-contact-us);
    margin-bottom: 16px;
}

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

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

.contact-form .form-field.full {
    grid-column: 1 / -1;
}

.contact-form label {
    font-size: 16px;
    font-weight: 300;
    color: #0E1A2B;
}

.contact-form label span {
    color: #E04141;
}

.contact-form input.input_cls,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--primary-color-contact-us);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
    background: transparent;
    font-weight: 300;
}

.contact-form input.input_cls::placeholder,
.contact-form textarea::placeholder,
.country-code-input::placeholder {
    color: var(--primary-color-contact-us);
    transition: opacity 0.3s ease;
}
.contact-form input.input_cls:focus::placeholder,
.contact-form textarea:focus::placeholder,
.country-code-input:focus::placeholder {
    opacity: 0;
}
.contact-form input.input_cls,
.contact-form textarea,
.country-code-input {
    color: var(--primary-color-contact-us);
}
.contact-form textarea {
    min-height: 90px;
    resize: vertical;
}
.country-code-input{
    width: 50px;
    border: 1px solid var(--primary-color-contact-us);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
    background: #fff;
    font-weight: 300;
}
.input-with-prefix {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-prefix .prefix {
    font-size: 12px;
    color: #0E1A2B;
    padding: 0 10px;
    border-right: 1px solid #AEB9C6;
    background: #F5F7FA;
}

.input-with-prefix .input_cls {
    border: 0;
    padding: 10px 12px;
}

.contact-form .custom {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--primary-color-contact-us) !important;
    margin: 6px 0 6px;
    font-weight: 300;
}
.contact-form .custom span{
    color: var(--primary-color-contact-us) !important;
}
.contact-form .custom span.checkbox {
    min-width: 20px;
    width: 20px;
    height: 20px;
    border:1px solid var(--primary-color-contact-us);
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.contact-form .custom span.terms-text{
    margin-left: 12px;
}
.contact-form .custom input {
    display: none;
}

.contact-form .custom input:checked + span {
    background: #2286E8;
    border-color: #2286E8;
}

.contact-form .custom input:checked + span::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-form .inline_link {
    font-weight: 300;
    font-size: 16px;
    text-decoration: underline !important;
    color: var(--primary-color-contact-us) !important;
}

.contact-form .button_cl {
    height: 48px;
    width: 185px;
    justify-content: center;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #051731;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    cursor: pointer;
}
.contact-form .button_cl:hover {
    box-shadow: 0px 0px 18px 0px #024fb6;
    transition: 0.1s ease-in;
  
}

.contact-form .button_cl .loader {
    display: none;
    width: 16px;
    height: 16px;
}

.contact-form .button_cl.loading .loader {
    display: inline-block;
}

.contact-form .button_cl.loading svg {
    display: none;
}

.responseMessage {
    margin: 0;
    font-size: 12px;
    color: #E04141;
}

.validation-error {
    color: #ff3b30 !important;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.contact-form .custom input.error + span.checkbox {
    border-color: #ff3b30 !important;
}

.contact-form .input_cls.error, 
.contact-form textarea.error {
    border-color: #ff3b30 !important;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    overflow: hidden;
    position: relative;
    padding-bottom: 60px;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

/* Avatar Stack */
.testimonials-avatars {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top:25px;
    height: 305px;
    overflow: hidden;
    width: 100px;
    isolation: isolate;
}

/* Circular fade filters for top and bottom edge avatars */
.avatar-stack::before,
.avatar-stack::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 108px;
    height: 108px;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    filter: blur(8px);
}

.avatar-stack::before {
    top: -24px;
    background: radial-gradient(ellipse at top, #ffffff 0%, #fffffffe 15%, #ffffff 25%, #ffffff 30%, #fffffff6 40%, #ffffffbf 50%, #ffffff7e 75%, #ffffff53 100%);

}

.avatar-stack::after {
    bottom: -24px;
    background: radial-gradient(ellipse at bottom, #ffffff 0%, rgb(255, 255, 255) 15%, #ffffff 25%, #ffffffe2 30%, #ffffffbe 35%, #ffffff95 40%, #ffffffa1 50%, #ffffff90 75%, #ffffff90 100%);
}

.avatar-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 90px 0 90px 0;
}

.avatar-item {
    cursor: pointer;
    flex-shrink: 0;
}

.avatar-item.top-exit-hidden .avatar-ring {
    opacity: 0;
    transition: none;
}

.avatar-ring {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    border-radius: 50px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0px 4px 4px 0px #00000040;
    position: relative;
    box-sizing: border-box;
    border: 3px solid transparent;
    overflow: hidden;
}

.avatar-ring.active {
    border-color:#009BCE;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    object-fit: cover;
    display: block;
    opacity: 0.80;
    transition: opacity 0.4s ease;
}

.avatar-ring.active img {
    opacity: 1;
}

/* Horizontal Dashed Line + Vertical Blue Bar */
.avatar-connector {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Testimonials Content */
.testimonials-content {
    position: relative;
    z-index: 2;
}

.testimonials-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 40px;
    font-weight: 500;
    color:var(--primary-color-contact-us);
    line-height: 1.2;
    margin-bottom: 20px;
}

.testimonials-title .highlight {
    background: linear-gradient(90deg, #07F4FF 28.62%, #0385FF 98.11%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonials-slider {
    position: relative;
    min-height: 180px;
    margin-top: 40px;
}

.quote-icon {
    margin-bottom: 20px;
}

.quote-icon svg {
    width: 45px;
    height: 39px;
}

/* Testimonial Slides */
.testimonial-slides {
    position: relative;
    min-height: 180px;
    margin-left: 45px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--primary-color-contact-us);
    margin: 0 0 24px;
    max-width: 800px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.author-name {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color-contact-us);
}

.author-position {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #647588;
}

.author-company {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #647588;
}

@keyframes mobileAvatarReveal {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mobileSlideReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.testimonials-decor {
    position: absolute;
    right: 0px;
    bottom: -20px;
}
.blue-circle-blur-sm{
    display: none;
}

@media (max-width: 1600px) {
    .contact-container{
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 800px);
    }
    .contact-section {
        padding: 80px 10px 80px 0px;
    }
    
}
@media (max-width: 1500px) {
    .contact-container{
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 760px);
    }
    .testimonials-section .main-container{
        max-width: 1320px;
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0;
        width: 100%;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 1499px) {
    .contact-container{
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 800px);
    }
    
}


@media (max-width: 1399px) {
    .contact-container{
        grid-template-columns: minmax(250px, 1fr) minmax(400px, 768px);
        gap: 20px;
    }
    .testimonials-section .main-container{
        max-width: 1200px;
    }
}


@media (max-width: 1300px){
    .testimonials-decor{
        transform: rotate(340deg);
        right: -60px;
        bottom: 10px;
    }
    .contact-container{
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 90%;
    }
    .testimonials-section .main-container{
        max-width: 90%;
    }
    .contact-section{
        padding: 80px 0px 60px 0px;
    }
    .ellipse-left {
        top: 20px;
        transform: rotate(100deg);
        position: absolute;
        left: -15%;
        opacity: 0.3;
    }
    /* Center the block, but right-align text inside */
    .contact-left {
        display: flex;
        justify-content: center;
        padding: 20px 0;
    }
    
    .contact-title {
        align-items: flex-end;
        text-align: right;
        width: auto;
    }
    
    /* Hide decorative elements */
    .blue-circle-blur {
        display: none;
    }
    .blue-circle-blur-right {
        display: none;
    }
    .ellipse-left{
        display:block;
    }    
    /* Show the smaller blur for tablet */
    .blue-circle-blur-sm {
        display: block;
        position: absolute;
        top: -100px;
        left: -50px;
        opacity: 0.6;
    }
    .testimonials-wrapper{
        gap: 20px;
    }
    /* Adjust form card */
    .contact-card {
        width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 860px) {
   .contact-card{
        padding: 50px 20px
   }
}

@media (max-width: 800px) {
    .contact-form .form-grid{
        grid-template-columns: 1fr;
        gap:20px 25px;
  }
  .contact-title{
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
  }
  
  /* Mobile Testimonials Layout */
  .testimonials-wrapper {
      grid-template-columns: 1fr;
      gap: 0px;
  }
  .testimonials-title{
    margin-bottom: 0px;
  }
  .testimonials-content {
      order: 0;
      text-align: center;
  }
  .testimonials-slider{
    margin-top: 30px;
  }
  .testimonials-avatars {
      order: 1;
      justify-content: center;
      margin-top: 0px;
  }
  .testimonials-section{
    padding-bottom: 110px;
  }
  .avatar-stack {
      height: auto;
      width: auto;
      overflow: visible;
  }
  
  /* Hide gradient masks on mobile */
  .avatar-stack::before,
  .avatar-stack::after {
      display: none;
  }
  
  /* Show only the active avatar */
  .avatar-carousel {
      padding: 0;
      transform: none !important; /* Override JS transform */
      gap: 0;
  }
  
  .avatar-item {
      display: none !important; /* Hide all avatars by default */
  }
  
  .avatar-item.clone {
      display: none !important; /* Force hide clones */
  }
  
  .avatar-item.active:not(.clone) {
      display: block !important; /* Show only original active active */
      opacity: 1;
      transform: none !important;
      margin: 0 auto;
      animation: mobileAvatarReveal 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .avatar-connector {
      display: none;
  }
  
  .quote-icon {
      display: none; 
  }
  
  .testimonial-slides {
      margin-left: 0;
      min-height: auto;
  }
  
  .testimonial-slide {
      position: relative;
      opacity: 1;
      transform: none;
      display: none;
  }
  
  .testimonial-slide.active {
      display: block;
      animation: mobileSlideReveal 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  
  .testimonial-text {
      font-size: 16px;
      line-height: 24px;
      color: var(--primary-text-color-contact-us);
      font-weight: 500;
      margin-bottom: 24px;
      text-align: center;
  }
  
  .testimonial-author {
      align-items: center;
      margin-bottom: 20px;
  }
  
  .author-name {
      font-size: 18px;
      color: #010E1B;
      font-weight: 500;
  }

  .author-position {
      font-size: 16px;
      font-weight: 500;
      color: #647588;
  }
  
  .author-company {
        font-weight: 400;
        font-size: 16px;
        color: #647588;
  }
}
@media (max-width: 768px) {
   .testimonials-decor{
        display: none;
   }

    .ellipse-left{
        transform: rotate(100deg);
        left: -24%;
    }

   .testimonials-title{
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
   }
}
@media (max-width: 600px) {
     .contacts-hero{
        padding: 8rem clamp(2rem, 6vw, 6rem) 8rem clamp(2rem, 6vw, 6rem);
    }
    .ellipse-left{
        transform: rotate(100deg);
        left: -48%;
    } 

    .blue-circle-blur{
        display: none;
    }
    .blue-circle-blur-sm{
        display: block;
        position: absolute;
        top: -210px;
        left: -75px;
        opacity: 0.5;
    }

    .contact-container{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 469px) {
    .contact-form .custom{
        align-items: flex-start;
    }
    .contact-form .custom span.checkbox{
        top: 5px;
    }
}
