/* Static migration overrides. Kept deliberately small and framework-free. */
:root {
  --site-blue: #003184;
  --site-purple: #6728bf;
  --site-error: #d93025;
}

html {
  scroll-behavior: smooth;
}

.cakma-menu,
#form-menu,
.site-header.bg-white {
  display: none !important;
}

.product-page .main-menu,
.quote-page .main-menu {
  display: none !important;
}

.product-page .cakma-menu,
.quote-page #form-menu,
.standard-page .main-menu {
  display: block !important;
}

.product-page,
.quote-page {
  padding-top: 0 !important;
}

.hidden,
.site-hidden {
  display: none !important;
}

.reCaptcha,
.reCaptcha + .text-danger {
  display: none !important;
}

/* Hero slider: replaces the 32 KB MasterSlider runtime. */
#slider-main {
  min-height: 400px;
}

#masterslider {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 400px;
  margin: 0 auto;
}

#masterslider .ms-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 58px max(5vw, calc((100% - 1240px) / 2));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#masterslider .ms-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#masterslider .ms-layer-img {
  position: absolute !important;
  top: 0 !important;
  right: max(5vw, calc((100% - 1240px) / 2)) !important;
  width: auto;
  max-width: 48% !important;
  height: 100%;
  max-height: 400px !important;
  object-fit: contain !important;
}

#masterslider .hps-title1,
#masterslider .hps-title2,
#masterslider .hps-title3,
#masterslider .hps-button {
  position: relative !important;
  z-index: 2;
  width: 48%;
  max-width: 600px;
}

#masterslider .hps-title1 {
  margin-top: 4px !important;
}

.site-slider-dots {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 3px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.site-slider-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid #59499e;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.site-slider-dots button.is-active {
  background: #59499e;
}

/* Partner and secondary sliders use native scrolling. */
.tab .logosRef,
.creaServicesFlex,
.packet-slick,
.col-slick {
  scrollbar-width: none;
}

.tab .logosRef::-webkit-scrollbar,
.creaServicesFlex::-webkit-scrollbar,
.packet-slick::-webkit-scrollbar,
.col-slick::-webkit-scrollbar {
  display: none;
}

.tab .logosRef {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 7);
  grid-template-columns: none !important;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.tab .logosRef li {
  min-width: 0;
  scroll-snap-align: start;
}

.tab .logosRef li.site-hidden {
  display: none !important;
}

.referance-arrow {
  z-index: 4;
  cursor: pointer;
}

.creaServicesFlex,
.packet-slick,
.col-slick {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.creaServicesFlex > *,
.packet-slick > *,
.col-slick > * {
  flex: 0 0 33.333%;
  scroll-snap-align: start;
}

/* Static form behavior and validation. */
.dynamic-form .is-invalid {
  border-color: var(--site-error) !important;
  outline-color: var(--site-error);
}

.field-error {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 18px;
  color: var(--site-error);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.form-input:has(input[type="checkbox"]) .field-error,
.form-input:has(input[type="radio"]) .field-error {
  top: 5px;
}

.static-form-notice {
  width: 100%;
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid #b7aed4;
  border-radius: 4px;
  background: #f5f2ff;
  color: #34235f;
  font-weight: 600;
}

.static-form-notice.is-error {
  border-color: #efb2ae;
  background: #fff4f3;
  color: #8c1d18;
}

.dynamic-form button[type="submit"],
.dynamic-form button:not([type]) {
  cursor: pointer;
}

.dynamic-form button:disabled {
  cursor: progress;
  opacity: 0.65;
}

/* Bot tuzağı: görünmez kalmalı ama ekran okuyucu dışı bir gizleme yeterli. */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  border: 0;
  opacity: 0;
}

.search-empty {
  display: block;
  padding: 20px 0;
  color: #6b6288;
}

#search-result .result {
  padding: 12px 0;
  border-bottom: 1px solid #ece9f5;
}

@media (max-width: 1024px) {
  .tab .logosRef {
    grid-auto-columns: calc(100% / 3);
  }

  .creaServicesFlex > *,
  .packet-slick > *,
  .col-slick > * {
    flex-basis: 50%;
  }
}

@media (max-width: 600px) {
  #slider-main,
  #masterslider {
    min-height: 494px;
    height: 494px;
  }

  #masterslider .ms-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 26px 22px 38px;
    text-align: center;
  }

  #masterslider .ms-layer-img {
    position: static !important;
    order: 0;
    width: auto;
    height: 154px !important;
    max-width: 86% !important;
    margin: 0 auto 12px;
  }

  #masterslider .hps-title1,
  #masterslider .hps-title2,
  #masterslider .hps-title3,
  #masterslider .hps-button {
    width: 100%;
    max-width: none;
  }

  #masterslider .hps-title1 {
    order: 1;
    margin: 0 0 12px !important;
    font-size: 2rem !important;
  }

  #masterslider .hps-title3 {
    order: 2;
    margin-bottom: 12px !important;
  }

  #masterslider .hps-title2 {
    order: 3;
    margin-bottom: 10px !important;
    font-size: 0.92rem !important;
  }

  #masterslider .hps-button {
    order: 4;
    margin: 6px 0 0 !important;
  }

  .site-slider-dots {
    bottom: 9px;
  }

  .tab .logosRef {
    grid-auto-columns: 50%;
  }

  .creaServicesFlex > *,
  .packet-slick > *,
  .col-slick > * {
    flex-basis: 100%;
  }

  .field-error {
    top: 43px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #masterslider .ms-slide {
    transition: none;
  }
}
