/* Local overrides for the four/ template. */

/* Main menu: force white background */
.main-menu-three__wrapper,
.main-menu-three__wrapper-inner,
.stricky-header,
.sticky-header__content,
.main-menu {
  background-color: #fff !important;
}

/* Main menu: force black text */
.main-menu-three__wrapper,
.main-menu-three__wrapper-inner,
.main-menu-three__wrapper a,
.main-menu-three__wrapper .main-menu__list > li > a,
.main-menu-three__wrapper .mobile-nav__toggler,
.main-menu-three__wrapper .main-menu-three__search,
.main-menu-three__wrapper .main-menu-three__cart,
.main-menu-three__wrapper .main-menu-three__cart-count,
.main-menu-three__wrapper .navSidebar-button span,
.main-menu-three__wrapper .main-menu-three__call-number a,
.main-menu-three__wrapper .main-menu-three__call-sub-title {
  color: #000 !important;
}

/* Dropdown panels */
.main-menu .main-menu__list li ul,
.main-menu .main-menu__list li ul li {
  background-color: #fff !important;
}

.main-menu .main-menu__list li ul li a {
  color: #000 !important;
}

.main-menu .main-menu__list li ul li a:hover {
  color: #000 !important;
}

.seo-service-area {
  padding: 80px 0 70px;
  background: #f7f7f7;
}

.seo-service-area .about-three__text {
  margin-bottom: 18px;
  color: #4d4d4d;
}

