/* ===========================================================
   Fiyat Hesaplama Sayfası stilleri
   =========================================================== */

.calc-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }

/* ---- Sol: form kartı ---- */
.calc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.calc-card .ch { padding: 26px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.calc-card .ch .ci { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg,var(--orange-2),var(--orange-dark)); color: #fff; display: grid; place-items: center; }
.calc-card .ch h2 { color: var(--navy); font-size: 21px; font-weight: 800; }
.calc-card .ch p { color: var(--muted); font-size: 13.5px; }
.calc-body { padding: 30px; }

/* segmented control: nakliye türü */
.calc-step-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 12px; display: block; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.seg button {
  border: 1.5px solid var(--line); background: #fbfcfe; border-radius: var(--radius-sm);
  padding: 16px 12px; cursor: pointer; font-family: var(--font); text-align: center;
  transition: .2s; color: var(--navy);
}
.seg button .si { color: var(--orange); margin-bottom: 6px; display: grid; place-items: center; }
.seg button b { display: block; font-size: 14.5px; }
.seg button small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.seg button:hover { border-color: var(--orange); }
.seg button.active { border-color: var(--orange); background: rgba(244,123,32,.08); box-shadow: 0 0 0 3px rgba(244,123,32,.12); }
.seg button.active b { color: var(--orange-dark); }

/* type chips (evden eve / ofis / yük) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chips button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 50px; padding: 10px 18px;
  cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--navy); transition: .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.chips button:hover { border-color: var(--orange); }
.chips button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-grid .full { grid-column: 1 / -1; }
.cfield { margin-bottom: 4px; }
.cfield label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; color: var(--navy); margin-bottom: 7px; }
.cfield label .hint { color: var(--muted); font-weight: 500; font-size: 12px; }
.cfield select, .cfield input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--ink); background: #fbfcfe; transition: .2s;
}
.cfield select:focus, .cfield input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(244,123,32,.12); }
.hidden { display: none !important; }

/* toggle switches */
.toggles { display: grid; gap: 12px; margin: 22px 0 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe; cursor: pointer; transition: .2s; }
.toggle:hover { border-color: var(--orange); }
.toggle .tl { display: flex; align-items: center; gap: 12px; }
.toggle .tl .tic { width: 38px; height: 38px; border-radius: 10px; background: rgba(244,123,32,.12); color: var(--orange); display: grid; place-items: center; }
.toggle .tl b { display: block; font-size: 14.5px; color: var(--navy); }
.toggle .tl small { color: var(--muted); font-size: 12px; }
.switch { width: 46px; height: 26px; border-radius: 50px; background: #cdd6e3; position: relative; flex-shrink: 0; transition: .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input { display: none; }
.toggle input:checked + .switch { background: var(--orange); }
.toggle input:checked + .switch::after { transform: translateX(20px); }

/* ---- Sağ: özet / sonuç ---- */
.result-card { position: sticky; top: calc(var(--header-h) + 18px); background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.result-head { padding: 26px 28px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.result-head span { color: #9fb1ca; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.price { font-size: 14px; color: #c7d3e5; margin-top: 14px; }
.price .amount { font-size: clamp(34px, 6vw, 46px); font-weight: 800; color: #fff; line-height: 1; display: block; }
.price .amount small { font-size: 20px; color: var(--orange); font-weight: 700; }
.price-range { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; color: #ffd2ad; font-weight: 700; font-size: 16px; }
.result-body { padding: 22px 28px 26px; }
.sum-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 14px; }
.sum-row span { color: #b9c6db; }
.sum-row b { color: #fff; font-weight: 600; text-align: right; }
.sum-row.total { border-bottom: 0; padding-top: 16px; font-size: 16px; }
.sum-row.total b { color: var(--orange); font-size: 20px; }
.result-actions { padding: 0 28px 28px; display: grid; gap: 11px; }
.result-note { padding: 16px 28px; background: rgba(244,123,32,.12); color: #ffd2ad; font-size: 12.5px; line-height: 1.5; display: flex; gap: 10px; }
.result-empty { padding: 30px 28px; color: #9fb1ca; font-size: 14.5px; text-align: center; }
.result-empty .em-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; margin: 0 auto 16px; color: var(--orange); }

/* bilgi notu altında */
.calc-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.calc-info .ii { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.calc-info .ii .iic { width: 46px; height: 46px; border-radius: 12px; background: rgba(15,44,82,.08); color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.calc-info .ii h4 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.calc-info .ii p { color: var(--muted); font-size: 13.5px; }

@media (max-width: 980px) {
  .calc-layout { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .calc-info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .calc-body, .result-body, .result-head { padding-left: 20px; padding-right: 20px; }
}
