@charset "utf-8";

/* ═══════════════════════════════════════════════════════
   ODHAD-CENY-NEMOVITOSTI.CSS
   Extends style.css. Multi-step form + content sections
   for lead-magnet property valuation page.
   ═══════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   LOCAL TOKENS
   ───────────────────────────────────────────────────── */
:root {
  --od-green: #15803d;
  --od-green-soft: rgba(22,163,74,.08);
  --od-blue: #1d4ed8;
  --od-blue-soft: rgba(29,78,216,.06);
  --od-trans: .28s cubic-bezier(.4,0,.2,1);
}


/* ─────────────────────────────────────────────────────
   HERO — TOOL STYLE (no fullscreen, warm bg)
   ───────────────────────────────────────────────────── */
.od-hero {
  position: relative;
  padding: clamp(5.5rem,10vw,7rem) 0 clamp(3rem,5vw,4.5rem);
  background: var(--c-warm);
  overflow: hidden;
}
.od-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(212,96,44,.08), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(26,86,219,.04), transparent 50%);
  pointer-events: none;
}
.od-hero__inner {
  position: relative;
  z-index: 1;
}
.od-hero__bc {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-light);
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.od-hero__bc a {
  color: var(--c-light);
  text-decoration: none;
  transition: color .15s;
}
.od-hero__bc a:hover { color: var(--c-accent); }
.od-hero__bc .sep { opacity: .35; }

.od-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem,3.5vw,2.5rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--c-ink);
  margin: 0 0 .75rem;
  max-width: 760px;
}
.od-hero__lead {
  font-size: clamp(.92rem,1.1vw+.8rem,1.05rem);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 760px;
  margin: 0;
}


/* ─────────────────────────────────────────────────────
   QUICK ANSWER BOX
   ───────────────────────────────────────────────────── */
.od-quick {
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-card);
}
.od-quick__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.od-quick__ic {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.od-quick__head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
}
.od-quick p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 .6rem;
}
.od-quick p:last-child { margin-bottom: 0; }


/* ─────────────────────────────────────────────────────
   MULTI-STEP FORM
   ───────────────────────────────────────────────────── */
.od-form-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-line);
  box-shadow: 0 8px 48px rgba(12,18,37,.07), 0 0 0 1px rgba(12,18,37,.02);
  overflow: hidden;
}

/* Progress bar */
.od-progress {
  display: flex;
  padding: 1.75rem 2.75rem 0;
  gap: .65rem;
}
.od-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.od-progress__bar {
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: var(--c-line);
  transition: background .4s;
}
.od-progress__step.is-active .od-progress__bar,
.od-progress__step.is-done .od-progress__bar {
  background: var(--c-accent);
}
.od-progress__lbl {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-light);
  transition: color .3s;
}
.od-progress__step.is-active .od-progress__lbl { color: var(--c-accent); }
.od-progress__step.is-done .od-progress__lbl { color: var(--od-green); }

/* Form header */
.od-form__header {
  padding: 2.5rem 2.75rem .75rem;
}
.od-form__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 .4rem;
}
.od-form__sub {
  font-size: 15px;
  color: var(--c-muted);
  margin: 0;
}

