:root{
  --bg:#f7f7f4;
  --surface:#ffffff;
  --surface-2:#f0f0eb;
  --text:#171717;
  --muted:#686868;
  --line:#deded6;
  --yellow:#f4b700;
  --yellow-dark:#cf9500;
  --black:#171717;
  --red:#d93333;
  --radius:22px;
  --shadow:0 14px 44px rgba(0,0,0,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
.site-header{
  max-width:1180px;
  margin:auto;
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.brand-mark{
  width:44px;height:44px;border-radius:14px;background:var(--yellow);
  display:grid;place-items:center;font-weight:900;font-size:24px;border:2px solid var(--black);
}
.brand strong{display:block;letter-spacing:.035em}
.brand small{display:block;color:var(--muted);margin-top:2px}
main{max-width:1180px;margin:auto;padding:0 24px 50px}
.hero{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:32px;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:minmax(280px,42%) 1fr;
  overflow:hidden;
  min-height:620px;
}
.mascot-wrap{
  display:flex;align-items:flex-end;justify-content:center;
  background:linear-gradient(145deg,#fff8dc 0%,#fff 60%);
  padding:30px 24px 0;
  min-width:0;
}
.mascot-wrap img{display:block;width:min(100%,500px);height:auto;object-fit:contain}
.chat-panel{padding:44px 44px 30px;display:flex;flex-direction:column;min-width:0}
.chat-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.chat-title h1,.section-heading h2,.info-card h2{margin:2px 0 0;line-height:1.1}
.chat-title h1{font-size:clamp(34px,5vw,58px)}
.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:800;color:var(--muted)}
.online-dot{width:12px;height:12px;background:#4cbb6a;border-radius:50%;margin-top:8px;box-shadow:0 0 0 5px #e6f6e9}
.chat-messages{
  min-height:280px;max-height:410px;overflow:auto;
  padding:12px 4px 18px;scrollbar-width:thin;
}
.bubble{padding:13px 15px;border-radius:18px;max-width:86%;margin:10px 0;white-space:pre-wrap}
.bubble.bot{background:var(--surface-2);border-bottom-left-radius:6px}
.bubble.user{background:var(--black);color:white;margin-left:auto;border-bottom-right-radius:6px}
.chat-input-row{display:flex;gap:10px;align-items:flex-end}
.chat-input-row textarea{
  width:100%;resize:none;min-height:48px;max-height:130px;
  border:1px solid var(--line);border-radius:16px;padding:13px 14px;background:#fff;
  outline:none;
}
.chat-input-row textarea:focus,input:focus,select:focus,textarea:focus{border-color:var(--yellow-dark);box-shadow:0 0 0 3px rgba(244,183,0,.16);outline:none}
.send-btn,.primary-btn,.secondary-btn,.ghost-btn,.text-btn{
  min-height:46px;border-radius:14px;padding:0 16px;border:1px solid transparent;cursor:pointer;font-weight:750;
}
.send-btn,.primary-btn{background:var(--yellow);border-color:#dca800;color:#111}
.send-btn:hover,.primary-btn:hover{background:#ffc51c}
.secondary-btn,.ghost-btn{background:var(--surface);border-color:var(--line);color:var(--text)}
.secondary-btn:hover,.ghost-btn:hover{background:var(--surface-2)}
.text-btn{background:transparent;color:var(--muted);padding-inline:10px}
.chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.demo-note{font-size:12px;color:var(--muted);margin:12px 0 0}
.form-section{margin-top:28px}
.section-heading{max-width:790px;margin:0 0 16px}
.section-heading h2{font-size:clamp(28px,4vw,42px)}
.section-heading p{color:var(--muted);margin:10px 0 0}
.form-card,.result-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label{display:flex;flex-direction:column;gap:7px;font-weight:650;font-size:14px}
input,select,textarea{
  width:100%;border:1px solid var(--line);background:white;color:var(--text);
  border-radius:13px;padding:12px 13px;min-height:46px;font-size:16px;font-weight:400;
}
textarea{resize:vertical}
.optional,small{font-weight:400;color:var(--muted)}
.segmented{display:flex;gap:7px;background:var(--surface-2);padding:6px;border-radius:15px;margin-bottom:18px;width:max-content;max-width:100%}
.segmented label{display:block}
.segmented input{position:absolute;opacity:0;pointer-events:none}
.segmented span{display:block;padding:10px 14px;border-radius:11px;cursor:pointer;font-size:14px}
.segmented input:checked + span{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.terrain-box{background:#fff9e5;border:1px solid #ead89a;border-radius:17px;padding:18px;margin:18px 0}
.terrain-box h3{margin:0 0 14px}
.form-card>label,.terrain-box>label{margin-top:16px}
.consent{flex-direction:row;align-items:flex-start;font-weight:400;margin-top:18px!important}
.consent input{width:20px;min-height:20px;margin-top:1px;flex:0 0 auto}
.form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.result-card{margin-top:14px;border-left:5px solid var(--yellow)}
.info-grid{
  display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:18px;margin-top:34px;
}
.info-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}
.info-card p{margin:10px 0}
.muted{color:var(--muted)}
.map-card{grid-column:span 1;padding:0;overflow:hidden}
.map-card .card-copy{padding:22px}
.map-card iframe{border:0;width:100%;height:280px;display:block}
.link-btn{display:inline-flex;align-items:center;text-decoration:none;margin-top:8px}
.video-placeholder{
  min-height:210px;border:1px dashed #c8c8bd;border-radius:16px;background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px;gap:7px;
}
.video-placeholder .play{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--yellow);font-size:20px;padding-left:3px}
.cases-list{display:grid;gap:10px;margin-bottom:16px}
.case-row{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:15px;
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
}
.case-row strong{font-size:18px}
.status{font-size:12px;font-weight:800;padding:5px 9px;border-radius:999px;background:#fff3c5}
.badge{background:var(--red);color:white;border-radius:999px;padding:2px 7px;font-size:11px;margin-left:5px}
.hidden{display:none!important}
footer{
  max-width:1180px;margin:0 auto;padding:20px 24px 36px;color:var(--muted);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);
}
.youtube-link{color:var(--text);text-decoration:none;font-weight:750}
.youtube-link:hover{text-decoration:underline}

@media(max-width:860px){
  .hero{grid-template-columns:1fr;min-height:auto}
  .mascot-wrap{max-height:410px;padding-top:20px}
  .mascot-wrap img{width:min(74%,340px)}
  .chat-panel{padding:28px 22px 24px}
  .info-grid{grid-template-columns:1fr 1fr}
  .map-card{grid-column:span 2}
}
@media(max-width:620px){
  .site-header{padding:14px 14px}
  .brand small{display:none}
  .brand-mark{width:40px;height:40px}
  main{padding:0 12px 34px}
  .hero{border-radius:22px}
  .mascot-wrap{max-height:330px}
  .mascot-wrap img{width:min(78%,280px)}
  .chat-panel{padding:22px 14px 18px}
  .chat-title h1{font-size:38px}
  .chat-messages{min-height:230px}
  .bubble{max-width:94%}
  .chat-input-row{flex-direction:column;align-items:stretch}
  .send-btn{width:100%}
  .chat-actions>*{flex:1 1 140px}
  .grid2{grid-template-columns:1fr}
  .form-card{padding:17px}
  .segmented{width:100%}
  .segmented label{flex:1;text-align:center}
  .segmented span{padding-inline:8px}
  .info-grid{grid-template-columns:1fr}
  .map-card{grid-column:auto}
  footer{padding-inline:14px}
}


/* V1.2 mobile refinement */
@media(max-width:620px){
  .mascot-wrap{
    max-height:285px;
    padding:8px 8px 0;
  }
  .mascot-wrap img{
    width:min(66%,235px);
  }

  .chat-panel{
    padding:16px 12px 16px;
  }

  .chat-title{
    margin-bottom:8px;
  }

  .chat-title h1{
    font-size:34px;
  }

  .chat-messages{
    min-height:175px;
    max-height:310px;
    padding:4px 0 12px;
  }

  .bubble{
    max-width:94%;
  }

  .chat-input-row{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .chat-input-row textarea{
    width:100%;
    min-height:58px;
    border-radius:17px;
  }

  .send-btn{
    width:100%;
    min-height:58px;
    font-size:18px;
  }

  .chat-actions{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
    margin-top:10px;
  }

  .chat-actions .secondary-btn,
  .chat-actions .primary-btn{
    width:100%;
    min-height:86px;
    padding:10px 6px;
    line-height:1.25;
    white-space:normal;
    font-size:15px;
  }

  #serviceBtn{
    background:var(--yellow);
    border-color:#dca800;
  }

  .demo-note{
    display:none!important;
  }

  .form-section{
    margin-top:18px;
  }

  .section-heading h2{
    font-size:30px;
  }

  .section-heading p{
    font-size:15px;
  }
}

@media(max-width:390px){
  .chat-actions{
    gap:6px;
  }
  .chat-actions .secondary-btn,
  .chat-actions .primary-btn{
    font-size:14px;
    min-height:82px;
  }
}


/* V1.3 privacy / AI transparency */
.ai-disclosure{
  margin-top:12px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fffdf4;
  color:var(--muted);
  font-size:12px;
}
.ai-disclosure strong{color:var(--text)}
.ai-disclosure a,.privacy-mini a,.footer-privacy{color:var(--text);font-weight:750}
.privacy-mini{margin:8px 0 0;font-size:13px}
.external-map{
  min-height:280px;
  display:grid;
  place-items:center;
  padding:22px;
  background:linear-gradient(135deg,#eeeeea,#f8f8f4);
}
.external-map-copy{
  max-width:360px;
  text-align:center;
}
.external-map-copy p{color:var(--muted);font-size:13px}
.map-card iframe{border:0;width:100%;height:280px;display:block}
footer{align-items:center}
.footer-privacy{text-decoration:none;margin-left:auto}
@media(max-width:620px){
  .ai-disclosure{font-size:11px}
  .footer-privacy{margin-left:0}
}

/* V2 backend */
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.form-error{margin-top:12px;color:#9f1d1d;font-weight:700}
.loading{opacity:.65;pointer-events:none}
.admin-link{font-size:12px;color:var(--muted);text-decoration:none}

.case-label-instruction{
  margin-top:14px;
  padding:14px 15px;
  border:2px solid #e5ad00;
  border-radius:14px;
  background:#fff8d8;
  color:#171717;
  line-height:1.45;
}
.case-label-instruction strong{
  font-weight:800;
}


/* V4.6 – istaknuta tipka Glas */
#voiceBtn{
  background:var(--yellow);
  border-color:#dca800;
  color:#111;
}
#voiceBtn:hover{
  background:#ffc51c;
}

/* V4.6 – radno vrijeme za mobitel */
.hours-label,
.hours-time-value{
  display:inline;
}
.hours-time-value{
  margin-left:.28em;
}
@media(max-width:620px){
  #hoursWeekdays,
  #hoursSaturday{
    line-height:1.08;
    margin-bottom:16px;
  }
  #hoursWeekdays .hours-label,
  #hoursWeekdays .hours-time-value,
  #hoursSaturday .hours-label,
  #hoursSaturday .hours-time-value{
    display:block;
  }
  #hoursWeekdays .hours-time-value,
  #hoursSaturday .hours-time-value{
    margin-left:0;
    margin-top:4px;
  }
}

/* V4.7 – u glavnom chatu žuti su samo Pošalji i Glas */
#serviceBtn{
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
}
#serviceBtn:hover{
  background:var(--surface-2);
}


/* V4.8 – urednije radno vrijeme i telefonski broj */
#hoursWeekdays,
#hoursSaturday{
  font-size:clamp(24px,2.2vw,30px);
  line-height:1.08;
  margin:0 0 14px;
}
#hoursWeekdays .hours-label,
#hoursWeekdays .hours-time-value,
#hoursSaturday .hours-label,
#hoursSaturday .hours-time-value{
  display:block;
}
#hoursWeekdays .hours-label,
#hoursSaturday .hours-label{
  white-space:nowrap;
}
#hoursWeekdays .hours-time-value,
#hoursSaturday .hours-time-value{
  margin-left:0;
  margin-top:3px;
}

.footer-phone{
  white-space:nowrap;
}

@media(max-width:620px){
  .footer-contact{
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    gap:8px;
    text-align:center;
  }
  .footer-contact #footerContactText{
    display:block;
    width:100%;
  }
  .footer-phone{
    display:block;
    width:100%;
    white-space:nowrap;
    text-align:center;
  }
}




/* V5.3 – uredniji donji footer */
footer{
  flex-direction:column;
  align-items:stretch;
}

.footer-bottom{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.footer-copy{
  white-space:nowrap;
}

.footer-links{
  display:flex;
  align-items:center;
  gap:18px;
}

.footer-links a{
  text-decoration:none;
  font-weight:750;
  white-space:nowrap;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-privacy{
  margin-left:0;
}

@media(max-width:620px){
  .footer-bottom{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }

  .footer-copy{
    white-space:normal;
  }

  .footer-links{
    width:100%;
    justify-content:center;
    gap:0;
  }

  .footer-links a{
    padding:5px 12px;
  }

  .footer-links a + a{
    border-left:1px solid var(--line);
  }
}
