/* ==========================================================================
   Teklif & Randevu sihirbazı
   ========================================================================== */
.wz-page { padding: calc(var(--nav-h) + 36px) 0 80px; min-height: 100svh; }
.wz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.wz-layout.solo { grid-template-columns: minmax(0, 880px); justify-content: center; }
.wz-card { position: relative; border-radius: var(--radius-lg); background: rgba(10, 17, 32, 0.72); border: 1px solid var(--border-2); backdrop-filter: blur(16px); box-shadow: var(--shadow); overflow: hidden; }
.wz-top { padding: 22px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wz-top .count { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.wz-top .count b { color: var(--aqua); }
.wz-skip { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-2); transition: all 0.3s; }
.wz-skip:hover { color: var(--text); border-color: var(--aqua); }
.wz-skip svg { width: 15px; height: 15px; }
.wz-progress { height: 3px; background: rgba(255, 255, 255, 0.06); }
.wz-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.6s var(--ease); box-shadow: 0 0 20px rgba(62, 230, 213, 0.6); }
.wz-steps { display: flex; gap: 6px; padding: 14px 28px 0; overflow-x: auto; scrollbar-width: none; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-steps button { flex: none; font-size: 12.5px; color: var(--muted-2); padding: 6px 12px; border-radius: 999px; transition: all 0.3s; display: inline-flex; gap: 6px; align-items: center; }
.wz-steps button.done { color: var(--muted); }
.wz-steps button.done::before { content: "✓"; color: var(--aqua); font-weight: 700; }
.wz-steps button.cur { color: var(--text); background: var(--surface-2); }
.wz-steps button:disabled { cursor: default; }

.wz-body { padding: 32px 28px 28px; min-height: 420px; }
.wz-step { animation: stepIn 0.55s var(--ease); }
.wz-step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.wz-step h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.wz-step .sub { color: var(--muted); margin-bottom: 28px; }
.wz-label { display: block; font-weight: 600; font-size: 14.5px; margin: 26px 0 12px; }
.wz-label small { color: var(--muted-2); font-weight: 500; margin-left: 6px; }

/* Option cards */
.opt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .opt-grid.cols-3, .opt-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .opt-grid.cols-2 { grid-template-columns: 1fr; } .opt-grid { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; display: flex; flex-direction: column; gap: 6px; min-height: 64px;
}
.opt:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.opt:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.opt .oi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 6px; transition: all 0.3s; }
.opt .oi svg { width: 20px; height: 20px; }
.opt strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.opt span.d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.opt .price-tag { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.opt .price-tag.free { color: var(--success); }
.opt .tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; transition: all 0.25s; }
.opt .tick svg { width: 13px; height: 13px; opacity: 0; color: #03121a; }
.opt.has-price .tick { top: auto; bottom: 12px; }
.opt.sel { border-color: var(--aqua); background: rgba(62, 230, 213, 0.07); box-shadow: 0 0 0 1px var(--aqua) inset, 0 12px 30px -16px rgba(62, 230, 213, 0.6); }
.opt.sel .oi { background: var(--grad); color: #03121a; }
.opt.sel .tick { background: var(--aqua); border-color: var(--aqua); }
.opt.sel .tick svg { opacity: 1; }
.opt.locked { opacity: 0.75; cursor: default; }
.opt.row { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 16px; }
.opt.row .oi { margin: 0; flex: none; }
.opt.row > div { flex: 1; min-width: 0; padding-right: 26px; }
.opt.row .tick { top: 50%; transform: translateY(-50%); }
.opt.row.has-price > div { padding-right: 0; }
.opt.row.has-price .price-tag, .opt.row.has-price .tick { position: static; transform: none; flex: none; }
.opt.big { padding: 26px; min-height: 0; }
.opt.big .oi { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 10px; }
.opt.big .oi svg { width: 26px; height: 26px; }
.opt.big strong { font-family: var(--font-display); font-size: 20px; }

/* Style preview */
.style-prev { height: 78px; border-radius: 10px; margin-bottom: 8px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.style-prev i { position: absolute; border-radius: 4px; }

/* Chips (pages) */
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: 14px; font-weight: 500; transition: all 0.25s; }
.pg-chip svg { width: 15px; height: 15px; }
.pg-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.pg-chip.sel { background: rgba(62, 230, 213, 0.1); border-color: var(--aqua); color: var(--aqua); }
.pg-chip.locked { cursor: default; opacity: 0.8; }
.pg-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-top: 22px; }
.pg-total .num { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.pg-total .num small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; font-size: 20px; transition: background 0.2s; }
.stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: #c5cfe6; }
.field label .req { color: var(--aqua); }
.inp { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-2); outline: none; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; font-size: 15px; }
textarea.inp { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238d99b8' stroke-width='2'><path d='m4 6 4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.inp option { background: #0b1428; }
.inp::placeholder { color: var(--muted-2); }
.inp:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(62, 230, 213, 0.12); background: rgba(255, 255, 255, 0.06); }
.inp.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12); }
.err-msg { font-size: 12.5px; color: var(--danger); display: none; }
.field.has-err .err-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; margin-top: 6px; }
.consent input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-2); flex: none; display: grid; place-items: center; cursor: pointer; transition: all 0.2s; margin: 0; }
.consent input:checked { background: var(--aqua); border-color: var(--aqua); }
.consent input:checked::after { content: "✓"; color: #03121a; font-weight: 800; font-size: 13px; }
.consent.err input { border-color: var(--danger); }
.consent a { color: var(--aqua); text-decoration: underline; }

/* Segmented */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); flex-wrap: wrap; gap: 2px; }
.seg button { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); font-weight: 500; transition: all 0.25s; }
.seg button.sel { background: var(--text); color: var(--bg); }