/* Steps container */
.od-step {
  display: none;
  padding: 1.75rem 2.75rem 2.75rem;
  animation: odFadeIn .35s ease-out;
}
.od-step.is-active { display: block; }
@keyframes odFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Type picker (step 1) */
.od-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.od-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.25rem 1.25rem 2rem;
  border-radius: var(--r-lg);
  background: var(--c-cream);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  text-align: center;
}
.od-type-card:hover {
  border-color: rgba(212,96,44,.3);
  box-shadow: 0 4px 16px rgba(212,96,44,.08);
}
.od-type-card.is-selected {
  border-color: var(--c-accent);
  background: var(--c-accent-light);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.od-type-card__ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  transition: background .2s;
}
.od-type-card.is-selected .od-type-card__ic {
  background: var(--c-accent);
  color: #fff;
}
.od-type-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}
.od-type-card__desc {
  font-size: 13px;
  color: var(--c-light);
  line-height: 1.4;
}
.od-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Form fields */
.od-field {
  margin-bottom: 1.25rem;
}
.od-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: .35rem;
}
.od-field label .req { color: var(--c-accent); }
.od-field__hint {
  font-size: 13px;
  color: var(--c-light);
  margin-top: .2rem;
}
.od-field input[type="text"],
.od-field input[type="number"],
.od-field input[type="email"],
.od-field input[type="tel"],
.od-field select,
.od-field textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-cream);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.od-field input:focus,
.od-field select:focus,
.od-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
  background: var(--c-white);
}
.od-field textarea { resize: vertical; min-height: 80px; }
.od-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b6b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Row layout for side-by-side fields */
.od-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media(max-width:575.98px) { .od-row { grid-template-columns: 1fr; } }

/* Inline checkbox group */
.od-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.od-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: 50px;
  border: 1.5px solid var(--c-line);
  background: var(--c-cream);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.od-chip:hover {
  border-color: rgba(212,96,44,.3);
}
.od-chip.is-on {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 600;
}
.od-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Contact preference toggle */
.od-contact-toggle {
  display: flex;
  border-radius: var(--r);
  overflow: hidden;
  border: 1.5px solid var(--c-line);
  background: var(--c-cream);
}
.od-contact-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  margin: 0;
  transition: background .2s, color .2s;
  border-right: 1px solid var(--c-line);
}
.od-contact-toggle label:last-child { border-right: none; }
.od-contact-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.od-contact-toggle input:checked + span {
  /* handled via JS class on label */
}
.od-contact-toggle label.is-on {
  background: var(--c-accent);
  color: #fff;
}

/* GDPR checkbox */
.od-gdpr {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.25rem 0;
}
.od-gdpr input[type="checkbox"] {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--c-accent);
  cursor: pointer;
}
.od-gdpr span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}
.od-gdpr a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Navigation buttons */
.od-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line);
  margin-top: 2rem;
}
.od-btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.25rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-muted);
  background: transparent;
  border: 1.5px solid var(--c-line);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.od-btn-back:hover {
  border-color: var(--c-accent);
  color: var(--c-ink);
}
.od-btn-next {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-left: auto;
}
.od-btn-next:hover {
  background: #b84e1c;
  border-color: #b84e1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212,96,44,.25);
}
.od-btn-next:disabled {
  opacity: .45;
  pointer-events: none;
}
.od-btn-next svg { transition: transform .25s; }
.od-btn-next:hover svg { transform: rotate(45deg); }

/* Success state */
.od-success {
  display: none;
  text-align: center;
  padding: 4rem 2.75rem;
}
.od-success.is-active { display: block; }
.od-success__ic {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--od-green-soft);
  color: var(--od-green);
  margin: 0 auto 1.25rem;
}
.od-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 .5rem;
}
.od-success p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 440px;
  margin: 0 auto .6rem;
}

@media(max-width:575.98px) {
  .od-type-grid { grid-template-columns: 1fr; }
  .od-form__header,
  .od-step { padding-left: 1.25rem; padding-right: 1.25rem; }
  .od-progress { padding-left: 1.25rem; padding-right: 1.25rem; }
  .od-success { padding: 2.5rem 1.25rem; }
  .od-type-card { padding: 1.5rem 1rem; }
  .od-type-card__ic { width: 48px; height: 48px; border-radius: 12px; }
}
@media(min-width:576px) and (max-width:767.98px) {
  .od-form__header,
  .od-step { padding-left: 1.75rem; padding-right: 1.75rem; }
  .od-progress { padding-left: 1.75rem; padding-right: 1.75rem; }
  .od-type-card { padding: 1.75rem 1rem; }
}


/* ─────────────────────────────────────────────────────
   FACTOR TABLE
   ───────────────────────────────────────────────────── */
