/* =========================================================
   ALB Mobile Conversion Section
   ========================================================= */

.mobile-section {
  display: none;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
  section.home-benner-sec.mobile-conversion {
    padding-bottom: 0 !important;
  }
  .mobile-section {
    display: block;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(8, 73, 132, 0.42),
        transparent 42%
      ),
      linear-gradient(180deg, #062746 0%, #021a31 42%, #00162b 100%);
    color: #fff;
    padding: 16px clamp(14px, 4.85vw, 28px) 24px;
  }

  .mobile-section,
  .mobile-section * {
    box-sizing: border-box;
  }

  .mobile-section__inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .mobile-section__opening {
    margin: 0 auto 16px;
    color: #fff;
    font-size: clamp(16px, 3.5vw, 20px);
    line-height: 1.35;
    text-align: center;
  }

  .mobile-section__opening p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  .mobile-section__opening > :first-child {
    margin-top: 0;
  }

  .mobile-section__opening > :last-child {
    margin-bottom: 0;
  }

  /* ---------- Shared card ---------- */

  .mobile-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 12px;
    border: 2px solid rgba(126, 157, 188, 0.58);
    border-radius: 15px;
    background: rgba(0, 26, 52, 0.42);
    box-shadow: inset 0 0 40px rgba(8, 59, 107, 0.12);
  }

  .mobile-card__heading {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(83, 119, 154, 0.55);
    background: rgba(18, 60, 102, 0.24);
    color: #fff;
    font-size: clamp(17px, 3.5vw, 20px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  /* ---------- Carousel ---------- */

  .mobile-carousel {
    position: relative;
    padding: 16px 58px 12px;
  }

  .mobile-carousel__viewport {
    overflow: hidden;
    width: 100%;
  }

  .mobile-carousel__track {
    display: flex;
    transition: transform 280ms ease;
    will-change: transform;
  }

  .mobile-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }

  .mobile-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid #0784ff;
    border-radius: 999px;
    background: rgba(0, 28, 54, 0.72);
    color: #fff;
    font: inherit;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    place-items: center;
  }

  .mobile-carousel__arrow span {
    display: block;
    margin-top: -5px;
  }

  .mobile-carousel__arrow--prev {
    left: 14px;
  }

  .mobile-carousel__arrow--next {
    right: 14px;
  }

  .mobile-carousel__arrow:disabled {
    opacity: 0.3;
    cursor: default;
  }

  .mobile-carousel__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
  }

  .mobile-carousel__counter {
    display: none;
  }

  .mobile-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 12px;
  }

  .mobile-carousel__dot {
    display: block;
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #d7dce2;
  }

  .mobile-carousel__dot.is-active {
    background: #087fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  }

  /* ---------- Existing case-result template cleanup ---------- */
  .mobile-case-result {
    text-align: center;
  }

  .mobile-case-result .row,
  .mobile-case-result [class*="col-"] {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-case-result img {
    max-width: 100%;
    height: auto;
  }

  /* Reset the desktop case-result template inside the compact mobile card. */
  .mobile-case-result .record-million-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 126px;
    padding: 0 !important;
    background: transparent;
  }

  .mobile-case-result .record-million-block > a:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
  }

  .mobile-case-result .record-million-block h4 {
    order: 1;
    margin: 0 0 2px;
    padding: 0;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 6.25vw, 36px) !important;
    font-weight: 800;
    line-height: 1.1;
    text-transform: none;
  }

  .mobile-case-result .record-million-block h4::before {
    display: none;
  }

  .mobile-case-result .record-million-block h3 {
    order: 2;
    margin: 0 0 10px;
    padding: 0;
    color: #0790ed;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 3vw, 17px) !important;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .mobile-case-result .record-million-block p {
    order: 3;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 0;
    color: #fff;
    font-size: clamp(13px, 2.8vw, 16px) !important;
    line-height: 1.3;
  }

  .mobile-case-result .record-million-block > a:last-child:not(:first-child) {
    display: none;
  }

  /* ---------- Awards ---------- */

  .mobile-carousel--awards {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mobile-awards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    min-height: 104px;
  }

  .mobile-awards__logo {
    display: grid;
    min-width: 0;
    place-items: center;
  }

  .mobile-awards__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 96px;
    object-fit: contain;
  }

  /* ---------- Testimonials ---------- */

  .mobile-testimonial {
    text-align: center;
  }

  .mobile-testimonial blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
  }

  .mobile-testimonial cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-weight: 700;
  }

  .mobile-testimonial .what-people-are-saying-about-us-slider-block {
    margin: 0;
    padding: 0 !important;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .mobile-testimonial .what-people-are-saying-about-us-slider-block figure {
    margin: 0 0 10px;
  }

  .mobile-testimonial
    .what-people-are-saying-about-us-slider-block
    figure:last-child {
    margin: 10px 0 0;
  }

  .mobile-testimonial .what-people-are-saying-about-us-slider-block figure img {
    width: auto !important;
    max-width: 75px;
    max-height: 38px;
  }

  .mobile-testimonial .testimonial-content {
    height: 4.35em;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    overscroll-behavior: contain;
    scrollbar-color: rgba(7, 132, 255, 0.8) rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-testimonial .testimonial-content::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-testimonial .testimonial-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(7, 132, 255, 0.8);
  }

  .mobile-testimonial .testimonial-content p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  .mobile-testimonial .testimonial-content p + p {
    margin-top: 0.75em;
  }

  .mobile-testimonial .what-people-are-saying-about-us-slider-block h3 {
    margin: 12px 0 0;
    padding: 0;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
  }

  .mobile-testimonial .what-people-are-saying-about-us-slider-block h3::before {
    display: none;
  }

  /* ---------- CTAs ---------- */

  .mobile-section__ctas {
    display: grid;
    gap: 8px;
    margin: 8px 0 12px;
  }

  .mobile-cta {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 7px;
    color: #fff;
    font: inherit;
    font-size: clamp(17px, 3.8vw, 21px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-cta--phone {
    border: 2px solid #0784ff;
    background: linear-gradient(90deg, #0874d8 0%, #1387f1 55%, #0874d8 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .mobile-cta--review {
    border: 2px solid #0784ff;
    background: rgba(0, 26, 49, 0.62);
  }

  .mobile-cta__icon {
    flex: 0 0 auto;
    font-size: 28px;
    line-height: 1;
  }

  /* ---------- Gravity Forms modal ---------- */

  .mobile-case-review-modal[hidden] {
    display: none !important;
  }

  .mobile-case-review-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    padding: 14px;
    place-items: center;
  }

  .mobile-case-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 9, 20, 0.82);
    backdrop-filter: blur(4px);
  }

  .mobile-case-review-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 22px 20px 20px;
    border: 2px solid #0b82f5;
    border-radius: 16px;
    background: linear-gradient(180deg, #07345b 0%, #042846 100%);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
    scrollbar-color: rgba(7, 132, 255, 0.8) transparent;
    scrollbar-width: thin;
  }

  .mobile-case-review-modal__dialog h2 {
    margin: 4px 35px 18px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-case-review-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    place-items: center;
  }

  body.mobile-modal-open {
    overflow: hidden;
  }

  /* Gravity Forms inside the modal */
  .mobile-case-review-modal .gform_wrapper {
    margin: 0;
    color: #fff;
  }

  .mobile-case-review-modal .gform_wrapper.gravity-theme .gform_fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .mobile-case-review-modal .gfield {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-case-review-modal .ginput_complex {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .mobile-case-review-modal .ginput_complex > span {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-case-review-modal .gform_wrapper.gravity-theme .gfield .gfield_label,
  .mobile-case-review-modal
    .gform_wrapper.gravity-theme
    .gfield
    .gform-field-label,
  .mobile-case-review-modal .gform_wrapper.gravity-theme .gfield > label,
  .mobile-case-review-modal .gform_wrapper.gravity-theme .gfield > legend {
    display: block;
    margin: 0 0 6px !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-align: left;
  }

  .mobile-case-review-modal .gform-field-label--type-sub {
    display: none !important;
  }

  .mobile-case-review-modal .gform_wrapper .dark-font,
  .mobile-case-review-modal .gform_wrapper .dark-font * {
    color: #fff !important;
  }

  .mobile-case-review-modal input:not([type="submit"]),
  .mobile-case-review-modal select,
  .mobile-case-review-modal textarea {
    width: 100%;
    height: 46px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 2px solid transparent !important;
    border-radius: 7px;
    outline: none;
    background: #fff !important;
    box-shadow: none;
    color: #172536 !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  .mobile-case-review-modal
    .gform_wrapper
    .dark-font
    input:not([type="submit"]),
  .mobile-case-review-modal .gform_wrapper .dark-font select,
  .mobile-case-review-modal .gform_wrapper .dark-font option,
  .mobile-case-review-modal .gform_wrapper .dark-font textarea {
    color: #172536 !important;
  }

  .mobile-case-review-modal textarea {
    height: 90px;
    padding-top: 12px !important;
    resize: vertical;
  }

  .mobile-case-review-modal input:not([type="submit"]):focus,
  .mobile-case-review-modal select:focus,
  .mobile-case-review-modal textarea:focus {
    border-color: #0784ff !important;
    box-shadow: 0 0 0 3px rgba(7, 132, 255, 0.2);
  }

  .mobile-case-review-modal input::placeholder,
  .mobile-case-review-modal textarea::placeholder {
    color: #68717d !important;
    opacity: 1;
  }

  .mobile-case-review-modal .gfield_description,
  .mobile-case-review-modal .gfield_validation_message,
  .mobile-case-review-modal .validation_message {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffd1d1 !important;
    font-size: 12px !important;
    line-height: 1.3;
  }

  .mobile-case-review-modal .gform_footer,
  .mobile-case-review-modal .gform_page_footer {
    display: block !important;
    width: 100%;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  .mobile-case-review-modal input[type="submit"],
  .mobile-case-review-modal .gform_button {
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(
      90deg,
      #0874d8 0%,
      #1387f1 55%,
      #0874d8 100%
    ) !important;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-case-review-modal input[type="submit"]:hover,
  .mobile-case-review-modal input[type="submit"]:focus,
  .mobile-case-review-modal .gform_button:hover,
  .mobile-case-review-modal .gform_button:focus {
    background: #1592ff !important;
  }
}

@media (max-width: 420px) {
  .mobile-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-carousel {
    padding-left: 50px;
    padding-right: 50px;
  }

  .mobile-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 32px;
  }

  .mobile-carousel__arrow--prev {
    left: 8px;
  }

  .mobile-carousel__arrow--next {
    right: 8px;
  }

  .mobile-awards {
    gap: 8px;
  }

  .mobile-cta {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mobile-cta__icon {
    font-size: 28px;
  }
}
