/* Phezos Upit — kontakt kartica (lager + vozila kod partnera) */
.phezos-upit-card .phezos-upit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-sizing: border-box; text-decoration: none;
}
.phezos-upit-card .phezos-upit-btn + .phezos-upit-btn { margin-top: 10px; }
.phezos-upit-card .phezos-upit-btn--wa,
.phezos-upit-card .phezos-upit-btn--wa:hover,
.phezos-upit-card .phezos-upit-btn--wa:focus { background: #0f7d4b !important; border-color: #0f7d4b !important; color: #fff !important; }
.phezos-upit-card .phezos-upit-btn--wa:hover { filter: brightness(1.08); }
.phezos-upit-card .phezos-upit-btn--wa svg { flex-shrink: 0; }

/* Partner pages have no Elementor wrapper around the card, so the box is drawn here. */
/* Values copied from the lager card's Elementor container so both look identical. */
.phezos-upit-box {
  margin-top: 20px; padding: 0 20px; background: #f2f5fb; border-radius: 8px;
}

/* "Nazovite me" — secondary (outline) button + inline form */
.phezos-upit-card .phezos-upit-btn--cb,
.phezos-upit-card .phezos-upit-btn--cb:hover,
.phezos-upit-card .phezos-upit-btn--cb:focus {
  background: #fff !important; color: #0363ac !important; border: 2px solid #0363ac !important; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 21px; padding: 14px 25px; min-height: 53px;
}
.phezos-upit-card .phezos-upit-btn--cb[aria-expanded="true"] { background: #eaf2fa !important; }
.phezos-upit-cb { margin-top: 14px; }
.phezos-upit-cb[hidden] { display: none; }
.phezos-upit-cb__intro { margin: 0 0 10px; font-size: 14px; color: #3a4556; }
.phezos-upit-cb__field { display: block; margin-bottom: 10px; }
.phezos-upit-cb__field span { display: block; font-size: 13px; font-weight: 600; color: #1b2433; margin-bottom: 4px; }
.phezos-upit-cb__field input {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px;
  border: 1px solid #c9d2df; border-radius: 8px; background: #fff; font-size: 16px; color: #1b2433;
}
.phezos-upit-cb__field input:focus { outline: 2px solid #0363ac; outline-offset: 1px; border-color: #0363ac; }
.phezos-upit-cb__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.phezos-upit-cb__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #3a4556; margin: 4px 0 10px; }
.phezos-upit-cb__consent input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.phezos-upit-cb__msg { margin: 0 0 10px; font-size: 14px; min-height: 0; }
.phezos-upit-cb__msg.is-error { color: #b42318; }
.phezos-upit-cb__done { margin: 0; padding: 14px; background: #e7f5ec; color: #0f5132; border-radius: 8px; font-weight: 600; }
.phezos-upit-cb button[type=submit] { font-family: inherit; font-size: 17px; font-weight: 600; line-height: 21px; padding: 16px 25px; border: 0; cursor: pointer; }
.phezos-upit-cb button[type=submit][disabled] { opacity: .7; cursor: default; }

/* Mobile sticky bar (vehicle pages only) */
.phezos-upit-bar { display: none; }
@media (max-width: 1023px) {
  .phezos-upit-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff;
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .15); transition: transform .2s ease;
  }
  .phezos-upit-bar.is-hidden { transform: translateY(110%); }
  body.phezos-upit-has-bar { padding-bottom: 68px; }
  .phezos-upit-bar__btn {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; padding: 0 6px; border-radius: 8px; border: 2px solid transparent;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer;
    white-space: nowrap;
  }
  .phezos-upit-bar__btn svg { flex-shrink: 0; }
  .phezos-upit-bar__btn--call { background: #0363ac; color: #fff !important; }
  .phezos-upit-bar__btn--wa { background: #0f7d4b; color: #fff !important; }
  .phezos-upit-bar__btn--cb { background: #fff; color: #0363ac; border-color: #0363ac; }
}
/* Montserrat is wide: at 375px three labelled buttons with icons overflowed by ~5px and
   clipped "Nazovite me". Buttons may shrink (min-width:0); the outline button drops its
   icon on narrow phones. */
@media (max-width: 1023px) {
  .phezos-upit-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .phezos-upit-bar__btn { min-width: 0; padding: 0 4px; gap: 5px; font-size: 14px; }
}
@media (max-width: 419px) { .phezos-upit-bar__btn--cb svg { display: none; } }
@media (max-width: 359px) { .phezos-upit-bar__btn { font-size: 13px; gap: 4px; } .phezos-upit-bar__btn svg { width: 16px; height: 16px; } }
@media print { .phezos-upit-bar { display: none !important; } }
