/*
 * Bana Uygun Bakım (/bana-uygun-bakim/) — soru akışı, plan ekranı ve randevu formu.
 * BEM: .bp (blok). Tema renkleri: zemin #faf9f1, metin #283944, koyu #142231, vurgu #a68465, açık #f5f1e5, kenar #dbd3c2.
 * Masaüstü öncelikli; dar ekran uyarlamaları min-width sorgularının tersine, geniş ekranda sütunlar açılır.
 */

.bp {
  --bp-bg: #faf9f1;
  --bp-surface: #ffffff;
  --bp-soft: #f5f1e5;
  --bp-text: #283944;
  --bp-dark: #142231;
  --bp-accent: #a68465;
  --bp-accent-dark: #8a6b4f;
  --bp-border: #dbd3c2;
  --bp-muted: #6b6560;
  --bp-ok: #4f7a63;
  --bp-warn: #991a2d;
  --bp-radius: 18px;
  color: var(--bp-text);
  font-family: Poppins, sans-serif;
}

/* Temanın satır içi CSS'i .uk-container padding'ini sıfırlıyor; iki sınıfla öne geçen kendi oluğumuz */
.uk-container.bp {
  padding-left: 16px;
  padding-right: 16px;
}

.bp a {
  color: var(--bp-accent-dark);
}

/* Yalnız ekran okuyucuya görünen etiket (temada uk-hidden-visually yok) */
.bp__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Giriş --- */
.bp__hero {
  display: grid;
  gap: 24px;
  padding: 8px 0 32px;
}

.bp__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-accent);
}

.bp__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  color: var(--bp-dark);
}

.bp__lead {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 60ch;
}

.bp__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--bp-muted);
}

.bp__trust li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--bp-accent);
  vertical-align: middle;
}

/* --- Giriş görseli (günlük landing'ler; .bp__hero--media). Mobilde test kartının altında, formu aşağı itmez;
   geniş ekranda sol kolonda metnin altında, kart sağda iki satırı kaplar. --- */
.bp__media {
  position: relative;
  margin: 0;
  border-radius: var(--bp-radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bp-soft);
}

.bp__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp__media-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
}

.bp .bp__media-caption a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bp-dark);
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20, 34, 49, 0.12);
}

.bp .bp__media-caption a:hover {
  background: var(--bp-surface);
  color: var(--bp-accent-dark);
}

/* --- Sol altta "Teste dön" (JS ile body'ye eklenir, .bp dışında: renkler sabit). WhatsApp düğmesiyle aynı ölçü
   (alttan/yandan 15px, 38px), ayrışsın diye koyu lacivert. --- */
.bp__float {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #142231;
  color: #ffffff;
  font: 500 15px/1 Poppins, sans-serif;
  box-shadow: 0 8px 22px rgba(20, 34, 49, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.bp__float--visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.bp__float:hover,
.bp__float:focus-visible {
  background: #283944;
}

.bp__float:focus-visible {
  outline: 2px solid #a68465;
  outline-offset: 2px;
}

/* --- Uygulama kartı --- */
.bp__app {
  position: relative;
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  box-shadow: 0 18px 50px rgba(20, 34, 49, 0.08);
  padding: 28px 22px;
  scroll-margin-top: 120px;
}

/* "Teste dön" odağı karta taşır (tabindex=-1); programatik odakta çerçeve yok */
.bp__app:focus {
  outline: none;
}

.bp__screen[hidden] {
  display: none;
}

.bp__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--bp-muted);
}

.bp__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bp-soft);
  overflow: hidden;
}

.bp__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bp-accent);
  transition: width 0.3s ease;
}

.bp__q-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--bp-dark);
}

.bp__q-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--bp-muted);
}