/* Footer nav */
.wz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); }
.wz-foot .right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.btn-text { font-size: 14px; color: var(--muted); padding: 10px 12px; border-radius: 10px; transition: color 0.2s; }
.btn-text:hover { color: var(--text); }
.wz-foot .btn-back svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .wz-foot { padding: 16px; } .wz-foot .btn { padding: 0 18px; } .wz-body { padding: 26px 18px; } .wz-top { padding: 18px; } .wz-steps { padding: 12px 18px 0; } }

/* Template banner */
.tpl-banner { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(62, 230, 213, 0.25); margin-bottom: 24px; }
.tpl-banner .thumb { width: 120px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-2); }
.tpl-banner .thumb .live-preview { aspect-ratio: 16/10; }
.tpl-banner strong { display: block; font-family: var(--font-display); }
.tpl-banner span { font-size: 13.5px; color: var(--muted); }
.tpl-banner button { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: underline; flex: none; }

/* Summary sidebar */
.wz-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.sum-card { border-radius: var(--radius-lg); background: rgba(10, 17, 32, 0.72); border: 1px solid var(--border-2); padding: 24px; backdrop-filter: blur(16px); }
.sum-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.sum-card h3 span { font-size: 12px; font-family: var(--font-body); color: var(--muted); font-weight: 500; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.sum-list li { display: flex; justify-content: space-between; gap: 14px; }
.sum-list li span:first-child { color: var(--muted); flex: none; }
.sum-list li span:last-child { text-align: right; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sum-list li.empty span:last-child { color: var(--muted-2); font-weight: 400; }
.estimate { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-2); }
.estimate .lbl { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.estimate .val { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 4px; transition: transform 0.3s var(--ease); }
.estimate .val.bump { transform: scale(1.06); }
.estimate .dur { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.estimate .dur svg { width: 16px; height: 16px; color: var(--aqua); }
.estimate .note { font-size: 12px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }
.help-card { border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); background: var(--surface); display: flex; gap: 14px; align-items: center; }
.help-card .av { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--grad); display: grid; place-items: center; color: #03121a; }
.help-card .av svg { width: 22px; height: 22px; }
.help-card strong { display: block; font-size: 14.5px; }
.help-card span { font-size: 13px; color: var(--muted); }
.help-card a { color: var(--aqua); font-weight: 600; }

.mob-bar { display: none; }
@media (max-width: 1020px) {
  .wz-layout { grid-template-columns: 1fr; }
  .wz-side { position: static; }
  .wz-side .sum-card.estimate-only { display: none; }
  .mob-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(4, 7, 15, 0.92); backdrop-filter: blur(16px); border-top: 1px solid var(--border-2); justify-content: space-between; align-items: center; gap: 12px; }
  .mob-bar .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
  .mob-bar .val { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
  body.has-mob-bar .fab-wa { bottom: 88px; }
  body.has-mob-bar { padding-bottom: 80px; }
}

/* Mode chooser */
.mode-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.mode-head h1 { margin: 18px 0 14px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { position: relative; text-align: left; padding: 34px; border-radius: var(--radius-lg); background: rgba(10, 17, 32, 0.72); border: 1px solid var(--border-2); transition: all 0.5s var(--ease); overflow: hidden; display: flex; flex-direction: column; }
.mode-card::after { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.mode-card:hover { transform: translateY(-6px); border-color: var(--aqua); box-shadow: 0 30px 80px -30px rgba(62, 230, 213, 0.5); }
.mode-card:hover::after { opacity: 1; }
.mode-card > * { position: relative; z-index: 1; }
.mode-card .time { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(62, 230, 213, 0.1); color: var(--aqua); }
.mode-card h3 { font-size: 26px; margin: 4px 0 10px; }
.mode-card p { color: var(--muted); margin-bottom: 22px; }
.mode-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.mode-card li { display: flex; gap: 10px; font-size: 14.5px; color: #c5cfe6; }
.mode-card li svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 3px; }
.mode-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--aqua); }
.mode-card .go svg { width: 18px; height: 18px; transition: transform 0.3s; }
.mode-card:hover .go svg { transform: translateX(6px); }
.mode-alt { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.mode-alt a { color: var(--aqua); font-weight: 600; }

/* Appointment picker */
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { flex: none; width: 76px; padding: 12px 0; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface); text-align: center; scroll-snap-align: start; transition: all 0.25s; }
.day small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.day b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.2; margin: 2px 0; }
.day span { font-size: 12px; color: var(--muted); }
.day:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.3); }
.day.sel { background: var(--grad); border-color: transparent; color: #03121a; box-shadow: var(--glow); }
.day.sel small, .day.sel span { color: rgba(3, 18, 26, 0.75); }
.day:disabled { opacity: 0.3; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.slot { padding: 12px 0; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: 14.5px; transition: all 0.2s; }
.slot:hover:not(:disabled) { border-color: var(--aqua); color: var(--aqua); }
.slot.sel { background: var(--aqua); color: #03121a; border-color: var(--aqua); }
.slot:disabled { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }
.slot-empty { color: var(--muted); font-size: 14px; padding: 18px; border-radius: 14px; border: 1px dashed var(--border-2); text-align: center; }
.appt-chosen { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(62, 230, 213, 0.07); border: 1px solid rgba(62, 230, 213, 0.3); margin-top: 22px; }
.appt-chosen svg { width: 22px; height: 22px; color: var(--aqua); flex: none; }
.calendly-frame { width: 100%; height: 680px; border: 0; border-radius: 16px; background: #fff; }

/* Review */
.review { display: grid; gap: 12px; }
.review-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); align-items: start; font-size: 14.5px; }
.review-row .k { color: var(--muted); }
.review-row .v { font-weight: 500; }
.review-row button { font-size: 13px; color: var(--aqua); font-weight: 600; }
@media (max-width: 560px) { .review-row { grid-template-columns: 1fr auto; } .review-row .v { grid-column: 1 / -1; grid-row: 2; } }

/* Success */
.success { text-align: center; padding: 30px 10px 10px; }
.success .big-check { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(62, 230, 213, 0.08), 0 0 0 24px rgba(62, 230, 213, 0.04), var(--glow); animation: pop 0.7s var(--ease); }
.success .big-check svg { width: 46px; height: 46px; color: #03121a; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.success p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.success .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; text-align: left; }
.next-steps div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.next-steps b { display: block; color: var(--text); font-family: var(--font-display); margin-bottom: 4px; }
.next-steps i { font-style: normal; color: var(--aqua); font-weight: 700; font-size: 12px; }
@media (max-width: 640px) { .next-steps { grid-template-columns: 1fr; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); color: #fde68a; font-size: 14px; text-align: left; margin-top: 22px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