.seo-service-area__box {
  height: 100%;
  padding: 34px;
  background: #fff;
  border-left: 4px solid var(--servixa-base);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.seo-service-area__box h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.seo-service-area__box p {
  margin: 0 0 22px;
  color: #4d4d4d;
  line-height: 1.65;
}

.seo-service-area__box p:last-child {
  margin-bottom: 0;
}

/* Mobile/tablet header: keep logo visually centered while menu icon sits right */
@media (max-width: 1199.98px) {
  .main-menu-three__wrapper-inner {
    position: relative;
    justify-content: center;
  }

  .main-menu-three__main-menu-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .main-menu-three__logo a {
    display: inline-flex;
  }
}

/* Header CTA button: force white text */
.main-menu-three__btn-box .thm-btn,
.main-menu-three__btn-box .thm-btn span,
.main-menu-three__btn-box .thm-btn i,
.main-menu-three__btn-box .thm-btn .icon-next {
  color: #fff !important;
}


@media (max-width: 991.98px) {
  .banner-one__img img {
    height: auto;       /* responsive */
    width: 100%;
    max-width: 100%;
  }
}

/* Services section: text-only layout (no carousel cards/images/buttons) */
.service-three__text-only {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-three__text-only .item {
  width: 100% !important;
}

.service-three__text-only .service-three__single {
  background: #fff !important;
  border: 1px solid #e9e9e9 !important;
  border-radius: 12px !important;
  padding: 18px 18px !important;
}

.service-three__text-only .service-three__content {
  padding: 0 !important;
}

.service-three__text-only .service-three__title {
  margin: 0 0 8px 0 !important;
}

.service-three__text-only .service-three__text {
  margin: 0 !important;
}

/* Book a Lock Nut Removal — jQuery Validate error text */
.faq-two__right .appointment-one__form label.error {
  color: #fff !important;
}

/* Service tab carousels — images fill the masked area without stretching */
.service-three__img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}

/* Gallery-only slides: full rounded cards; no caption overlay (icons/text removed) */
.service-three__single--gallery .service-three__img {
  border-radius: 15px;
}

.service-three__single--gallery .service-three__img::before {
  display: none;
}

.service-three__single--gallery .service-three__img img {
  border-radius: 15px;
}

/* Why choose before/after slider: keep a visible desktop box while lazy images load */
.why-choose-two__img .before-after-twentytwenty,
.why-choose-two__img .twentytwenty-wrapper {
  width: 100%;
}


.why-choose-two__img .before-after-twentytwenty:not(.twentytwenty-container) img {
  width: 100%;
}

/* —— Chat popup (floating booking form): wider panel + one field style —— */
.chat-popup {
  width: min(460px, calc(100vw - 28px)) !important;
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  border-radius: 16px !important;
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.chat-popup .popup-inner {
  padding: 56px 24px 24px !important;
  padding-top: 56px !important;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.chat-popup .close-chat {
  left: auto !important;
  right: 14px !important;
  top: 14px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: none;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: none;
  z-index: 2;
}

.chat-popup .close-chat:hover {
  background: var(--servixa-base) !important;
  color: #fff !important;
}

.chat-popup .chat-form .form-group:last-child,
.reviews-modal .chat-form .form-group:last-child {
  margin-bottom: 0;
}

.chat-popup__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.chat-popup__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.chat-popup .popup-inner .chat-popup__intro {
  margin: 0 !important;
  text-align: left !important;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72) !important;
}

.chat-popup__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-popup .chat-form .form-group.chat-popup__field,
.reviews-modal .chat-form .form-group.chat-popup__field {
  margin-bottom: 0 !important;
}

/* One design for text, email, tel, textarea (override template selectors) */
.chat-popup .chat-form .form-group input.chat-popup__input,
.chat-popup .chat-form .form-group textarea.chat-popup__input,
.reviews-modal .chat-form .form-group input.chat-popup__input,
.reviews-modal .chat-form .form-group textarea.chat-popup__input {
  display: block;
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chat-popup .chat-form .form-group input.chat-popup__input::placeholder,
.chat-popup .chat-form .form-group textarea.chat-popup__input::placeholder,
.reviews-modal .chat-form .form-group input.chat-popup__input::placeholder,
.reviews-modal .chat-form .form-group textarea.chat-popup__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
}

.chat-popup .chat-form .form-group input.chat-popup__input:hover,
.chat-popup .chat-form .form-group textarea.chat-popup__input:hover,
.reviews-modal .chat-form .form-group input.chat-popup__input:hover,
.reviews-modal .chat-form .form-group textarea.chat-popup__input:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.chat-popup .chat-form .form-group input.chat-popup__input:focus,
.chat-popup .chat-form .form-group textarea.chat-popup__input:focus,
.reviews-modal .chat-form .form-group input.chat-popup__input:focus,
.reviews-modal .chat-form .form-group textarea.chat-popup__input:focus {
  outline: none;
  border-color: var(--servixa-base);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.25);
}

.chat-popup .chat-form .form-group textarea.chat-popup__input.chat-popup__input--message,
.reviews-modal .chat-form .form-group textarea.chat-popup__input.chat-popup__input--message {
  min-height: 100px;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Nice-select: match .chat-popup__input */
.chat-popup .chat-popup__field--select .nice-select,
.reviews-modal .chat-popup__field--select .nice-select {
  float: none;
  display: block;
  width: 100%;
  height: 48px;
  line-height: 46px;
  padding-left: 16px;
  padding-right: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chat-popup .chat-popup__field--select .nice-select:hover,
.reviews-modal .chat-popup__field--select .nice-select:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.chat-popup .chat-popup__field--select .nice-select:hover,
.chat-popup .chat-popup__field--select .nice-select.open,
.reviews-modal .chat-popup__field--select .nice-select:hover,
.reviews-modal .chat-popup__field--select .nice-select.open {
  border-color: var(--servixa-base);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.25);
}

.chat-popup .chat-popup__field--select .nice-select:after,
.reviews-modal .chat-popup__field--select .nice-select:after {
  right: 16px;
  top: 50%;
  margin-top: -4px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  width: 8px;
  height: 8px;
}

.chat-popup .chat-popup__field--select .nice-select .list,
.reviews-modal .chat-popup__field--select .nice-select .list {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  background: #1e1e24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 220px;
  overflow-y: auto;
}

.chat-popup .chat-popup__field--select .nice-select .option,
.reviews-modal .chat-popup__field--select .nice-select .option {
  line-height: 1.35;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.9);
}

.chat-popup .chat-popup__field--select .nice-select .option:hover,
.chat-popup .chat-popup__field--select .nice-select .option.focus,
.chat-popup .chat-popup__field--select .nice-select .option.selected.focus,
.reviews-modal .chat-popup__field--select .nice-select .option:hover,
.reviews-modal .chat-popup__field--select .nice-select .option.focus,
.reviews-modal .chat-popup__field--select .nice-select .option.selected.focus {
  background: rgba(225, 6, 0, 0.25);
}

.chat-popup .chat-popup__field--select .nice-select .option.selected,
.reviews-modal .chat-popup__field--select .nice-select .option.selected {
  font-weight: 700;
}

.chat-popup .chat-popup__actions,
.reviews-modal .chat-popup__actions {
  margin-top: 6px;
  padding-top: 4px;
}

.chat-popup .chat-popup__actions .thm-btn,
.chat-popup .chat-popup__submit,
.reviews-modal .chat-popup__actions .thm-btn,
.reviews-modal .chat-popup__submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.chat-popup__result,
.reviews-modal .chat-popup__result {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.chat-popup__form label.error,
.reviews-modal .chat-popup__form label.error {
  color: #ffb4b4 !important;
  font-size: 12px;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

/* In-page anchors: offset for sticky header */
#main-content,
#about,
#services,
#faq,
#reviews,
#gallery,
#book {
  scroll-margin-top: 100px;
}

@media (max-width: 991.98px) {
  #main-content,
  #about,
  #services,
  #faq,
  #reviews,
  #gallery,
  #book {
    scroll-margin-top: 88px;
  }
}

/* Reviews section: light band + Trustpilot */
.reviews-trust {
  background-color: #eee !important;
  padding-top: 90px !important;
  padding-bottom: 100px !important;
}

.reviews-trust .section-title {
  margin-bottom: 45px;
}

.reviews-trust__carousel {
  padding-bottom: 8px;
}

.reviews-trust__pagination {
  position: relative !important;
  margin-top: 28px !important;
}

.reviews-trust__pagination .swiper-pagination-bullet {
  background: #111;
  opacity: 0.25;
}

.reviews-trust__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--servixa-base, #d90202);
}

