/* ====================================================
   TEKLİF SAYFASI — ÖZEL CSS
   ==================================================== */
:root {
  --gold: #C9922A;
  --gold-light: #E5B96A;
  --gold-dark: #8B6114;
  --step-active: #C9922A;
  --easing: cubic-bezier(.22,.68,0,1.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f5f0;
  min-height: 100vh;
}

/* ---- SAYFA HERO ---- */
.teklif-hero {
  background: linear-gradient(135deg, #0c0c0c, #1a1208);
  padding: 110px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,146,42,.18);
}

.teklif-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 60%, rgba(201,146,42,.12), transparent 70%);
  pointer-events: none;
}

.teklif-hero-inner { position: relative; z-index: 1; }

.teklif-eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.teklif-hero h1 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.teklif-hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.teklif-hero p {
  color: rgba(255,255,255,.55);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.72;
}

/* ---- ADIM GÖSTERGESİ ---- */
.steps-bar {
  background: #fff;
  border-bottom: 1px solid rgba(201,146,42,.10);
  padding: 0;
  position: sticky;
  top: 84px;
  z-index: 100;
}

.steps-inner {
  display: flex;
  max-width: 860px;
  margin: 0 auto;
}

.step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  border-bottom: 3px solid transparent;
  color: #aaa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  user-select: none;
}

.step-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.step-tab.done {
  color: #22c55e;
  border-bottom-color: #22c55e;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee;
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  flex-shrink: 0;
}

.step-tab.active .step-num {
  background: var(--gold);
  color: #fff;
}

.step-tab.done .step-num {
  background: #22c55e;
  color: #fff;
}

.step-label { display: block; }

/* ---- FORM WRAPPER ---- */
.teklif-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

/* ---- FORM PANELLERİ ---- */
.form-panel {
  display: none;
  animation: panelIn .3s var(--easing) both;
}

.form-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- ADIM 1: SERİ SEÇİMİ ---- */
.seri-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.seri-card {
  background: #fff;
  border: 2px solid rgba(201,146,42,.12);
  border-radius: 22px;
  padding: 28px 22px;
  cursor: pointer;
  transition: all .28s var(--easing);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.seri-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.seri-card:hover {
  border-color: rgba(201,146,42,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(201,146,42,.12);
}

.seri-card:hover::before,
.seri-card.selected::before { transform: scaleX(1); }

.seri-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,146,42,.06), rgba(229,185,106,.03));
  box-shadow: 0 12px 36px rgba(201,146,42,.16);
}

.seri-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #f5f3ef;
  padding: 8px;
}

.seri-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.seri-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.55;
}

.seri-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all .22s var(--easing);
}

.seri-card.selected .seri-check {
  opacity: 1;
  transform: scale(1);
}

/* ---- ADIM 2: MODEL SEÇİMİ ---- */
.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 13.5px;
  color: #888;
  margin-bottom: 24px;
}

/* Renk filtre butonları */
.color-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.color-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #e5e5e5;
  background: #fff;
  color: #555;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}

.color-btn.active {
  border-color: var(--gold);
  background: rgba(201,146,42,.08);
  color: var(--gold-dark);
}

/* Model grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.model-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  transition: all .22s var(--easing);
  position: relative;
}

.model-card.hidden { display: none; }

.model-card:hover {
  border-color: rgba(201,146,42,.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201,146,42,.12);
}

.model-card.selected {
  border-color: var(--gold);
  background: rgba(201,146,42,.04);
  box-shadow: 0 8px 24px rgba(201,146,42,.18);
}

.model-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f6f3;
  padding: 6px;
  display: block;
}

.model-card-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}

.model-card-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 10.5px;
  color: #999;
}

.model-card .seri-check {
  width: 22px;
  height: 22px;
  font-size: 11px;
  top: 8px;
  right: 8px;
}

.model-card.selected .seri-check { opacity: 1; transform: scale(1); }

/* ---- ADIM 3: ÖLÇÜ & BİLGİ ---- */
.olcu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.olcu-diagram {
  background: #fff;
  border: 1px solid rgba(201,146,42,.12);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  position: sticky;
  top: 160px;
}

