/*
 * Hizmet detay sayfası.
 * Teklif formunun stilleri artık ortak: css/sections/quote-form.css
 * (bileşen kendisi yükler, buraya eklenmez).
 */

/*
::::::::::::::::::::::::::
 BÖLGEYE ÖZEL METİN
 Ortak içerikten sonra gelen, o bölgeye özgü tek blok. Çevresindeki
 metinden görsel olarak ayrılması gerekiyor: aynı hizmetin her bölge
 sayfasında değişen kısım burası.
::::::::::::::::::::::::::
*/

.region-note {
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: 14px;
    background: rgba(21, 95, 255, 0.05);
    border-left: 3px solid #155fff;
  }

  .region-note h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #090b0e;
  }

  .region-note h2 i {
    font-size: 16px;
    color: #155fff;
  }

  .region-note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #3d4c5e;
    white-space: pre-line;
  }

  /*
  ::::::::::::::::::::::::::
   BÖLGE LİSTESİ (kenar çubuğu)
   İlçeler bağlı oldukları ilin altında durur; soldaki ince çizgi bu
   bağı gösterir, süs değildir.
  ::::::::::::::::::::::::::
  */

  .region-widget {
    padding: 26px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(9, 11, 14, 0.06);
    box-shadow: 0 18px 40px -28px rgba(9, 11, 14, 0.45);
  }

  .region-widget > h3 {
    margin: 0;
    font-size: 19px;
  }

  .region-widget-note {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #3d4c5e;
  }

  .region-search {
    position: relative;
    margin-top: 18px;
  }

  .region-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 13px;
    color: #3d4c5e;
    pointer-events: none;
  }

  .region-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 36px;
    font-size: 14px;
    color: #090b0e;
    border-radius: 10px;
    border: 1px solid rgba(9, 11, 14, 0.12);
    background: #fff;
    outline: 0;
    transition: border-color 0.2s ease;
  }

  .region-search input:focus {
    border-color: #155fff;
  }

  .region-groups {
    margin-top: 18px;
  }

  .region-group + .region-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(61, 76, 94, 0.1);
  }

  /* Arama sırasında ilk görünen grup — üstündeki gizli komşulardan kalan
     ayraç çizgisi kaldırılır (bkz. pages/services/show.js). */
  .region-group.is-first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .region-city {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #090b0e;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .region-city i {
    font-size: 13px;
    color: #155fff;
  }

  a.region-city:hover {
    background: rgba(21, 95, 255, 0.06);
    color: #155fff;
  }

  .region-city.is-plain {
    color: #3d4c5e;
    cursor: default;
  }

  .region-city.is-current {
    background: #155fff;
    color: #fff;
  }

  .region-city.is-current i {
    color: #fff;
  }

  .region-children {
    list-style: none;
    margin: 2px 0 6px;
    padding: 0 0 0 21px;
    border-left: 1px solid rgba(61, 76, 94, 0.16);
    margin-left: 21px;
  }

  .region-children a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #3d4c5e;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .region-children a:hover {
    background: rgba(21, 95, 255, 0.06);
    color: #155fff;
  }

  .region-children a.is-current {
    background: #155fff;
    color: #fff;
    font-weight: 500;
  }

  .region-empty {
    margin: 14px 0 0;
    font-size: 14px;
    color: #3d4c5e;
  }

  /*
  ::::::::::::::::::::::::::
   SIKÇA SORULAN SORULAR
   Temanın .research-faq akordeonu burada kullanılmaz: açık kartı koyu
   mavi zeminle boyayıp cevabı da beyaz bıraktığı için metin okunmuyordu.
   Açık/kapalı ayrımı zeminin tamamını boyayarak değil, soru satırını
   vurgulayarak yapılır; cevap her zaman koyu metin + açık zemindir.
  ::::::::::::::::::::::::::
  */

  .service-faq__head {
    max-width: 44em;
    margin: 0 auto 34px;
    text-align: center;
  }

  .service-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(21, 95, 255, 0.08);
    color: #155fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .service-faq__title {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 600;
    color: #090b0e;
  }

  .service-faq__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #3d4c5e;
  }

  .faq-card {
    border: 1px solid rgba(9, 11, 14, 0.08);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .faq-card + .faq-card {
    margin-top: 12px;
  }

  .faq-card__head {
    margin: 0;
  }

  .faq-card__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #090b0e;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
  }

  .faq-card__btn:hover {
    color: #155fff;
  }

  /* Bootstrap açık tetikleyiciden .collapsed sınıfını kaldırır; açık durumun
     tek kaynağı budur, ayrıca bir "active" sınıfı basılmaz. */
  .faq-card__btn:not(.collapsed) {
    color: #212529;
    background: rgba(21, 95, 255, 0.04);
  }

  .faq-card__btn:focus-visible {
    outline: 2px solid rgba(21, 95, 255, 0.45);
    outline-offset: -2px;
  }

  .faq-card:has(.faq-card__btn:not(.collapsed)) {
    border-color: rgba(21, 95, 255, 0.35);
    box-shadow: 0 20px 45px -32px rgba(21, 95, 255, 0.75);
  }

  .faq-card__icon {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(255 0 80 / 12%);
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .faq-card__icon::before,
  .faq-card__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #ff0050;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, background 0.25s ease;
  }

  .faq-card__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .faq-card__btn:not(.collapsed) .faq-card__icon {
    background: #ff0050;
    transform: rotate(180deg);
  }

  .faq-card__btn:not(.collapsed) .faq-card__icon::before,
  .faq-card__btn:not(.collapsed) .faq-card__icon::after {
    background: #fff;
  }

  /* Açıkken artı işareti eksiye döner. */
  .faq-card__btn:not(.collapsed) .faq-card__icon::after {
    opacity: 0;
  }

  /* Dolgu iç kutuda durur: yüksekliği animasyonlanan öğe .collapse'ın kendisi,
     oraya padding verilirse açılış zıplar. */
  .faq-card__answer {
    margin: 0 22px;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(9, 11, 14, 0.07);
    font-size: 16px;
    line-height: 1.8;
    color: #3d4c5e;
  }

  .service-faq__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(9, 11, 14, 0.08);
  }

  .service-faq__cta p {
    margin: 0;
    font-size: 16px;
    color: #3d4c5e;
  }

  /*
  ::::::::::::::::::::::::::
   TEKLİF FORMU (kenar çubuğu)
   Tema .sidebar-area'yı sticky + top:120px yapıyor. Form o yükseklikten
   uzun olduğu için altı (telefon, gönder) viewport dışına taşıyor —
   sticky öğe sayfayla kaymadığı için ziyaretçi forma ulaşamıyordu.
   Çözüm: başlığı kısalt, güven listesini gizle, form viewport'a sığsın;
   yine de taşarsa kendi içinde kaysın.
  ::::::::::::::::::::::::::
  */

  @media (min-width: 992px) {
    .blog-details-area .sidebar-area.service-quote-sidebar {
      top: calc(var(--site-bar-h, 0px) + 80px);
      max-height: calc(100dvh - var(--site-bar-h, 0px) - 96px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }
  }

  @media (max-width: 991px) {
    .blog-details-area .sidebar-area.service-quote-sidebar {
      position: static;
      top: auto;
      max-height: none;
    }
  }

  .service-quote-sidebar .quote-head {
    padding: 16px 18px 14px;
  }

  .service-quote-sidebar .quote-head h3 {
    margin: 10px 0 6px;
    font-size: 18px;
    line-height: 1.3;
  }

  .service-quote-sidebar .quote-head > p {
    font-size: 13px;
    line-height: 1.45;
  }

  .service-quote-sidebar .quote-trust {
    margin: 12px 0 0;
    padding: 12px 0 0;
    gap: 6px;
  }

  .service-quote-sidebar .quote-trust li {
    font-size: 12px;
    line-height: 1.3;
  }

  .service-quote-sidebar .quote-body {
    padding: 14px 18px 12px;
  }

  .service-quote-sidebar .quote-steps-viewport {
    margin-top: 14px;
  }

  .service-quote-sidebar .quote-field + .quote-field {
    margin-top: 10px;
  }

  .service-quote-sidebar .quote-widget .quote-input input,
  .service-quote-sidebar .quote-widget .quote-input select {
    height: 42px;
  }

  .service-quote-sidebar .quote-widget .quote-step-form textarea {
    min-height: 64px;
    height: 64px;
  }

  .service-quote-sidebar .quote-nav {
    margin-top: 12px;
  }

  .service-quote-sidebar .quote-nav .ui-btn {
    height: 44px;
  }

  .service-quote-sidebar .quote-nav .ui-btn--icon {
    flex-basis: 44px;
    width: 44px;
  }

  .service-quote-sidebar .quote-privacy {
    margin-top: 10px;
  }

  .service-quote-sidebar .quote-call {
    padding: 12px 18px;
  }

  @media (max-width: 575px) {
    .service-faq__title {
      font-size: 26px;
    }

    .faq-card__btn {
      gap: 12px;
      padding: 16px;
      font-size: 16px;
    }

    .faq-card__answer {
      margin: 0 16px;
      padding-bottom: 18px;
      font-size: 15px;
    }
  }
