@import "tailwindcss";
@source "../../**/*.php";
body {
  overflow-x: hidden;
}

@layer base {
  body {
    font-family: "Poppins", sans-serif;
  }
  html {
    scroll-behavior: smooth;
  }
}

@layer utilities {
  .scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .scrollbar-none::-webkit-scrollbar {
    display: none;
  }
}

@keyframes slowRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@layer components {
  /* ── Hero Image — tablet crop ── */
  @media (min-width: 640px) and (max-width: 1023px) {
    .hero-img-wrapper {
      overflow: hidden;
    }
    .hero-img-wrapper .hero-img {
      width: calc(100% + 30px) !important;
      max-width: none !important;
    }
  }
  .a2-slider {
    transition: transform 0.4s ease;
  }

  @media (max-width: 1023px) {
    .animation-type-2 {
      overflow: hidden;
    }

    .a2-slider {
      display: flex;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 16px;
      padding: 10px 16px 20px;
      gap: 20px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .a2-slider::-webkit-scrollbar {
      display: none;
    }

    .card-a2 {
      flex: 0 0 100%;
      min-width: 100%;
      scroll-snap-align: start;
      margin-top: 0 !important;
      box-sizing: border-box;
    }
  }

  /* =======================================
     A3 FADES
  ======================================= */

  .a3-fade-left {
    background: linear-gradient(
      to right,
      #23b677 0%,
      rgba(35, 182, 119, 0.75) 40%,
      rgba(35, 182, 119, 0.5) 70%,
      transparent 100%
    );
  }

  .a3-fade-right {
    background: linear-gradient(
      to left,
      #23b677 0%,
      rgba(35, 182, 119, 0.75) 40%,
      rgba(35, 182, 119, 0.5) 70%,
      transparent 100%
    );
  }

  .a5-fade-right {
    background: linear-gradient(
      to left,
      #205e62 0%,
      rgba(32, 94, 98, 0.75) 40%,
      rgba(32, 94, 98, 0.25) 70%,
      transparent 100%
    );
  }

  /* =======================================
     A3 NAV
  ======================================= */

  .a3-nav {
    color: #164245;
    opacity: 0.5;
  }

  .a3-nav-active {
    color: white;
    opacity: 1;
  }

  .a3-nav-active .a3-navigation-label {
    font-weight: 700;
    color: white;
    opacity: 1;
  }

  .a3-nav-active g {
    opacity: 1;
  }

  /* =======================================
     A3 DOTS
  ======================================= */

  .a3-dot {
    background-color: rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
  }

  .a3-dot.active {
    background-color: white;
  }

  /* =======================================
     A3 SLOT
  ======================================= */

  .a3-slot {
    width: 360px;
    height: 360px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: stretch;
  }

  /* =======================================
     A3 CARD BASE
  ======================================= */

  .a3-block {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    min-height: 100%;
    overflow: hidden;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    transform-origin: center center;
    transition:
      transform 0.4s ease-in-out,
      opacity 0.4s ease-in-out;
    pointer-events: none;
  }

  /* =======================================
     A3 ACTIVE CARD
  ======================================= */

  .a3-block-active {
    transform: scale(1);
    pointer-events: auto;
    opacity: 1;
  }

  .a3-block-active .a3-block-title {
    @apply text-3xl;
  }

  .a3-block-active .a3-block-desc {
    @apply text-lg;
  }

  .a3-block-left,
  .a3-block-right {
    transform: scale(0.8);
    pointer-events: auto;
    opacity: 0.5;
  }

  .a3-block-left .a3-block-title,
  .a3-block-right .a3-block-title {
    @apply text-2xl;
  }

  .a3-block-left .a3-block-desc,
  .a3-block-right .a3-block-desc {
    @apply text-base;
  }

  /* =======================================
   A3 MOBILE (max 639px)
  ======================================= */
  @media (max-width: 639px) {
    .a3-blocks {
      overflow: hidden;
    }

    .a3-slider {
      scroll-snap-type: x mandatory;
      overflow-x: auto !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    .a3-slot {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      scroll-snap-align: start;
      flex-shrink: 0;
      align-items: stretch;
      padding: 0 1.25rem !important;
      box-sizing: border-box !important;
    }

    .a3-block {
      transform: scale(1) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      height: auto;
      margin: 0;
    }
  }

  /* =======================================
   A3 TABLET (640px–1023px)
  ======================================= */
  @media (min-width: 640px) and (max-width: 1023px) {
    .a3-blocks {
      overflow: hidden;
    }

    .a3-slider {
      scroll-snap-type: x mandatory;
      overflow-x: auto !important;
      overflow-y: visible !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .a3-slider::-webkit-scrollbar {
      display: none;
    }

    .a3-slot {
      width: 50% !important;
      max-width: 50% !important;
      height: auto !important;
      scroll-snap-align: start;
      flex-shrink: 0;
      align-items: stretch;
      padding: 0 0.75rem !important;
      box-sizing: border-box !important;
    }

    .a3-block {
      transform: scale(1) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      height: auto;
      margin: 0;
      border-radius: 0.75rem;
    }
  }

  /* =======================================
   A5
======================================= */

  .a5-blocks {
    overflow: hidden;
    position: relative;
  }

  .a5-slider {
    display: flex;
    gap: 40px;
    padding-left: 20px;
    width: max-content;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .a5-slot {
    flex: 0 0 auto;
  }

  .a5-block {
    width: 500px;
    height: 360px;
    opacity: 0.4;
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  .a5-block-active {
    opacity: 1;
    transform: scale(1);
  }

  .a5-nav-active {
    color: white;
  }

  .a5-dot {
    background-color: #164245;
    transition: background-color 0.3s ease;
  }

  .a5-dot.active {
    background-color: #2bc181;
  }

  @media (max-width: 639px) {
    .a5-navigation {
      display: none !important;
    }

    .a5-fade-right {
      display: none !important;
    }

    .grid:has(.a5-navigation) {
      display: block !important;
    }

    .a5-blocks {
      overflow: hidden;
    }

    .a5-slider {
      scroll-snap-type: x mandatory;
      overflow-x: auto !important;
      width: 100% !important;
      padding: 0 !important;
      gap: 0 !important;
      transition: none !important;
      transform: none !important;
      -ms-overflow-style: none;
      scrollbar-width: none;
      display: flex !important;
      align-items: stretch !important;
    }

    .a5-slider::-webkit-scrollbar {
      display: none;
    }

    .a5-slot {
      scroll-snap-align: start;
      scroll-snap-stop: always;
      width: 100% !important;
      min-width: 100% !important;
      flex-shrink: 0;
      padding: 0 1.25rem !important;
      box-sizing: border-box;
      display: flex;
      align-items: stretch;
    }

    .a5-block {
      width: 100% !important;
      height: auto !important;
      opacity: 1 !important;
      transform: none !important;
      padding: 2.5rem !important;
      align-self: stretch;
      display: flex;
      flex-direction: column;
    }

    .a5-navigation ~ div {
      margin-left: 0 !important;
    }
  }

  /* A5 TABLET (640px–1023px) */
  @media (min-width: 640px) and (max-width: 1023px) {
    .a5-navigation {
      display: none !important;
    }

    .a5-fade-right {
      display: none !important;
    }

    .grid:has(.a5-navigation) {
      display: block !important;
    }

    .a5-blocks {
      overflow: hidden;
    }

    .a5-slider {
      overflow-x: auto !important;
      width: 100% !important;
      padding: 0 !important;
      gap: 0 !important;
      transition: none !important;
      transform: none !important;
      -ms-overflow-style: none;
      scrollbar-width: none;
      display: flex !important;
      align-items: stretch !important;
    }

    .a5-slider::-webkit-scrollbar {
      display: none;
    }

    .a5-slot {
      scroll-snap-align: start;
      scroll-snap-stop: always;
      width: 50% !important;
      min-width: 50% !important;
      flex-shrink: 0;
      padding: 0 0.75rem !important;
      box-sizing: border-box;
      display: flex;
      align-items: stretch;
    }

    .a5-block {
      width: 100% !important;
      height: auto !important;
      opacity: 1 !important;
      transform: none !important;
      padding: 2.5rem !important;
      align-self: stretch;
      display: flex;
      flex-direction: column;
    }

    .a5-navigation ~ div {
      margin-left: 0 !important;
    }
  }

  /* =======================================
     A7
  ======================================= */

  .a7-blocks {
    overflow: hidden;
    position: relative;
  }

  .a7-slider {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .a7-slot {
    width: 360px;
    height: 400px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.5s ease;
  }

  .a7-block {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    /* No shadow by default — only active card gets it */
    box-shadow: none;
    transition: box-shadow 0.4s ease;
  }

  /* Slot transforms — no shadow here, shadow lives on .a7-block */
  .a7-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
  }

  /* Shadow on the white card inside the active slot only */
  .a7-active .a7-block {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .a7-prev {
    opacity: 0.5;
    transform: translateX(-250px) scale(0.8);
    z-index: 2;
  }

  .a7-next {
    opacity: 0.5;
    transform: translateX(250px) scale(0.8);
    z-index: 2;
  }

  /* Inactive cards explicitly have no shadow */
  .a7-prev .a7-block,
  .a7-next .a7-block {
    box-shadow: none;
  }

  .a7-hidden {
    opacity: 0;
    transform: scale(0.5);
    z-index: 0;
    pointer-events: none;
  }

  .a7-hidden .a7-block {
    box-shadow: none;
  }

  /* ── A7 MOBILE (max 639px) ── */
  @media (max-width: 639px) {
    .a7-arrow-left,
    .a7-arrow-right {
      display: none !important;
    }

    .a7-slider {
      height: auto !important;
      overflow-x: auto !important;
      scroll-snap-type: x mandatory;
      justify-content: flex-start !important;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .a7-slider::-webkit-scrollbar {
      display: none;
    }

    .a7-slot {
      min-height: 400px !important;
      display: flex;
      position: relative !important;
      width: 100% !important;
      min-width: 100% !important;
      height: auto !important;
      flex-shrink: 0;
      scroll-snap-align: start;
      transform: none !important;
      opacity: 1 !important;
      z-index: 1 !important;
      padding: 0 !important;
      box-sizing: border-box;
    }

    /* All cards look the same in scroll mode — each gets the shadow */
    .a7-block,
    .a7-active .a7-block,
    .a7-prev .a7-block,
    .a7-next .a7-block,
    .a7-hidden .a7-block {
      height: 100% !important;
      transform: none !important;
      opacity: 1 !important;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
      margin: 0 1rem;
      width: calc(100% - 2rem) !important;
    }

    .a7-active,
    .a7-prev,
    .a7-next,
    .a7-hidden {
      position: relative !important;
      transform: none !important;
      opacity: 1 !important;
      z-index: 1 !important;
      pointer-events: auto !important;
    }
  }

  /* ── A7 TABLET (640px–1279px) ── */
  @media (min-width: 640px) and (max-width: 1279px) {
    .a7-arrow-left,
    .a7-arrow-right {
      display: none !important;
    }

    .a7-dots {
      display: flex !important;
    }
  }

  /* =======================================
     MISC
  ======================================= */

  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar {
    scrollbar-width: none;
  }

  @media (max-width: 639px) {
    .a6-mobile-slider {
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .a6-mobile-slider::-webkit-scrollbar {
      display: none;
    }
  }

  @media (min-width: 640px) {
    .about-cards-section {
      background-image: none !important;
      background-color: white;
    }
  }

  /* ── Impact section ─────────────────────────────────────────────────── */

  .impact-dot {
    background-color: #c3e3d5;
    transition: background-color 0.1s ease;
  }

  .impact-dot.active {
    background-color: #2bc181;
  }

  .impact-slider::-webkit-scrollbar {
    display: none;
  }

  .impact-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  @media (min-width: 640px) and (max-width: 1023px) {
    .impact-slider-wrap {
      overflow: visible;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
      padding: 0 16px;
      box-sizing: border-box;
    }

    .impact-slider-wrap .impact-slider {
      display: flex !important;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      gap: 24px !important;
      padding: 12px 16px 30px;
      scroll-padding-left: 16px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .impact-slider-wrap .impact-slider::-webkit-scrollbar {
      display: none;
    }

    .impact-slider-wrap .impact-slider > div {
      flex: 0 0 calc(50% - 12px);
      min-width: calc(50% - 12px);
      scroll-snap-align: start;
      box-sizing: border-box;
    }
  }

  /* ── A8 ─────────────────────────────────────────────────────────────── */

  .a8-slider.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .a8-slider.is-dragging img {
    pointer-events: none;
  }

  .a8-dot {
    background-color: rgba(43, 193, 129, 0.5);
    transition:
      background-color 0.3s ease,
      transform 0.3s ease;
  }

  .a8-dot.is-active {
    background-color: #2bc181;
  }

  .a8-slider {
    scroll-behavior: smooth;
  }

  .a8-slider.is-dragging {
    scroll-behavior: auto;
  }
  /* ── A4 Mobile + Tablet (< 1024px) ──────────────────────────────────── */
  @media (max-width: 1023px) {
    .a4-right-col {
      overflow-x: hidden;
      overflow-y: visible;
      height: auto !important; /* don't force full height on mobile */
    }
    .a4-card-slider {
      display: flex;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      padding: 12px 0 16px;
      width: 100%;
      height: auto !important; /* let slider size to content */
      box-sizing: border-box;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .a4-card-slider::-webkit-scrollbar {
      display: none;
    }
    .a4-card-slider .card-a4 {
      flex: 0 0 calc(100% - 24px);
      min-width: calc(100% - 24px);
      margin: 0 12px;
      scroll-snap-align: center;
      scroll-snap-stop: always;
      box-sizing: border-box;
      height: auto !important; /* card sizes to content on mobile */
    }
  }

  @media (min-width: 1024px) {
    .a4-right-col {
      overflow: visible;
    }
    .a4-card-slider {
      display: block;
      overflow: visible;
      width: 100%;
    }
    .a4-hidden {
      display: none !important;
    }
  }

  /* =======================================
   GRAVITY FORMS
======================================= */
  [id^="gform_confirmation_message_"] {
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    color: white;
    background-color: #23b677;
    padding: 10px 20px;
    font-size: 1.5rem;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
  }

  .gform_wrapper {
    margin: 0;
    font-family: "Poppins", sans-serif;
  }

  .gform_wrapper .gform_fields {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }

  .gform_wrapper .gform_fields .gfield-row {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .gform_wrapper .gform_fields .gfield-row .gfield {
    flex: 1;
    width: calc(50% - 5px);
  }

  .gform_wrapper .gform_fields .gfield {
    width: 100%;
  }

  .gform_wrapper .gfield.timeline-field,
  .gform_wrapper .gfield[class*="timeline"] {
    width: calc(50% - 5px);
  }

  /* Labels */
  .gform_wrapper label.gfield_label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    color: #000;
  }

  .gform_wrapper .gfield_required_text {
    display: none;
  }

  /* ── Base inputs ── */
  .gform_wrapper input[type="text"],
  .gform_wrapper input[type="email"],
  .gform_wrapper textarea {
    width: 100%;
    height: 60px;
    border: 1.5px solid #bababa;
    border-radius: 10px;
    padding: 22px 24px;
    font-size: 18px;
    line-height: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    background: #fff;
    outline: none;
    display: block;
    box-sizing: border-box;
    transition:
      border-color 0.2s ease,
      background-color 0.2s ease;
  }

  .gform_wrapper textarea {
    min-height: 120px;
    height: auto;
    resize: none;
  }

  .gform_wrapper input::placeholder,
  .gform_wrapper textarea::placeholder {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    color: #a4a4a4;
  }

  .gform_wrapper input:focus,
  .gform_wrapper textarea:focus {
    border-color: #23b677;
  }

  /* ── Valid ── */
  .gform_wrapper input.gf-valid,
  .gform_wrapper textarea.gf-valid {
    border-color: #23b677 !important;
    background: #fff !important;
  }

  /* ── Error ── */
  .gform_wrapper input.gf-error,
  .gform_wrapper textarea.gf-error,
  .gform_wrapper .gfield_error input[type="text"],
  .gform_wrapper .gfield_error input[type="email"],
  .gform_wrapper .gfield_error textarea {
    border-color: #ff0000 !important;
    background-color: #fff5f5 !important;
  }

  /* ── Error message pill ── */
  .gform_wrapper .gf-error-msg,
  .gform_wrapper .validation_message {
    font-size: 12px;
    color: #e53e3e;
    background: #fff0f0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
    display: block;
  }

  /* Hide GF validation summary */
  .gform_validation_errors .gform_submission_error.hide_summary,
  h2.gform_submission_error.hide_summary,
  .gform_submission_error.hide_summary {
    display: none !important;
  }

  /* ── Footer ── */
  .gform_wrapper .gform_footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
  }

  /* ── Submit — yellow (default) ── */
  .gform_wrapper .gform_footer input[type="submit"],
  .gform_wrapper .gform_footer button[type="submit"],
  [id^="gform_submit_button_"] {
    background: #fed207 !important;
    background-color: #fed207 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 16px 24px !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 18px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    color: #000 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }

  /* ── Submit — green (all valid) ── */
  .gform_wrapper.gf-all-valid .gform_footer input[type="submit"],
  .gform_wrapper.gf-all-valid .gform_footer button[type="submit"],
  .gform_wrapper.gf-all-valid [id^="gform_submit_button_"] {
    background: #23b677 !important;
    background-color: #23b677 !important;
    color: #fff !important;
  }

  /* ── Icon — black on yellow ── */
  .gform_wrapper .gform_footer input[type="submit"]::before,
  .gform_wrapper .gform_footer button[type="submit"]::before,
  [id^="gform_submit_button_"]::before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M13.5006 0H10.5V24H13.5006V0Z' fill='black'/%3E%3Cpath d='M24 13.5006V10.5L0 10.5V13.5006L24 13.5006Z' fill='black'/%3E%3Cpath d='M21.5475 4.57487L19.4258 2.45312L2.45522 19.4237L4.57696 21.5454L21.5475 4.57487Z' fill='black'/%3E%3Cpath d='M19.4251 21.5465L21.5469 19.4248L4.57631 2.45424L2.45457 4.57598L19.4251 21.5465Z' fill='black'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }

  /* ── Icon — white on green ── */
  .gform_wrapper.gf-all-valid .gform_footer input[type="submit"]::before,
  .gform_wrapper.gf-all-valid .gform_footer button[type="submit"]::before,
  .gform_wrapper.gf-all-valid [id^="gform_submit_button_"]::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip)'%3E%3Cpath d='M13.5006 0H10.5V24H13.5006V0Z' fill='white'/%3E%3Cpath d='M24 13.5006V10.5L0 10.5V13.5006L24 13.5006Z' fill='white'/%3E%3Cpath d='M21.5475 4.57487L19.4258 2.45312L2.45522 19.4237L4.57696 21.5454L21.5475 4.57487Z' fill='white'/%3E%3Cpath d='M19.4251 21.5465L21.5469 19.4248L4.57631 2.45424L2.45457 4.57598L19.4251 21.5465Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  }

  .gform_wrapper .gform_footer input[type="submit"]:hover,
  .gform_wrapper .gform_footer button[type="submit"]:hover {
    opacity: 0.9;
  }

  /* ── Success banner ── */
  .gf-success-banner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #23b677;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .gf-success-banner.visible {
    display: flex;
  }

  /* ── MOBILE ── */
  @media (max-width: 639px) {
    .gform_wrapper .gform_footer {
      flex-direction: column;
      align-items: stretch;
    }

    .gform_wrapper .gform_footer input[type="submit"],
    .gform_wrapper .gform_footer button[type="submit"],
    [id^="gform_submit_button_"] {
      width: 100% !important;
      text-align: center;
    }

    .gform_wrapper .gform_fields .gfield-row {
      flex-direction: column;
    }

    .gform_wrapper .gform_fields .gfield-row .gfield,
    .gform_wrapper .gfield.timeline-field,
    .gform_wrapper .gfield[class*="timeline"] {
      width: 100%;
    }
  }

  /* ── TABLET + DESKTOP: 2-col grid ── */
  @media (min-width: 640px) {
    .gform_wrapper .gform_fields {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr);
      gap: 40px;
      padding-bottom: 40px;
    }

    /* Row 1: Name (field_1_1) and Email (field_1_5) */
    .gform_wrapper .gf-name {
      grid-column: 1;
      grid-row: 1;
    }

    .gform_wrapper .gf-email {
      grid-column: 2;
      grid-row: 1;
    }

    /* Row 2: Company (field_1_4) and Timeline */
    .gform_wrapper .gf-company {
      grid-column: 1;
      grid-row: 2;
    }

    /* Timeline field in row 2, column 2 */
    .gform_wrapper .gfield.timeline-field,
    .gform_wrapper .gfield[class*="timeline"],
    .gform_wrapper .gf-timeline {
      grid-column: 1;
      grid-row: 3;
      width: 100%;
    }

    /* Row 3: What you are looking for - spans both columns */
    .gform_wrapper .gf-captcha,
    .gform_wrapper .gfield[class*="looking"] {
      grid-column: 1 / -1;
      grid-row: 4;
      width: 100%;
    }

    /* Row 4: Submit in col 1, reCAPTCHA in col 2 */
    .gform_wrapper .gform_footer {
      margin-top: 0;
      padding: 0;
    }

    .gform_wrapper .gform_footer input[type="submit"],
    .gform_wrapper .gform_footer button[type="submit"],
    [id^="gform_submit_button_"] {
      justify-self: start;
      margin: 0;
    }
  }

  /* ── Contact Popup ── */
  #contact-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #contact-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  #contact-popup {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  }

  #contact-popup-overlay.active #contact-popup {
    transform: translateY(0);
  }

  #contact-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    transition: background 0.2s ease;
  }

  #contact-popup-close:hover {
    background: #e0e0e0;
  }

  body.popup-open {
    overflow: hidden;
  }

  #contact-popup[id^="gform_confirmation_message_"] {
    font-weight: 500;
    text-align: center;
    color: #000;
    font-size: 1.25rem;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
    padding: 20px 10px;
  }
}