.olcu-diagram h3 {
  font-size: 14px;
  font-weight: 700;
  color: #555;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.door-svg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.olcu-hint {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

/* Seçilen model özeti */
.selected-model-preview {
  background: linear-gradient(135deg, rgba(201,146,42,.08), rgba(229,185,106,.04));
  border: 1px solid rgba(201,146,42,.18);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.selected-model-preview img {
  width: 48px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f3ef;
  flex-shrink: 0;
}

.selected-model-preview .model-info { flex: 1; min-width: 0; }

.selected-model-preview .model-info strong {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  display: block;
}

.selected-model-preview .model-info span {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
}

.change-link {
  font-size: 12px;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
}

.change-link:hover { color: var(--gold); }

/* Form alanları */
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  margin-top: 22px;
}

.form-section-title:first-child { margin-top: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #777;
  letter-spacing: .3px;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid rgba(201,146,42,.15);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #111;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.11);
}

.field input::placeholder,
.field textarea::placeholder { color: #bbb; }

.field select { appearance: none; cursor: pointer; }

.field textarea { resize: none; min-height: 80px; }

.field-full { grid-column: 1 / -1; }

/* Ölçü grup */
.olcu-group {
  background: #fff;
  border: 1px solid rgba(201,146,42,.10);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
}

.olcu-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.olcu-group-title i { font-size: 14px; }

/* Kapı sayısı */
.kapi-sayisi-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.counter-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(201,146,42,.25);
  background: #fff;
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

.counter-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
}

.counter-val {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  min-width: 32px;
  text-align: center;
}

/* Kapı satırları */
#kapi-rows { display: flex; flex-direction: column; gap: 10px; }

.kapi-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.kapi-row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: center;
}

.kapi-row input {
  padding: 10px 12px;
  border: 1.5px solid rgba(201,146,42,.15);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #111;
  outline: none;
  transition: all .2s;
}

.kapi-row input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.10);
}

.kapi-row-el {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- GÖNDERİM BUTONU ---- */
.wa-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #25D366, #1aaf57);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(37,211,102,.32);
  transition: all .3s var(--easing);
  margin-top: 20px;
  letter-spacing: .3px;
}

.wa-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(37,211,102,.45);
}

.wa-submit i { font-size: 20px; }

.wa-submit-hint {
  text-align: center;
  font-size: 11.5px;
  color: #bbb;
  margin-top: 10px;
}

/* ---- ÖZET KUTUSU ---- */
.teklif-ozet {
  background: #fff;
  border: 1px solid rgba(201,146,42,.12);
  border-radius: 18px;
  padding: 20px 18px;
  margin-top: 24px;
}

.teklif-ozet h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.ozet-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #f0ede8;
  color: #555;
}

.ozet-row:last-child { border-bottom: none; }
.ozet-row strong { color: #111; }

/* ---- NAVİGASYON BUTONLARI ---- */
.nav-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-back {
  flex: 1;
  padding: 14px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-back:hover { border-color: #bbb; background: #fafafa; }

.btn-next {
  flex: 2;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(201,146,42,.28);
  transition: all .3s var(--easing);
  letter-spacing: .3px;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201,146,42,.42);
}

.btn-next:disabled {
  opacity: .45;
  pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .olcu-layout { grid-template-columns: 1fr; }
  .olcu-diagram { display: none; }
}

@media (max-width: 600px) {
  .seri-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .steps-bar { top: 70px; }
  .kapi-row { grid-template-columns: 22px 1fr 1fr; }
  .kapi-row-el { display: none; }
  .step-label { display: none; }
  .step-tab { padding: 16px 8px; }
}