.od-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.od-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.od-table thead {
  background: var(--c-ink);
  color: #fff;
}
.od-table th {
  padding: 1rem 1.15rem;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.od-table td {
  padding: .9rem 1.15rem;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.od-table tbody tr:last-child td { border-bottom: none; }
.od-table tbody tr:hover { background: var(--c-accent-light); }
.od-table td:first-child {
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
}
.od-table .impact--high {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(212,96,44,.08);
  color: var(--c-accent);
}
.od-table .impact--mid {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(180,83,9,.08);
  color: #b45309;
}
.od-table .impact--low {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(107,114,128,.08);
  color: #6b7280;
}


/* ─────────────────────────────────────────────────────
   POSUDEK / DISCLAIMER BOX
   ───────────────────────────────────────────────────── */
.od-posudek {
  padding: 2.25rem 2rem 2rem;
  border-radius: var(--r-xl);
  background: var(--c-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.od-posudek::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,96,44,.16) 0%, transparent 65%);
  pointer-events: none;
}
.od-posudek__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.od-posudek__head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.od-posudek__ic {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: #fff;
}
.od-posudek p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0 0 .6rem;
  position: relative;
}
.od-posudek p:last-child { margin-bottom: 0; }
.od-posudek strong { color: #fff; }


/* ─────────────────────────────────────────────────────
   LINK ACCENT
   ───────────────────────────────────────────────────── */
.link-accent {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212,96,44,.3);
  transition: text-decoration-color .2s;
}
.link-accent:hover {
  color: var(--c-accent);
  text-decoration-color: var(--c-accent);
}


/* ─────────────────────────────────────────────────────
   CTA GHOST BUTTON
   ───────────────────────────────────────────────────── */
.btn-main--ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn-main--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  box-shadow: none;
}

.sec--sm { padding: clamp(2rem,3vw,3rem) 0; }
.disclaimer { padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--c-warm); border-left: 4px solid var(--c-line); font-size: 14px; line-height: 1.65; color: var(--c-light); }
.disclaimer p { margin: 0; }
.disclaimer a { color: var(--c-accent); }

/* ─────────────────────────────────────────────────────
   RESPONSIVE FORM POLISH
   ───────────────────────────────────────────────────── */
@media(max-width:767.98px) {
  .od-quick { padding: 1.5rem 1.25rem; }
  .od-posudek { padding: 1.75rem 1.25rem; }
  .od-form-wrap { border-radius: var(--r-lg); }
}


/* ─────────────────────────────────────────────────────
   FORM VALIDATION STATES
   ───────────────────────────────────────────────────── */
.od-field input.is-invalid,
.od-field select.is-invalid,
.od-field textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.od-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: .3rem;
  line-height: 1.4;
}
.od-gdpr.is-error {
  background: rgba(220,38,38,.04);
  border-radius: 8px;
  padding: .65rem;
  margin-left: -.65rem;
  margin-right: -.65rem;
}
.od-gdpr-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: .15rem;
  line-height: 1.4;
}
.od-submit-msg {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 1rem;
  min-height: 1.4em;
}
.od-submit-msg:empty { display: none; }
.od-submit-msg.is-error { color: #dc2626; }
.od-submit-msg.is-success { color: var(--od-green); }


/* ─────────────────────────────────────────────────────
   LIMITS LIST
   ───────────────────────────────────────────────────── */
.od-limits-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  gap: .2rem;
}
.od-limits-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(12,18,37,.08);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-muted);
}
.od-limits-list li:last-child { border-bottom: none; }
.od-limits-list strong {
  color: var(--c-ink);
  font-weight: 700;
}
.od-limits-list__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #b45309;
  margin-top: .45rem;
}
.od-posudek--sticky {
  margin-top: 2.5rem;
}
@media(min-width:992px) {
  .od-posudek--sticky {
    position: sticky;
    top: 108px;
  }
}