.bp__options {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.bp__option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--bp-border);
  border-radius: 14px;
  background: var(--bp-bg);
  color: var(--bp-text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.bp__option:hover {
  border-color: var(--bp-accent);
}

.bp__option:focus-visible {
  outline: 3px solid rgba(166, 132, 101, 0.4);
  outline-offset: 2px;
}

.bp__option[aria-pressed="true"],
.bp__option[aria-checked="true"] {
  border-color: var(--bp-accent);
  background: var(--bp-soft);
  box-shadow: inset 0 0 0 1px var(--bp-accent);
}

.bp__option-mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--bp-border);
  border-radius: 50%;
  background: #fff;
  position: relative;
}

.bp__option[aria-pressed="true"] .bp__option-mark,
.bp__option[aria-checked="true"] .bp__option-mark {
  border-color: var(--bp-accent);
  background: var(--bp-accent);
}

.bp__option[aria-pressed="true"] .bp__option-mark::after,
.bp__option[aria-checked="true"] .bp__option-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bp__option-label {
  font-weight: 500;
  color: var(--bp-dark);
}

.bp__option-hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--bp-muted);
}

.bp__textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1.5px solid var(--bp-border);
  border-radius: 14px;
  background: var(--bp-bg);
  font: inherit;
  font-size: 15px;
  color: var(--bp-text);
  resize: vertical;
  box-sizing: border-box;
}

.bp__textarea:focus {
  outline: none;
  border-color: var(--bp-accent);
}

.bp__counter {
  margin: 6px 0 0;
  font-size: 12px;
  text-align: right;
  color: var(--bp-muted);
}

.bp__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.bp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--bp-accent);
  background: var(--bp-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.bp__btn:hover {
  background: var(--bp-accent-dark);
  border-color: var(--bp-accent-dark);
  color: #fff;
  text-decoration: none;
}

.bp__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bp__btn--ghost {
  background: transparent;
  color: var(--bp-text);
  border-color: var(--bp-border);
}

.bp__btn--ghost:hover {
  background: var(--bp-soft);
  color: var(--bp-dark);
  border-color: var(--bp-border);
}

.bp__btn--wa {
  background: #25d366;
  border-color: #25d366;
}

/* .bp a rengi (bronz) yeşil zeminde okunmuyordu; koyu yeşil metin (kontrast ≥ 7:1) */
.bp a.bp__btn--wa {
  color: #062b14;
}

.bp__btn--wa:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
}

.bp__error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbeeee;
  color: var(--bp-warn);
  font-size: 14px;
}

.bp__error[hidden] {
  display: none;
}

/* --- Hazırlanıyor --- */
.bp__loading {
  text-align: center;
  padding: 24px 0;
}

.bp__spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 3px solid var(--bp-soft);
  border-top-color: var(--bp-accent);
  border-radius: 50%;
  animation: bp-spin 0.9s linear infinite;
}

@keyframes bp-spin {
  to {
    transform: rotate(360deg);
  }
}

.bp__loading-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--bp-muted);
  display: grid;
  gap: 6px;
}

/* --- Plan --- */
.bp__result-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bp-border);
}

.bp__headline {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--bp-dark);
}

.bp__narrative {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.bp__steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: bp-step;
}

.bp__step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--bp-border);
  border-radius: 14px;
  background: var(--bp-bg);
}

.bp__step--primary {
  background: var(--bp-soft);
  border-color: var(--bp-accent);
}

.bp__step-no {
  counter-increment: bp-step;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.bp__step-no::before {
  content: counter(bp-step);
}

.bp__step-role {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-accent-dark);
}

.bp__step-name {
  margin: 0;
  font-size: 18px;
  color: var(--bp-dark);
}

.bp__step-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--bp-border);
}

.bp__step-name a:hover {
  border-bottom-color: var(--bp-accent);
}

.bp__step-summary {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.bp__step-period {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--bp-muted);
}

.bp__avoided {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7ef;
  border: 1px solid #efd9c2;
  font-size: 14px;
  line-height: 1.55;
}

.bp__avoided[hidden] {
  display: none;
}

.bp__tips {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bp-soft);
}

.bp__tips h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--bp-dark);
}

.bp__tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.bp__disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bp-muted);
}

/* --- Randevu --- */
.bp__lead {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--bp-border);
}

.bp__lead h3 {
  margin: 0;
  font-size: 20px;
  color: var(--bp-dark);
}

