/* JFS Clinic — #contact multi-step consultation form.
   Tokens: bg #2D2545, panel #3F3460, gold #D0A448, light gold #F1D995,
   text lavender #D9D4E7, gold button gradient (112deg B8883A→F4DD99 38%→E6C469 63%→A8782F).
   Fonts: 'Cormorant Garamond' (headings), 'Manrope' (body). Desktop-first ~1440px,
   stacks under 900px. All rules prefixed .jf- to avoid collisions with the rest of the page. */

.jf-contact [hidden] {
  display: none !important;
}

.jf-contact {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 100px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  background: linear-gradient(120deg, #604E91 0%, #7F69B5 50%, #2F6FD6 100%);
}

.jf-ring {
  position: absolute;
  left: -200px;
  bottom: -300px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 2px solid rgba(208, 164, 72, 0.4);
  pointer-events: none;
}

.jf-wrap {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

/* ---------- Left column ---------- */

.jf-intro {
  position: relative;
  width: 560px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 12px;
}

.jf-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F1D995;
}

.jf-eyebrow-line { width: 56px; height: 2px; background: #D0A448; display: block; }

.jf-h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  color: #F3EFE8;
}

.jf-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #DBD8E1;
}

.jf-wa-link {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 30px;
  border: 2px solid #E6C469;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #F3EFE8;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.jf-wa-link:hover { background: rgba(37, 211, 102, 0.12); transform: translateY(-1px); }

/* ---------- Card ---------- */

.jf-card {
  position: relative;
  width: 600px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 40px 44px 32px;
  background: rgba(45, 37, 69, 0.85);
  backdrop-filter: blur(6px);
  border: 2px solid #D0A448;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* progress rail */

.jf-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.jf-progress-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
}

.jf-progress-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(208, 164, 72, 0.28);
  z-index: 0;
}

.jf-progress-item:first-child::before { display: none; }

.jf-progress-item.is-done::before { background: #D0A448; }

.jf-progress-dot {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(208, 164, 72, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #D9D4E7;
  background: #3F3460;
  flex-shrink: 0;
}

.jf-progress-check { display: none; width: 15px; height: 15px; color: #100E0A; }

.jf-progress-item.is-active .jf-progress-dot {
  border-color: #D0A448;
  color: #100E0A;
  background: linear-gradient(112deg, #B8883A, #F4DD99 38%, #E6C469 63%, #A8782F);
}

.jf-progress-item.is-done .jf-progress-dot {
  border-color: #D0A448;
  background: linear-gradient(112deg, #B8883A, #F4DD99 38%, #E6C469 63%, #A8782F);
}

.jf-progress-item.is-done .jf-progress-num { display: none; }
.jf-progress-item.is-done .jf-progress-check { display: block; }

.jf-progress-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(217, 212, 231, 0.6);
  line-height: 1.4;
  max-width: 110px;
}

.jf-progress-item.is-active .jf-progress-text,
.jf-progress-item.is-done .jf-progress-text { color: #F1D995; }

/* form shell */

.jf-form { display: flex; flex-direction: column; gap: 26px; }

.jf-panel { display: flex; flex-direction: column; gap: 22px; animation: jf-fade .28s ease; }

@keyframes jf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.jf-step-heading {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: #F1D995;
  outline: none;
}

.jf-field { display: flex; flex-direction: column; gap: 12px; }

.jf-field-label,
.jf-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D9D4E7;
}

/* question head: label + "choose one" / "select all that apply" hint */

.jf-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

.jf-q-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #F3EFE8;
}

.jf-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(208, 164, 72, 0.14);
  font-size: 12.5px;
  font-weight: 600;
  color: #F1D995;
  line-height: 1.3;
}

.jf-hint::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 1.5px solid #F1D995;
  border-radius: 50%;
}

.jf-hint--many::before { border-radius: 2px; }

/* chips (real radios/checkboxes, keyboard accessible) */

.jf-chip-group { display: flex; flex-wrap: wrap; gap: 10px; }

.jf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.jf-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.jf-chip span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1.5px solid rgba(208, 164, 72, 0.5);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #D9D4E7;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
  line-height: 1;
}

