/*
 * Teknik Servis — Ekim 2026 tasarım güncellemesi (XD: "Yeni Tasarım")
 * Ölçüler 1440px tasarımdan 1:1 (içerik alanı 1170px = sitenin .container genişliği).
 * Formların JS akışı .media-container / .section-2 / .section-5 sınıflarına bağlı; bu dosya
 * yalnız görünümü değiştirir, o sınıflar şablonda korunuyor.
 */

.teknik-page {
  --ts-blue: #165EC9;
  --ts-blue-hover: #0F4DA8;
  --ts-green: #24B33F;
  --ts-green-hover: #1E9A35;
  --ts-gray-btn: #8C8C8C;
  --ts-gray-btn-hover: #767676;
  --ts-bg: #F5F5F7;
  --ts-border: #E6E6E6;
  --ts-text: #000;
  --ts-radius: 12px;
  --ts-radius-btn: 8px;
}

/* ---------- Üst bant ---------- */
.ts-hero {
  background: var(--ts-bg);
  padding: 45px 0 40px;
}

.ts-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.ts-hero-text {
  flex: 0 1 633px;
  color: var(--ts-text);
}

.ts-hero-title {
  font-size: 30px;
  line-height: 46px;
  font-weight: 700;
  color: var(--ts-blue);
  margin: 0 0 6px;
}

.ts-hero-text p {
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  color: var(--ts-text);
  margin: 0 0 24px;
}

.teknik-page .ts-hero-rating {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--ts-text);
}

.teknik-page .ts-hero-rating:hover span:last-child,
.teknik-page .ts-stat a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-stars {
  color: #FBBC04;
  letter-spacing: 1px;
}

.ts-hero-media {
  flex: 0 0 464px;
  max-width: 464px;
  margin-top: 5px;
}

.ts-hero-media img {
  display: block;
  border-radius: var(--ts-radius);
  width: 100%;
  height: auto;
}

/* ---------- Section 1: sol kart + sağ menü ---------- */
.teknik-page .section-1 {
  margin: 80px 0 0;
}

.teknik-page .service-container {
  height: auto;
  gap: 6px;
}

.teknik-page .sec1LeftBox {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  border-radius: var(--ts-radius);
}

.teknik-page .service-form-container {
  border-radius: var(--ts-radius);
  box-shadow: none;
}

.teknik-page .service-options {
  flex: 0 0 398px;
  height: auto; /* style.css'teki height:100% stretch'i engelliyordu (sol kutuyla eşit boy) */
  align-self: stretch;
  gap: 6px;
  justify-content: flex-start;
}

.teknik-page .service-card {
  border-radius: var(--ts-radius);
  min-height: 82px;
  flex: 1 1 0;
  align-items: stretch;
  overflow: hidden;
}

.teknik-page .service-icon {
  width: 104px;
  height: auto;
  min-height: 82px;
  margin-right: 16px;
  border-radius: var(--ts-radius) 0 0 var(--ts-radius);
  flex-shrink: 0;
}

.teknik-page .service-icon img {
  width: 44px;
  height: 44px;
}

.teknik-page .service-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--ts-text);
}

/* Aynı gün teslim kartı (video kutusunun yerini alır) */
.ts-promo {
  cursor: default;
  height: 100%;
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  justify-content: center;
  padding: 48px 40px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ts-promo.hidden {
  display: none;
}

.ts-promo-img {
  display: block;
  width: 498px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

.ts-promo-title {
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  color: var(--ts-blue);
  margin: 0 0 10px;
}

.ts-promo-desc {
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  color: var(--ts-text);
  max-width: 560px;
  margin: 0 auto 28px;
}

.ts-promo .ts-actions {
  width: 100%;
  max-width: 582px;
}

.ts-promo-phone {
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  color: var(--ts-text);
  margin: 26px 0 16px;
}

.ts-promo-phone a {
  font-size: 24px;
  font-weight: 700;
  color: var(--ts-blue);
  text-decoration: none;
  white-space: nowrap;
}

.ts-promo-note {
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
  color: var(--ts-text);
  max-width: 560px;
  margin: 0 auto;
}

.ts-promo-note strong {
  font-weight: 700;
}

/* ---------- Butonlar ---------- */
.ts-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ts-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.teknik-page .ts-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--ts-radius-btn);
  transition: background-color .2s ease;
}

.teknik-page .ts-btn:hover,
.teknik-page .ts-btn:focus-visible {
  color: #fff;
}

.ts-btn svg {
  flex-shrink: 0;
}

