/* =========================================================
   Teklif formu — 3 adımlı, sonuç odaklı
   ========================================================= */
.quote-sec { position: relative; z-index: 2; margin-top: clamp(-40px, -3vw, -28px); padding-bottom: clamp(96px, 11vw, 140px); }
.quote { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); align-items: start; }

/* ---------- Form kartı ---------- */
.qform {
  position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: calc(var(--radius) + 6px); background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -36px rgba(0,0,0,.35);
}
.qsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qsteps li { display: flex; align-items: center; gap: 10px; font: 600 .84rem var(--font-head); color: var(--grey); transition: color .3s ease; }
.qsteps b {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #f1efe9; color: var(--grey-2); font: 700 .8rem var(--font-head); transition: background .3s ease, color .3s ease;
}
.qsteps li.is-active { color: var(--ink); }
.qsteps li.is-active b { background: var(--ink); color: #fff; }
.qsteps li.is-done b { background: var(--yellow); color: var(--ink); font-size: 0; }
.qsteps li.is-done b::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.qbar { height: 3px; margin: 18px 0 clamp(24px, 3vw, 34px); border-radius: 3px; background: #f1efe9; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 33.4%; border-radius: 3px; background: var(--yellow); transition: width .6s var(--ease); }

.qpanel { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.qpanel.is-active { display: grid; gap: 18px; animation: q-in .45s ease; }
@keyframes q-in { from { opacity: 0; transform: translateX(12px); } }

.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span, .qlabel { font: 600 .76rem var(--font-head); letter-spacing: .03em; color: var(--grey-2); }
.field em, .qlabel em { font-style: normal; color: var(--yellow-d); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; outline: none; resize: vertical;
  background: #f4f3ef; font: 500 .95rem var(--font-body); color: var(--ink); appearance: none;
  transition: background .25s ease, box-shadow .25s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; cursor: pointer; }
.field input:focus, .field textarea:focus, .field select:focus { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--yellow); }
.field.is-error input, .field.is-error textarea { background: #fff; box-shadow: inset 0 0 0 1.5px #d9534f; }
.qgroup { display: grid; gap: 10px; }
.qgroup.is-error .opt__box { box-shadow: inset 0 0 0 1.5px #d9534f; }
.qhint { font-size: .82rem; color: var(--grey); }

/* seçim kartları */
.opts { display: grid; gap: 10px; }
.opts--4 { grid-template-columns: repeat(4, 1fr); }
.opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  display: grid; justify-items: center; gap: 4px; height: 100%; padding: 16px 10px 14px; border-radius: 16px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s ease, background .25s ease;
}
.opt__box svg { width: 44px; height: 44px; margin-bottom: 4px; }
.o-floor { fill: #f4f2ec; }
.o-wall { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.o-open { fill: none; stroke: var(--yellow-d); stroke-width: 2; stroke-dasharray: 3 3; }
.opt__box b { font: 600 .92rem var(--font-title); }
.opt__box small { font-size: .76rem; color: var(--grey); line-height: 1.45; }
.opt--text .opt__box { justify-items: start; text-align: left; padding: 18px; gap: 6px; }
.opt--text .opt__box b { font-size: 1.05rem; }
.opt:hover .opt__box { box-shadow: inset 0 0 0 1px #cfccc4; }
.opt input:checked + .opt__box { background: #fffaea; box-shadow: inset 0 0 0 2px var(--yellow); }
.opt input:checked + .opt__box .o-floor { fill: #ffe9a3; }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--yellow-d); outline-offset: 2px; }

/* kroki yükleme */
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px; border-radius: 18px; cursor: pointer; text-align: center;
  background: #faf9f5; border: 1.5px dashed #d8d4ca; transition: border-color .25s ease, background .25s ease;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--yellow-d); background: #fffaea; }
.drop__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.2); margin-bottom: 4px; }
.drop b { font: 600 .92rem var(--font-body); }
.drop u { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.drop small { font-size: .78rem; color: var(--grey); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: #f4f3ef; font-size: .86rem; }
.files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files li small { color: var(--grey); }
.files li.is-bad { background: #fdecea; color: #a1342b; }
.files button { all: unset; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--grey-2); }
.files button:hover { background: #fff; color: var(--ink); }

/* ihtiyaç çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; font: 600 .82rem var(--font-head); color: var(--grey-2); box-shadow: inset 0 0 0 1px var(--line); transition: all .25s ease; }
.chips label:hover span { color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--yellow-d); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .84rem; color: var(--grey-2); line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.consent.is-error span { color: #c0392b; }

/* adım gezintisi */
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(26px, 3vw, 36px); padding-top: 22px; border-top: 1px solid var(--line); }
.qback { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 12px 6px; font: 600 .9rem var(--font-body); color: var(--grey-2); }
.qback:hover { color: var(--ink); }
.qback[hidden] { display: none; }
.qcount { margin-right: auto; font: 500 .8rem var(--font-head); color: var(--grey); }
.qback:not([hidden]) + .qcount { margin-left: 8px; }
#qNext { padding: 15px 28px; }

/* gönderildi */
.qdone { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: 12px; padding: clamp(24px, 4vw, 48px); border-radius: inherit; background: #fff; text-align: center; animation: q-in .5s ease; overflow: auto; }
.qdone[hidden] { display: none; }
.qdone__check { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.qdone h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 6px; }
.qdone > p { max-width: 42ch; color: var(--grey-2); }
.qsum { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 10px 0 14px; padding: 18px 22px; border-radius: 16px; background: #f7f6f2; text-align: left; font-size: .88rem; }
.qsum dt { color: var(--grey); font-weight: 500; }
.qsum dd { margin: 0; font-weight: 600; }

/* ---------- Yan sütun ---------- */
.qside { display: grid; gap: 14px; position: sticky; top: 96px; padding-top: clamp(40px, 5vw, 64px); }
.qcard { padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -24px rgba(0,0,0,.3); text-decoration: none; color: var(--ink); }
.qcard--dark { background: #111113; color: #fff; }
.qcard--dark h2 { font-size: 1.3rem; color: #fff; }
.qlist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.qlist li { position: relative; padding-left: 30px; }
.qlist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.4' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.qlist b { display: block; font: 600 .95rem var(--font-title); }
.qlist span { font-size: .84rem; color: rgba(255,255,255,.6); }
.qcard__kicker { display: block; margin-bottom: 14px; font: 600 .7rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.qlogos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qlogos img, .qlogos__more { width: 100%; height: auto; min-width: 0; aspect-ratio: 1; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); mix-blend-mode: multiply; }
.qlogos__more { display: grid; place-items: center; font: 600 .95rem var(--font-title); color: var(--ink); text-decoration: none; mix-blend-mode: normal; transition: background .25s ease; }
.qlogos__more:hover { background: var(--yellow); box-shadow: none; }
.qcall { display: flex; align-items: center; gap: 14px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.qcall:hover { transform: translateY(-2px); }
.qcall__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); }
.qcall small { display: block; font: 600 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.qcall b { font: 600 1.05rem var(--font-title); }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .quote { grid-template-columns: 1fr; }
  .qside { position: static; padding-top: 0; grid-template-columns: 1fr 1fr; }
  .qside .qcard--dark { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .quote-sec { margin-top: -24px; }
  .qsteps span { display: none; }
  .qsteps li { justify-content: center; }
  .qsteps li.is-active span { display: inline; }
  .qrow { grid-template-columns: 1fr; }
  .opts--4 { grid-template-columns: 1fr 1fr; }
  .opts--3 { grid-template-columns: 1fr; }
  .qside { grid-template-columns: 1fr; }
  .qcount { display: none; }
  #qNext { margin-left: auto; }
}