.jf-chip:hover span { border-color: #D0A448; color: #F3EFE8; }

/* single vs multiple choice is visible on the chip itself:
   radio = round dot, checkbox = square tick box */
.jf-chip span::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 9px;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(208, 164, 72, 0.75);
  border-radius: 50%;
  background: transparent center / 10px no-repeat;
}

.jf-chip input[type="checkbox"] + span::before { border-radius: 3px; }

.jf-chip input[type="radio"]:checked + span::before {
  border-color: #100E0A;
  background: radial-gradient(circle, #100E0A 0 3.5px, transparent 4px);
}

.jf-chip input[type="checkbox"]:checked + span::before {
  border-color: #100E0A;
  background-color: #100E0A;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M4 10.5l4 4 8-9' stroke='%23F1D995' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.jf-chip input:checked + span {
  border-color: #D0A448;
  background: linear-gradient(112deg, #B8883A, #F4DD99 38%, #E6C469 63%, #A8782F);
  color: #100E0A;
}

.jf-chip input:focus-visible + span {
  outline: 2px solid #F1D995;
  outline-offset: 2px;
}

/* text inputs */

.jf-input {
  height: 52px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 14px;
  border: 2px solid rgba(208, 164, 72, 0.6);
  border-radius: 2px;
  background: #3F3460;
  color: #F3EFE8;
  font-size: 15px;
  font-family: 'Manrope', Arial, sans-serif;
}

.jf-input::placeholder { color: rgba(217, 212, 231, 0.55); }

.jf-input:focus {
  outline: none;
  border-color: #F1D995;
  box-shadow: 0 0 0 3px rgba(208, 164, 72, 0.22);
}

.jf-textarea { height: auto; min-height: 90px; padding-top: 14px; resize: vertical; font-family: inherit; }

.jf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M5 7.5l5 5 5-5' stroke='%23D0A448' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.jf-select option { background: #3F3460; color: #F3EFE8; }

.jf-phone-row { display: flex; gap: 10px; }

.jf-dial-code {
  flex: 0 0 44%;
  width: 44%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 30px;
  background-position: right 10px center;
  text-overflow: ellipsis;
  color: #F1D995;
  font-weight: 600;
}

.jf-phone-input { flex: 1; min-width: 0; }

.jf-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #F0A6A6;
}

.jf-required-note {
  margin: -6px 0 0;
  font-size: 12px;
  color: rgba(217, 212, 231, 0.65);
}

/* buttons */

.jf-nav { display: flex; align-items: center; gap: 14px; }

.jf-btn {
  height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Manrope', Arial, sans-serif;
  transition: transform .15s ease, opacity .15s ease;
}

.jf-btn:active { transform: translateY(1px); }

.jf-btn-primary {
  background: linear-gradient(112deg, #B8883A, #F4DD99 38%, #E6C469 63%, #A8782F);
  color: #100E0A;
  flex: 1;
}

.jf-btn-primary:hover { opacity: 0.92; }

.jf-btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

.jf-btn-ghost {
  background: transparent;
  border: 2px solid rgba(208, 164, 72, 0.6);
  color: #D9D4E7;
}

.jf-btn-ghost:hover { border-color: #D0A448; color: #F3EFE8; }

.jf-free-note { text-align: center; font-size: 12px; color: #D9D4E7; margin: 0; }

/* success step */

.jf-panel--success { align-items: flex-start; }

.jf-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(112deg, #B8883A, #F4DD99 38%, #E6C469 63%, #A8782F);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jf-success-text { margin: 0; font-size: 15px; line-height: 1.7; color: #DBD8E1; }

.jf-success-actions { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }
.jf-success-actions .jf-btn { flex: 1; min-width: 200px; }

/* shake feedback when a required step is blocked */

.jf-field.is-invalid .jf-chip-group,
.jf-field.is-invalid .jf-input { animation: jf-shake .3s ease; }

@keyframes jf-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.jf-field.is-invalid .jf-input { border-color: #E38686; }

/* ---------- Mid-page quick quote (tap-to-advance quiz) ---------- */

/* sits right after the patient videos (#videos, also dark #2D2545):
   a gold hairline + slightly lighter tone keeps the two apart */
.jq-band {
  padding-top: 88px;
  border-top: 1px solid rgba(208, 164, 72, 0.35);
  background: linear-gradient(135deg, #332A4D 0%, #3F3460 55%, #4D3F77 100%);
}

.jq-card { min-height: 460px; }

.jq-progress { display: flex; flex-direction: column; gap: 10px; }

.jq-progress-count {
  min-height: 1em;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #D9D4E7;
}

.jq-progress-track {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(208, 164, 72, 0.22);
  overflow: hidden;
}

.jq-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #B8883A, #F4DD99 55%, #E6C469);
  transition: width .35s ease;
}

.jq-card .jf-field { gap: 16px; }

.jq-card .jf-field-label:not(.jf-label) {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: #F1D995;
  outline: none;
}

.jq-card .jf-chip span { height: 50px; padding: 0 22px; font-size: 15px; }

.jq-card .jf-form.is-auto-step .jf-btn-ghost { flex: 0 0 auto; height: 46px; padding: 0 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 1300px) {
  .jf-wrap { gap: 48px; }
  .jf-intro { width: 460px; }
  .jf-card { width: 520px; }
}

@media (max-width: 900px) {
  .jf-contact { padding: 64px 24px; }
  .jf-wrap { flex-direction: column; gap: 40px; }
  .jf-intro,
  .jf-card { width: 100%; max-width: 560px; margin: 0 auto; }
  .jf-h2 { font-size: 44px; }
  .jf-card { padding: 32px 24px 26px; }
  .jf-progress-text { display: none; }
  .jf-progress-item { flex: 0 0 auto; }
  .jf-nav { flex-wrap: wrap; }
  .jq-card { min-height: 0; }
  .jq-band { padding-top: 56px; }
  .jq-card .jf-field-label:not(.jf-label) { font-size: 26px; }
}

@media (max-width: 480px) {
  .jf-success-actions .jf-btn { min-width: 100%; }
}

/* ---------- Konum kartı (haritasız, adressiz "Istanbul & Izmir" + WhatsApp koordinatör düğmesi; 2026-10-09) ----------
   Ana sayfa #contact: masaüstünde sol sütunda tanıtımın altında, 900px altında formun ALTINDA (DOM sırası).
   Destek sayfası (Hakkımızda) açık zeminde: .jk-konum--panel koyu kart. Harita resmi koyu (arastirma/harita_jfs.py). */
@media (min-width: 901px) {
  /* masaüstü: tanıtım | form üst satırda; konum ALTTA tam genişlik yatay şerit (harita solda, adres + düğmeler sağda).
     Sticky form denendi sayılmadı: form adım adım boy değiştirir, boşluk yalnız yer değiştirirdi (kullanıcı geri bildirimi 2026-10-07). */
  .jf-wrap--konum { display: grid; grid-template-columns: auto auto; justify-content: space-between; column-gap: 80px; row-gap: 48px; align-items: start; }
  .jf-wrap--konum > .jf-intro { grid-column: 1; grid-row: 1; }
  .jf-wrap--konum > .jf-card { grid-column: 2; grid-row: 1; justify-self: end; }
  .jf-wrap--konum > .jk-konum {
    grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 40px; padding: 28px 36px; border-radius: 22px; background: rgba(45, 37, 69, .85); border: 1px solid #D0A448;
  }
  .jf-wrap--konum > .jk-konum .jk-adres { font-size: 17px; }
  .jf-wrap--konum > .jk-konum .jk-adres b { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; line-height: 1.15; display: inline-block; margin-bottom: 6px; }
  .jf-wrap--konum > .jk-konum .jk-dugmeler { flex: 0 0 auto; grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  /* sabit 460 + 520px sütun 1100px'te taşıyordu (overflow:hidden kesiyordu) — esnek sütun + dar kenar */
  .jf-contact:has(.jf-wrap--konum) { padding-left: 48px; padding-right: 48px; }
  .jf-wrap--konum { column-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
  .jf-wrap--konum > .jf-intro, .jf-wrap--konum > .jf-card { width: auto; }
}
@media (max-width: 900px) {
  .jf-wrap--konum > .jk-konum { width: 100%; max-width: 560px; margin: 0 auto; }
}
.jk-konum { display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; font-family: 'Manrope', sans-serif; }
.jk-konum--panel { margin-top: 28px; padding: 16px; border-radius: 22px; background: #2D2545; box-shadow: 0 18px 40px -24px rgba(45, 37, 69, .55); }
.jk-harita { position: relative; display: block; overflow: hidden; border-radius: 16px; border: 1px solid rgba(208, 164, 72, .45); aspect-ratio: 1200 / 760; background: #2D2545; }
.jk-harita img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.jk-harita:hover img { transform: scale(1.035); }
.jk-harita:focus-visible { outline: 3px solid #F1D995; outline-offset: 2px; }
/* raptiye ucu tam koordinata (resmin ortası) basar: döndürülmüş damla, uç = merkezin 28px altı */
.jk-pin { position: absolute; left: calc(50% - 20px); top: calc(50% - 48px); width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #D0A448; color: #2D2545; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.jk-pin svg { transform: rotate(45deg); }
.jk-harita-cta { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: 999px; background: rgba(45, 37, 69, .92); border: 1px solid rgba(208, 164, 72, .55); color: #F1D995; font-size: 14px; font-weight: 600; transition: background-color .2s ease; }
.jk-harita:hover .jk-harita-cta { background: #3F3460; }
.jk-telif { align-self: flex-end; margin-top: -8px; font-size: 11px; color: #C0BBCF; text-decoration: none; }
.jk-telif:hover { text-decoration: underline; }
.jk-adres { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: #F3EFE8; font-size: 15px; line-height: 1.55; }
.jk-adres b { font-weight: 700; color: #F1D995; }
.jk-adres-ikon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(208, 164, 72, .16); color: #D0A448; }
.jk-adres-ikon svg { width: 18px; height: 18px; }
.jk-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* tek düğme iki sütunlu gridde yarım genişlikte kalıp metni kırıyordu (2026-10-09) */
.jk-dugmeler > .jk-dugme:only-child { grid-column: 1 / -1; }
.jk-dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; box-sizing: border-box;
  border-radius: 999px; font: 600 15px/1.2 'Manrope', sans-serif; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.jk-dugme:hover { transform: translateY(-1px); }
.jk-dugme--ana { background: linear-gradient(112deg, #B8883A 0%, #F4DD99 38%, #E6C469 63%, #A8782F 100%); color: #2D2545; border: 0; }
.jk-dugme--ince { background: transparent; color: #F3EFE8; border: 1px solid rgba(243, 239, 232, .35); }
.jk-dugme--ince:hover { border-color: #F1D995; }
.jk-konum [hidden] { display: none !important; }
/* sayfa link stili (.light a, .sec a: altın + alt çizgi) kartın bağlantılarını ezmesin */
.jk-konum a.jk-telif { color: #C0BBCF; text-decoration: none; }
.jk-konum a.jk-telif:hover { text-decoration: underline; }
.jk-konum a.jk-dugme, .jk-konum a.jk-harita { text-decoration: none; }
.jk-konum a.jk-dugme--ana { color: #2D2545; }
/* .light .okuma p (kategori.css, 0-3-1) ezmesin */
.jk-konum p.jk-adres { color: #F3EFE8 !important; text-align: left !important; hyphens: manual; max-width: none; margin: 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 420px) { .jk-dugmeler { grid-template-columns: 1fr; } }