.teknik-page .ts-btn-whatsapp { background: var(--ts-green); }
.teknik-page .ts-btn-whatsapp:hover { background: var(--ts-green-hover); }
.teknik-page .ts-btn-call { background: var(--ts-blue); }
.teknik-page .ts-btn-call:hover { background: var(--ts-blue-hover); }
.teknik-page .ts-btn-route { background: var(--ts-gray-btn); }
.teknik-page .ts-btn-route:hover { background: var(--ts-gray-btn-hover); }

/* ---------- Ortak bölüm başlığı ---------- */
.ts-section-title {
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  color: var(--ts-blue);
  text-align: center;
  margin: 0 0 30px;
}

/* ---------- Section 2: Neden PT Servis + Servis süreci ---------- */
.teknik-page .section-2.ts-section {
  margin: 100px 0 0;
}

.ts-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.ts-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 10px;
  border-left: 1px solid #D9D9D9;
}

.ts-stat:first-child {
  border-left: 0;
}

.ts-stat strong {
  font-size: 40px;
  line-height: 50px;
  font-weight: 700;
  color: var(--ts-text);
}

.ts-stat > span,
.teknik-page .ts-stat > a {
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
  color: var(--ts-text);
}

.ts-stat-star {
  font-size: 34px;
}

.ts-stats-note {
  max-width: 600px;
  margin: 46px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  color: var(--ts-text);
}

.ts-steps-title {
  margin-top: 80px;
}

.teknik-page .ts-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.teknik-page .ts-step {
  margin: 0;
  padding: 26px 26px 30px;
  background: var(--ts-bg);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
}

.ts-step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--ts-blue);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
  border-radius: var(--ts-radius-btn);
}

.ts-step h3 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--ts-text);
  margin: 0 0 6px;
}

.ts-step p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 300;
  color: var(--ts-text);
  margin: 0;
}

.ts-before-link {
  margin: 40px 0 0;
  text-align: center;
  font-size: 28px;
  line-height: 36px;
  font-weight: 300;
  color: var(--ts-text);
}

.ts-before-link a {
  font-weight: 700;
  color: var(--ts-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Section 5: Adres + harita ---------- */
.teknik-page .section-5.ts-contact {
  padding: 0;
  margin: 100px 0 100px;
  scroll-margin-top: 120px;
}

.ts-contact-inner {
  display: grid;
  grid-template-columns: 424px 1fr;
  gap: 81px;
  align-items: stretch;
}

.ts-contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ts-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ts-contact-item > img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.ts-contact-item h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ts-text);
  margin: 0;
}

.ts-contact-item p,
.ts-hours {
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
  color: var(--ts-text);
  margin: 0;
}

.ts-contact-item a {
  color: inherit;
  text-decoration: none;
}

.ts-hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 16px;
}

