/* Teklif sayfası */

.quote { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; min-height: 100vh; }

/* Sol: görsel panel */
.q-aside {
  position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate;
  background: var(--espresso-2); color: var(--krem);
  display: flex; flex-direction: column; padding: 28px clamp(24px, 3.5vw, 48px) 32px;
}
.q-aside .reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,24,13,.82) 0%, rgba(42,24,13,.55) 40%, rgba(42,24,13,.94) 100%);
}
.q-brand img { height: 64px; width: auto; }
.q-back { margin-left: auto; font-size: 14px; color: rgba(247,239,230,.75); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.q-back:hover { color: var(--krem); }
.q-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.q-top { display: flex; align-items: center; gap: 16px; }
.q-hero { margin-top: auto; }
.q-hero h1 { font-size: clamp(36px, 4vw, 56px); margin: 14px 0 14px; }
.q-hero > p { color: rgba(247,239,230,.8); font-size: 17px; max-width: 440px; }

.q-summary {
  margin-top: 28px; padding: 20px; border-radius: 18px;
  background: rgba(247,239,230,.08); border: 1px solid rgba(247,239,230,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.q-summary h2 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,239,230,.6); margin-bottom: 12px; }
.q-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.q-summary dt { color: rgba(247,239,230,.6); }
.q-summary dd { margin: 0; font-weight: 600; color: var(--krem); }
.q-summary dd.empty { color: rgba(247,239,230,.35); font-weight: 400; }
.q-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.q-trust span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(247,239,230,.1); color: rgba(247,239,230,.85); }

/* Sağ: sihirbaz */
.q-main { background: var(--krem); display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 72px) 40px; }
.q-progress { display: flex; align-items: center; gap: 16px; }
.q-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--bej); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 25%; background: var(--terra); border-radius: inherit; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.q-count { font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.q-steps { margin-top: auto; margin-bottom: auto; padding: clamp(32px, 6vh, 64px) 0; width: 100%; max-width: 720px; }

.q-step { display: none; }
.q-step.active { display: block; animation: stepIn .45s cubic-bezier(.2,.8,.2,1); }
.q-step.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.q-step legend, .q-step .q-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; padding: 0; margin: 0 0 8px; }
.q-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-hint { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.q-sub { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin: 34px 0 14px; }

/* Seçim kartları */
.opts { display: grid; gap: 12px; }
.opts-5 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opts-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-card {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 20px; border-radius: 18px; background: var(--white);
  border: 2px solid var(--line);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.opt:hover .opt-card { border-color: #D7B8A4; transform: translateY(-2px); }
.opt input:focus-visible + .opt-card { outline: 3px solid var(--terra); outline-offset: 3px; }
.opt input:checked + .opt-card { border-color: var(--terra); background: #FCEFE8; box-shadow: 0 10px 28px -16px rgba(200,86,45,.6); }
.opt-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--krem); color: var(--terra-deep); transition: background-color .2s ease, color .2s ease; }
.opt-ico svg { width: 26px; height: 26px; }
.opt input:checked + .opt-card .opt-ico { background: var(--terra); color: #fff; }
.opt-name { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.15; }
.opt-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.opt-check {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white); display: grid; place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.opt-check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .2s ease; }
.opt input:checked + .opt-card .opt-check { background: var(--terra); border-color: var(--terra); }
.opt input:checked + .opt-card .opt-check svg { opacity: 1; transform: none; }
.opt input[type="radio"] + .opt-card .opt-check { border-radius: 50%; }

/* Hap seçimler */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--white);
  font-weight: 600; font-size: 15px; transition: all .2s ease;
}
.pill:hover span { border-color: #D7B8A4; }
.pill input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 3px; }
.pill input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--krem); }

/* Tüketim ölçeği */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .pill span { width: 100%; justify-content: center; flex-direction: column; gap: 0; min-height: 72px; border-radius: 16px; padding: 8px; text-align: center; }
.scale .pill span small { font-weight: 500; font-size: 12px; opacity: .7; }
.scale-bar { display: flex; gap: 3px; margin-bottom: 4px; align-items: end; height: 18px; }
.scale-bar b { width: 6px; border-radius: 2px; background: currentColor; opacity: .25; }
.scale-bar b.on { opacity: 1; }
@media (max-width: 560px) { .scale { grid-template-columns: repeat(2, 1fr); } .scale .pill:last-child { grid-column: span 2; } }

/* Form alanları */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt-tag { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--line); background: var(--white); border-radius: 14px;
  padding: 14px 16px; min-height: 54px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(200,86,45,.15); }
.field.invalid input { border-color: #B3261E; }
.field .err { font-size: 13px; color: #B3261E; min-height: 0; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--terra); flex: none; }
.consent.invalid { color: #B3261E; }

.q-error { margin-top: 16px; font-size: 14px; font-weight: 600; color: #B3261E; min-height: 20px; }

/* Navigasyon */
.q-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 36px; }
.q-nav .btn[hidden] { display: none; }
.q-link { border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; padding: 12px 4px; }
.q-link:hover { color: var(--ink); }
.q-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.q-kbd { font-size: 13px; color: var(--ink-soft); }
.q-kbd kbd { font-family: inherit; font-size: 12px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tamamlandı */
.q-done { text-align: left; }
.q-done-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--terra); display: grid; place-items: center; margin-bottom: 26px; animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
.q-done-mark svg { width: 40px; height: 40px; color: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s ease forwards .35s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.q-done h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.q-done p { color: var(--ink-soft); font-size: 17px; max-width: 560px; }
.q-done .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.q-recap { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); white-space: pre-line; font-size: 14px; color: var(--ink-soft); max-width: 560px; }

.q-foot { font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.q-foot a { color: inherit; }

@media (max-width: 960px) {
  .quote { grid-template-columns: 1fr; }
  .q-aside { position: relative; height: auto; min-height: 0; padding-bottom: 28px; }
  .q-hero { margin-top: 48px; }
  .q-summary { display: none; }
  .q-brand img { height: 52px; }
  .q-steps { margin: 0; padding-top: 28px; }
}
.q-nav[hidden] { display: none; }
.opts-5 { grid-template-columns: repeat(5, 1fr); }
.opts-5 .opt-card { padding: 18px 16px; }
@media (max-width: 1180px) { .opts-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .opts-5 { grid-template-columns: repeat(2, 1fr); } }
