/* /teklif-al: step-by-step quote form. Mobile first; colours and buttons come from main.css. */

.teklif-page { min-height: 100dvh; background: var(--alt); }

.tk-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.tk-header .logo { height: 28px; }
.tk-header-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.tk-header-phone span { display: none; }
@media (min-width: 560px) { .tk-header-phone span { display: inline; } }

.tk-main { padding: 0 16px 32px; }
.tk-app { position: relative; max-width: 560px; margin: 0 auto; overflow-x: hidden; }

.tk-sr, .tk-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-hp { left: -9999px; }
.tk-noscript { padding: 24px 0; font-size: 16px; }

/* top bar: back · 3 / 4 · skip */
.tk-bar { display: grid; grid-template-columns: 48px 1fr 64px; align-items: center; min-height: 56px; }
.tk-back { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: -12px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.tk-back[hidden] { display: inline-flex; visibility: hidden; }
.tk-back:hover { background: rgba(20,22,27,.06); }
.tk-count { color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; font-feature-settings: "tnum" 1; }
.tk-skip { justify-self: end; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-skip:hover { color: var(--ink); }
.tk-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tk-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }

/* one question per screen */
.tk-form { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(24px, 6vh, 56px); }
.tk-title { font-size: clamp(26px, 6.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tk-title:focus, .tk-title:focus-visible { outline: none; } /* focused only so screen readers start at the question */
.tk-hint, .tk-lead { color: var(--muted); font-size: 16px; line-height: 1.55; }
.tk-lead { font-size: 18px; }

.tk-options { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tk-opt { position: relative; display: block; cursor: pointer; }
.tk-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tk-opt span { display: flex; align-items: center; min-height: 56px; padding: 14px 18px; border: 1.5px solid #cfccc5; border-radius: 14px; background: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; transition: border-color .15s, background .15s; }
.tk-options--multi .tk-opt span { padding-left: 52px; }
.tk-options--multi .tk-opt span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 1.5px solid #9a9ca3; border-radius: 6px; background: #fff; }
.tk-options--multi .tk-opt input:checked + span::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tk-opt:hover span { border-color: var(--ink); }
.tk-opt input:checked + span { border-color: var(--accent); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent); }
.tk-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tk-field [aria-invalid="true"] .tk-opt span, .tk-options[aria-invalid="true"] .tk-opt span { border-color: var(--accent); }

.tk-field { display: flex; flex-direction: column; gap: 8px; }
.tk-label { font-size: 15px; font-weight: 700; }
.tk-input { width: 100%; min-height: 56px; padding: 14px 16px; border: 1.5px solid #cfccc5; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 18px; }
textarea.tk-input { min-height: 132px; resize: vertical; line-height: 1.5; }
/* Dark focus ring: red is kept for errors only. */
.tk-input:focus, .tk-input:focus-visible { border-color: var(--ink); outline: 3px solid rgba(20,22,27,.18); outline-offset: 1px; }
.tk-input[aria-invalid="true"] { border-color: var(--accent); }
.tk-input::placeholder { color: #8a8e96; }
.tk-field-error, .tk-form-error { color: var(--accent-d); font-size: 14px; font-weight: 700; line-height: 1.4; }

.tk-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 0; font-size: 15px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.tk-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.tk-check a { color: var(--accent-d); font-weight: 700; }

/* one main button, right under the answer so the keyboard never hides it */
.tk-actions { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); scroll-margin-bottom: 16px; }
.tk-primary { min-height: 56px; font-size: 17px; letter-spacing: .01em; }
.tk-note { color: var(--muted); font-size: 13px; text-align: center; }
.tk-link { align-self: center; min-height: 48px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tk-link:hover { color: var(--ink); }
.tk-number { font-size: 18px; color: var(--muted); }
.tk-number strong { display: block; margin-top: 6px; color: var(--ink); font-size: clamp(34px, 9vw, 44px); font-weight: 900; letter-spacing: .02em; }

/* screen change: 200 ms horizontal slide (main.css switches animations off for reduced motion) */
.tk-in-next { animation: tkInNext .2s ease-out both; }
.tk-in-prev { animation: tkInPrev .2s ease-out both; }
@keyframes tkInNext { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes tkInPrev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tk-in-next, .tk-in-prev { animation: none; }
  .tk-progress span { transition: none; }
}

@media (min-width: 760px) {
  .tk-main { padding-top: 24px; }
  .tk-app { padding: 8px 40px 40px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
  .tk-form { padding-top: 40px; }
}

/* Closing screen links (send a photo with the request number): secondary to the one main button. */
.tk-secondary { min-height: 52px; background: #fff; }