.reviews-trust__trustpilot {
  margin-top: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Reviews carousel: equal card heights + see more */
.reviews-trust .swiper-wrapper {
  align-items: stretch;
}

.reviews-trust .swiper-slide {
  height: auto;
  display: flex;
}

.reviews-trust .testimonial-two__single-inner {
  display: flex;
  width: 100%;
}

.reviews-trust__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 22px 20px 24px;
}

.reviews-trust__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 8px;
}

.reviews-trust__text-wrap {
  position: relative;
  overflow: hidden;
  max-height: 9.25rem;
}

.reviews-trust__text-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0),
    rgba(17, 17, 17, 0.92) 55%,
    #111111
  );
  pointer-events: none;
}

.reviews-trust .reviews-trust__text-wrap .testimonial-two__author-text {
  margin-top: 0;
  margin-bottom: 0;
}

.reviews-trust__toggle {
  align-self: flex-start;
  margin-top: 10px;
  padding: 10px 4px 10px 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--servixa-base, #d90202);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reviews-trust__toggle:hover,
.reviews-trust__toggle:focus-visible {
  color: #fff;
  outline: none;
}

.reviews-trust__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(217, 2, 2, 0.45);
  border-radius: 4px;
}

.reviews-trust .testimonial-two__quote {
  margin-top: auto;
  padding-top: 12px;
}

@media (min-width: 768px) {
  .reviews-trust__text-wrap {
    max-height: 10.5rem;
  }

  .reviews-trust__card {
    padding: 28px 26px 30px;
  }
}