.teknik-page .ts-hours dt {
  font-weight: 300;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.ts-hours dt::after {
  content: ' :';
}

.ts-hours dd {
  margin: 0;
}

.ts-contact .ts-actions {
  margin-top: 6px;
}

.teknik-page .ts-contact .ts-btn {
  font-size: 16px;
}

.ts-map {
  min-height: 460px;
  background: var(--ts-bg);
  border-radius: var(--ts-radius);
  overflow: hidden;
}

.ts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

/* ---------- Diğer sekmelerde sol kutu (form + görsel) ---------- */
/* Kutu yeni tasarımda ~680px; eski 485px'e göre ayarlı form üstte kalıp altta boşluk bırakıyordu.
   Form ve görsel dikeyde ortalanır; görseller 230x253 olduğundan büyütülmez. */
.teknik-page .form-layout {
  align-items: stretch;
}

.teknik-page .form-content {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 40px 24px 40px 48px;
}

.teknik-page .form-image {
  flex: 0 0 36%;
  padding: 40px 40px 40px 16px;
}

.teknik-page .service-image {
  width: auto;
  max-width: 100%;
  max-height: 300px;
}

.teknik-page .service-image-6 {
  width: 100%;
  max-height: none;
  border-radius: var(--ts-radius);
}

.teknik-page .form-content .form-back-button {
  align-self: flex-start;
}

.teknik-page .form-content .btn,
.teknik-page .form-content .form-control,
.teknik-page .form-content select {
  border-radius: var(--ts-radius-btn);
}

/* Servis İletişim Bilgileri paneli (sol kutu) — JS inline display:block verdiği için gap değil margin */
.ts-contact-panel .ts-contact-item + .ts-contact-item {
  margin-top: 16px;
}

.ts-contact-panel .ts-contact-item > img {
  width: 32px;
  height: 32px;
}

.ts-contact-panel .ts-contact-item h3 {
  font-size: 15px;
  line-height: 20px;
}

.ts-contact-panel .ts-contact-item p,
.ts-contact-panel .ts-hours {
  font-size: 15px;
  line-height: 20px;
}

.ts-contact-panel .ts-actions {
  margin-top: 24px;
}

.teknik-page .ts-contact-panel .ts-btn {
  height: 44px;
  font-size: 15px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .teknik-page .service-options {
    flex-basis: 340px;
  }

  .teknik-page .service-title {
    font-size: 16px;
  }

  .ts-promo {
    padding: 40px 30px;
  }

  .ts-hero-media {
    flex-basis: 40%;
  }

  .ts-contact-inner {
    grid-template-columns: 380px 1fr;
    gap: 40px;
  }
}

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  /* Mücahit Bey 1: mobilde üst bantta yalnız başlık — CTA'lar ilk ekranda görünsün */
  .ts-hero {
    padding: 20px 0 0;
    background: transparent;
  }

  .ts-hero-text p,
  .ts-hero-rating,
  .ts-hero-media {
    display: none !important;
  }

  .ts-hero-title {
    margin: 0;
  }

  /* Sol kutu mobilde içerik kadar; sağ kartlar esnemesin */
  .teknik-page .service-card {
    flex: none;
  }

  .teknik-page .form-content {
    padding: 20px 16px;
  }

  .teknik-page .form-image {
    padding: 20px 16px 0;
    min-height: 0;
  }

  .teknik-page .service-image {
    max-height: 200px;
  }

  .teknik-page .service-image-6 {
    max-height: none;
    width: 100%;
  }
  .ts-hero-inner {
    flex-direction: column;
    gap: 24px;
  }

  .ts-hero-text,
  .ts-hero-media {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .ts-hero-media {
    max-width: 464px;
    margin: 0 auto;
  }

  .ts-hero-title {
    font-size: 24px;
    line-height: 32px;
  }

  .ts-hero-text p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 16px;
  }

  .ts-hero-rating {
    font-size: 16px;
  }

  .teknik-page .section-1 {
    margin-top: 16px;
  }

  .teknik-page .sec1LeftBox,
  .teknik-page .service-options {
    flex: none;
  }

  .teknik-page .sec1LeftBox {
    height: auto;
    min-height: 0;
    margin-bottom: 10px;
  }

  .ts-promo {
    padding: 30px 16px;
  }

  .ts-promo-title {
    font-size: 22px;
    line-height: 30px;
  }

  .ts-promo-desc,
  .ts-promo-phone {
    font-size: 16px;
    line-height: 22px;
  }

  .ts-promo-phone a {
    font-size: 20px;
  }

  .ts-promo-note {
    font-size: 14px;
    line-height: 20px;
  }

  .teknik-page .ts-btn {
    font-size: 15px;
    height: 48px;
    padding: 0 8px;
    gap: 6px;
    white-space: nowrap;
  }

  .teknik-page .ts-actions-row .ts-btn svg {
    width: 16px;
    height: 16px;
  }

  .teknik-page .service-card,
  .teknik-page .service-icon {
    min-height: 66px;
  }

  .teknik-page .service-icon {
    width: 80px;
  }

  .teknik-page .service-title {
    font-size: 16px;
  }

  .ts-section-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .teknik-page .section-2.ts-section {
    margin-top: 60px;
  }

  .ts-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .ts-stat:nth-child(3) {
    border-left: 0;
  }

  .ts-stat strong {
    font-size: 30px;
    line-height: 38px;
  }

  .ts-stat > span,
  .teknik-page .ts-stat > a {
    font-size: 14px;
  }

  .ts-stats-note {
    margin-top: 30px;
  }

  .ts-steps-title {
    margin-top: 60px;
  }

  .teknik-page .ts-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ts-step h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .ts-before-link {
    font-size: 20px;
    line-height: 28px;
  }

  .teknik-page .section-5.ts-contact {
    margin: 60px 0;
  }

  .ts-contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ts-contact-info {
    gap: 22px;
  }

  .ts-map,
  .ts-map iframe {
    min-height: 320px;
  }
}

/* ---------- Mobil yapışkan CTA (Mücahit Bey 2) ---------- */
.ts-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .ts-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }

  .teknik-page .ts-sticky-cta .ts-btn {
    height: 46px;
    font-size: 15px;
  }

  /* Çubuk sayfa sonunu (footer) örtmesin */
  body:has(.ts-sticky-cta) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}
