/* Pasemski svetovalec — čist, mobile-first, toplo-oranžen */
:root {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #292524;
  --muted: #78716c;
  --border: #f5e6d8;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(41, 37, 36, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--accent-dark); text-decoration: none; }
.logo:hover { color: var(--accent); }
.logo-sub { font-size: 0.85rem; color: var(--muted); }

main { flex: 1; padding-top: 32px; padding-bottom: 48px; }

/* Koraki */
.step { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.7rem; line-height: 1.25; margin-bottom: 10px; }
h2 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 12px; }
.lead { color: var(--muted); margin-bottom: 24px; }

/* Izbira živali */
.animal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.animal-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.animal-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.animal-emoji { font-size: 3rem; }
.animal-name { font-weight: 700; font-size: 1.15rem; }
.animal-desc { color: var(--muted); font-size: 0.85rem; }

/* Progress */
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.progress-track { flex: 1; height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.25s ease; }
.progress-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; min-width: 34px; text-align: right; }

/* Vprašanja */
.quiz-answers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.answer-btn {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  padding: 15px 18px; font-size: 1.02rem; text-align: left; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.answer-btn:hover { border-color: var(--accent); }
.answer-btn.selected { border-color: var(--accent); background: #fff1e6; font-weight: 600; }

/* Gumbi */
.btn {
  border: none; border-radius: 12px; padding: 12px 20px; font-size: 1rem; cursor: pointer;
  font-weight: 600; transition: background 0.15s, transform 0.1s; font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); }
.btn-big { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 6px; }
#quiz-back { margin-top: 4px; }

/* Rezultat — slike v naravnem razmerju, placeholder dinamičen (= velikost slike) */
.result-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.result-emoji { font-size: 3rem; line-height: 1; }
.result-desc { color: var(--muted); }
/* Glavna slika: naravna velikost, max 600, centrirana, brez okvirja širšega od slike */
.result-img {
  display: block; width: auto; height: auto; max-width: 600px; margin: 12px auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); background: var(--card);
}
#result-top { text-align: center; }
#result-top .result-heading { text-align: left; justify-content: center; }
/* Alternative: slike 50% glavne (max 300), naravno razmerje, centrirane; tekst levo */
.alt-item img.alt-img {
  display: block; width: auto; height: auto; max-width: 300px; margin: 0 auto 8px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer;
}
.alt-item { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; text-align: left; }
.alt-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.alt-more { color: var(--accent); font-size: 0.8rem; font-weight: 600; margin-top: 4px; display: block; }
.result-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
  text-align: left;
}
.result-row { font-size: 0.98rem; }
.alts-title { font-weight: 700; margin-bottom: 10px; }
.alt-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.alt-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.alt-item .alt-title-row { display: flex; align-items: center; gap: 8px; }
.alt-item .alt-name { font-weight: 700; }
.alt-desc { color: var(--muted); font-size: 0.88rem; }
/* Dolg opis (Opis_dolgi, t_82af6530): izvleček na karticah + poln tekst v modalu */
.alt-desc-long { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 4px; display: block; }
.result-desc-long { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-top: 8px; }
.modal-dolgi { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); text-align: left; }
.modal-dolgi h3 { font-size: 1.02rem; margin: 0 0 8px; }
.modal-dolgi-body p { margin: 0 0 10px; line-height: 1.6; font-size: 0.92rem; color: var(--text); }
.modal-dolgi-body p:last-child { margin-bottom: 0; }

/* Gumb Začni znova — zunaj okvirčka, jasno viden */
.restart-wrap { text-align: center; margin: 24px 0 8px; }
.btn-restart { padding: 14px 40px; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #fff1e6, #ffe4cc); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-top: 8px; text-align: center;
}
.cta-text { font-size: 1.05rem; margin-bottom: 6px; }
.cta-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

/* Modal za podrobnosti alternative */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(41, 37, 36, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
  background: var(--bg); border-radius: var(--radius); max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 24px; position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-img { max-width: 100%; margin: 12px auto; }

/* Lead forma */
.lead-badge {
  display: inline-block; background: var(--card); border: 1px solid var(--border);
  border-radius: 99px; padding: 8px 18px; font-weight: 700; margin-bottom: 18px;
}
#lead-form { display: flex; flex-direction: column; gap: 4px; }
#lead-form label { font-weight: 600; font-size: 0.92rem; margin-top: 10px; }
#lead-form input[type="text"], #lead-form input[type="email"], #lead-form input[type="tel"] {
  border: 2px solid var(--border); border-radius: 12px; padding: 13px 15px; font-size: 1rem;
  font-family: inherit; background: var(--card); outline: none; transition: border-color 0.12s;
}
#lead-form input:focus { border-color: var(--accent); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 0.88rem !important; color: var(--muted); margin-top: 14px !important; cursor: pointer; }
.checkbox-label input { margin-top: 3px; accent-color: var(--accent); }
.form-error { color: var(--err); font-weight: 600; margin-top: 12px; font-size: 0.92rem; }
#honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Hvala */
.thanks-box { text-align: center; padding-top: 30px; }
.thanks-emoji { font-size: 3.5rem; display: block; margin-bottom: 12px; }
.thanks-sub { color: var(--muted); margin-top: 10px; margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 16px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