@media (max-width: 767.98px) {
  .reviews-trust {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .reviews-trust .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .reviews-trust__carousel {
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .reviews-trust__text-wrap {
    max-height: 8.75rem;
  }

  .reviews-trust__pagination {
    margin-top: 22px !important;
  }
}

/* Reviews modal: full review + booking form */
.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reviews-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.reviews-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.reviews-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  background: var(--servixa-black, #111);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reviews-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease;
}

.reviews-modal__close:hover,
.reviews-modal__close:focus-visible {
  background: var(--servixa-base, #d90202);
  outline: none;
}

.reviews-modal__scroll {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(92vh, 900px);
  padding: 52px 22px 26px;
}

.reviews-modal__review-block {
  margin-bottom: 8px;
}

.reviews-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.reviews-modal .reviews-modal__author {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.reviews-modal__body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.reviews-modal__body br {
  display: block;
  content: "";
  margin-top: 0.35em;
}

.reviews-modal__divider {
  height: 1px;
  margin: 22px 0 20px;
  background: rgba(255, 255, 255, 0.12);
}

.reviews-modal .chat-form {
  position: relative;
}

.reviews-modal .form-loader-overlay {
  background: rgba(10, 10, 20, 0.78);
  backdrop-filter: blur(5px);
  border-radius: 12px;
}

.reviews-modal .form-loader-box {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.reviews-modal .chat-popup__header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Success/error modal from contact-form-animations stays above */
#bookingStatusModal {
  z-index: 1000000 !important;
}

@media (max-width: 575.98px) {
  .reviews-modal {
    padding: 10px;
    align-items: flex-end;
  }

  .reviews-modal__panel {
    width: 100%;
    max-height: min(94vh, 900px);
    border-radius: 16px 16px 0 0;
  }

  .reviews-modal__scroll {
    padding: 48px 16px 22px;
  }
}

/* Floating WhatsApp / SMS / form — stacked next to original chat control */
.chat-icon.chat-icon--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.chat-icon.chat-icon--stack .chat-icon__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  line-height: 1;
  text-align: center;
  font-size: 20px;
  color: #fff;
  border-radius: 5px;
  z-index: 1;
  border: none;
  cursor: pointer;
  padding: 0;
}

.chat-icon.chat-icon--stack .chat-icon__btn:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 5px;
  z-index: -1;
}

.chat-icon.chat-icon--stack .chat-icon__btn.chat-toggler,
.chat-icon.chat-icon--stack .chat-icon__btn:not(.chat-icon__btn--whatsapp):not(.chat-icon__btn--sms) {
  background: var(--servixa-base);
}

.chat-icon.chat-icon--stack .chat-icon__btn.chat-toggler:before,
.chat-icon.chat-icon--stack .chat-icon__btn:not(.chat-icon__btn--whatsapp):not(.chat-icon__btn--sms):before {
  background-color: rgba(var(--servixa-base-rgb), 0.2);
}

.chat-icon.chat-icon--stack .chat-icon__btn--whatsapp {
  background: #25d366;
}

.chat-icon.chat-icon--stack .chat-icon__btn--whatsapp:before {
  background-color: rgba(37, 211, 102, 0.25);
}

.chat-icon.chat-icon--stack .chat-icon__btn--sms {
  background: #34495e;
}

.chat-icon.chat-icon--stack .chat-icon__btn--sms:before {
  background-color: rgba(52, 73, 94, 0.25);
}

/* CTA: shift specialist image left so it sits more in the margin and clears the headline */
@media (min-width: 992px) {
  .cta-two__img {
    left: -300px;
  }
}

/* Hero banner: centre copy and CTA on small screens (matches responsive.css banner-one @767px) */
@media (max-width: 767.98px) {
  .banner-one__left {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .banner-one__thm-and-other-btn-box {
    justify-content: center;
  }
}