.bp__lead p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--bp-muted);
}

.bp__form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bp__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-dark);
}

.bp__field input,
.bp__field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--bp-border);
  border-radius: 12px;
  background: var(--bp-bg);
  font: inherit;
  font-size: 15px;
  color: var(--bp-text);
  box-sizing: border-box;
}

.bp__field input:focus,
.bp__field select:focus {
  outline: none;
  border-color: var(--bp-accent);
}

.bp__field--invalid input,
.bp__field--invalid select {
  border-color: var(--bp-warn);
}

.bp__field select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--bp-accent) 50%), linear-gradient(135deg, var(--bp-accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.bp__hours {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--bp-muted);
}

.bp__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bp-muted);
}

.bp__consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--bp-accent);
}

.bp__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Form gönderiminden ayrı ikincil seçenekler: WhatsApp ve testi tekrarlama */
.bp__actions--alt {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--bp-border);
}

.bp__done {
  text-align: center;
  padding: 10px 0;
}

.bp__done h3 {
  margin: 0;
  font-size: 22px;
  color: var(--bp-dark);
}

.bp__done p {
  margin: 10px auto 0;
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.6;
}

.bp__done .bp__actions {
  justify-content: center;
  margin-top: 20px;
}

/* --- Statik bölümler (taranabilir içerik) --- */
.bp__section {
  margin-top: 56px;
}

.bp__section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--bp-dark);
}

.bp__how {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp__how li {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
}

.bp__how strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bp-dark);
}

.bp__how p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.bp__groups {
  display: grid;
  gap: 18px;
}

.bp__group h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--bp-dark);
}

.bp__group ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.bp__faq details {
  padding: 14px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp__faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--bp-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bp__faq summary::-webkit-details-marker {
  display: none;
}

.bp__faq summary::after {
  content: "+";
  color: var(--bp-accent);
  font-size: 20px;
  line-height: 1;
}

.bp__faq details[open] summary::after {
  content: "–";
}

.bp__faq p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.bp__note {
  margin-top: 36px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bp-muted);
}

/* --- Günlük landing'ler: test sonucu ve uzun metin bölümleri --- */
.bp__type {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bp-border);
}

.bp__type-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp__type-name {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.2;
  color: var(--bp-dark);
}

.bp__type-second {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--bp-accent-dark);
}

.bp__steps-title {
  margin: 22px 0 0;
  font-size: 16px;
  color: var(--bp-dark);
}

.bp__prose p,
.bp__prose li {
  font-size: 15px;
  line-height: 1.7;
}

.bp__prose ul {
  padding-left: 18px;
}

.bp__types {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bp-border);
}

.bp__types li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bp-border);
}

.bp__types strong {
  color: var(--bp-dark);
}

.bp__types p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .bp__types li {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
}

/* --- Geniş ekran --- */
@media (min-width: 768px) {
  .bp__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp__options--single {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .bp__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp__form .bp__consent,
  .bp__form .bp__hours,
  .bp__form .bp__actions,
  .bp__form .bp__error {
    grid-column: 1 / -1;
  }

  .bp__how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bp__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .uk-container.bp {
    padding-left: 24px;
    padding-right: 24px;
  }

  .bp__hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 48px;
    padding: 16px 0 40px;
  }

  .bp__title {
    font-size: 40px;
  }

  .bp__hero--media {
    grid-template-areas: "intro app" "media app";
    row-gap: 32px;
  }

  .bp__hero--media .bp__intro {
    grid-area: intro;
  }

  .bp__hero--media .bp__app {
    grid-area: app;
  }

  .bp__hero--media .bp__media {
    grid-area: media;
    aspect-ratio: 2 / 1;
  }

  .bp__hero--media .bp__media img {
    object-position: 40% 55%;
  }

  .bp__app {
    padding: 36px 34px;
  }

  .bp__groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp__spinner {
    animation: none;
  }

  .bp__float {
    transition: none;
  }

  .bp__bar-fill {
    transition: none;
  }
}
