/* ── Good Sign Forms — Public form (Typeform style) ── */
:root {
  --gf-accent:      #2563eb;
  --gf-accent-dark: #1d4ed8;
  --gf-bg:          #f8fafc;
  --gf-text:        #0f172a;
  --gf-muted:       #64748b;
  --gf-border:      rgba(15,23,42,.12);
  --gf-radius:      10px;
  --gf-transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--gf-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gf-text);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.gf-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Progress bar ── */
.gf-progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,.08);
  z-index: 100;
}
.gf-progress-fill {
  height: 100%;
  background: var(--gf-accent);
  transition: width 0.4s ease;
  width: 0%;
}

/* ── Screen layout ── */
.gf-screen {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1.5rem 1.5rem 5rem;
  animation: gfFadeUp 0.35s ease forwards;
}
.gf-screen.active {
  display: flex;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Kada sadržaj prelazi visinu ekrana — poravnaj od vrha, ne centra */
.gf-screen.active.gf-overflows {
  justify-content: flex-start;
}

@keyframes gfFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Question card ── */
.gf-question {
  width: 100%;
  max-width: 640px;
}
.gf-step-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gf-accent);
  font-weight: 700;
  margin-bottom: .5rem;
  opacity: .85;
}
.gf-question-label {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .35rem;
  color: #0f172a;
}
@media (min-width: 768px) {
  .gf-question-label { font-size: 1.75rem; }
}
.gf-question-desc {
  color: var(--gf-muted);
  margin: 0 0 1.25rem;
  font-size: .9rem;
  line-height: 1.5;
}

/* ── Inputs ── */
.gf-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  font-size: 1rem;
  background: #fff;
  color: var(--gf-text);
  transition: border-color var(--gf-transition), box-shadow var(--gf-transition);
  outline: none;
  appearance: none;
}
.gf-input:focus {
  border-color: var(--gf-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.gf-input.error { border-color: #ef4444; }
textarea.gf-input { resize: vertical; min-height: 100px; }

/* ── Yes/No ── */
.gf-yesno {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.gf-yesno-btn {
  flex: 1; min-width: 140px;
  padding: .85rem 1.5rem;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--gf-transition);
  text-align: center;
}
.gf-yesno-btn:hover   { border-color: var(--gf-accent); color: var(--gf-accent); }
.gf-yesno-btn.selected {
  border-color: var(--gf-accent);
  background: var(--gf-accent);
  color: #fff;
}

/* ── Choice options ── */
.gf-choices { display: flex; flex-direction: column; gap: .5rem; }
.gf-choice {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--gf-transition), background var(--gf-transition), box-shadow var(--gf-transition);
  user-select: none;
}
.gf-choice:hover {
  border-color: var(--gf-accent);
  background: color-mix(in srgb, var(--gf-accent) 4%, #fff);
}
.gf-choice.selected {
  border-color: var(--gf-accent);
  background: color-mix(in srgb, var(--gf-accent) 7%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gf-accent) 18%, transparent);
}
.gf-choice-marker {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gf-border);
  flex-shrink: 0;
  transition: all var(--gf-transition);
  position: relative;
}
.gf-choice.selected .gf-choice-marker {
  border-color: var(--gf-accent);
  background: var(--gf-accent);
}
.gf-choice.selected .gf-choice-marker::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.gf-choice-multi .gf-choice-marker { border-radius: 4px; }
.gf-choice-multi .gf-choice.selected .gf-choice-marker::after {
  top: 50%; left: 50%;
  width: 10px; height: 6px;
  background: transparent;
  border-radius: 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

/* ── Choices sa slikama — grid layout ── */
.gf-choices-has-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.gf-choices-has-images .gf-choice {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: var(--gf-radius);
}
.gf-choices-has-images .gf-choice-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gf-choices-has-images .gf-choice-text-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 7px 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.gf-choices-has-images .gf-choice-marker {
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.gf-choices-has-images .gf-choice-label {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Checkmark overlay na slici */
.gf-choices-has-images .gf-choice.selected .gf-choice-img-wrap::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--gf-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800;
  line-height: 22px; text-align: center;
}
.gf-choices-has-images .gf-choice-img-wrap {
  position: relative;
}
@media (max-width: 600px) {
  .gf-choices-has-images { grid-template-columns: repeat(2, 1fr); }
}

/* ── File upload ── */
.gf-file-area {
  border: 2px dashed var(--gf-border);
  border-radius: var(--gf-radius);
  padding: 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--gf-transition);
}
.gf-file-area:hover { border-color: var(--gf-accent); }
.gf-file-area input[type="file"] { display: none; }

/* ── Navigation ── */
.gf-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gf-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 50;
}
.gf-btn-next {
  padding: .7rem 2rem;
  background: var(--gf-accent);
  color: #fff;
  border: none;
  border-radius: var(--gf-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--gf-transition), transform .1s;
  display: flex; align-items: center; gap: .4rem;
}
.gf-btn-next:hover:not(:disabled) { background: var(--gf-accent-dark); }
.gf-btn-next:active { transform: scale(.97); }
.gf-btn-next:disabled { opacity: .5; cursor: default; }
.gf-btn-back {
  padding: .7rem 1.2rem;
  background: transparent;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color var(--gf-transition);
}
.gf-btn-back:hover { border-color: var(--gf-muted); }
.gf-counter {
  margin-left: auto;
  color: var(--gf-muted);
  font-size: .85rem;
  white-space: nowrap;
}

.gf-summary-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 78px;
  z-index: 55;
  display: none;
}
.gf-summary-bar.visible { display: block; }
.gf-summary-bar-btn {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(15,23,42,.14);
  color: var(--gf-text);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.gf-summary-bar-kicker {
  color: var(--gf-accent);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.gf-summary-bar-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 650;
}
.gf-summary-bar-action {
  border-radius: 999px;
  background: color-mix(in srgb, var(--gf-accent) 10%, #fff);
  color: var(--gf-accent);
  font-size: .76rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}
.gf-summary-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.gf-summary-sheet.open { display: block; }
.gf-summary-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
}
.gf-summary-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 40px rgba(15,23,42,.24);
  padding: 10px 18px 22px;
}
.gf-summary-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 14px;
}
.gf-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gf-summary-eyebrow {
  color: var(--gf-accent);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.gf-summary-head h2,
.gf-summary-desktop h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.gf-summary-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gf-border);
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gf-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gf-summary-item {
  background: transparent;
  border-bottom: 1px solid #eef2f7;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  display: block;
  font-family: inherit;
  padding-bottom: 10px;
  text-align: left;
  width: 100%;
}
.gf-summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.gf-summary-item:hover .gf-summary-item-value {
  color: var(--gf-accent);
}
.gf-summary-item-label {
  color: var(--gf-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.gf-summary-item-value {
  color: #0f172a;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 3px;
  word-break: break-word;
}
.gf-summary-empty {
  color: var(--gf-muted);
  font-size: .9rem;
  margin: 0;
}
.gf-summary-desktop {
  position: fixed;
  top: 82px;
  right: 24px;
  width: 270px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  display: none;
  z-index: 45;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--gf-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
  padding: 14px;
}
.gf-summary-desktop.visible { display: none; }

@media (min-width: 1280px) {
  .gf-summary-bar { display: none !important; }
  .gf-summary-desktop.visible { display: block; }
}

@media (max-width: 1279px) {
  .gf-screen { padding-bottom: 8.5rem; }
}

@media (max-width: 420px) {
  .gf-summary-bar-btn {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .gf-summary-bar-kicker {
    display: none;
  }
  .gf-summary-bar-action {
    padding-inline: 8px;
  }
}

/* ── Error message ── */
.gf-error { color: #ef4444; font-size: .85rem; margin-top: .4rem; }

/* ── Help text ── */
.gf-help { color: var(--gf-muted); font-size: .8rem; margin-top: .4rem; }

/* ── Thank you screen ── */
.gf-thankyou {
  text-align: center;
  max-width: 500px;
}
.gf-thankyou-icon {
  width: 72px; height: 72px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #16a34a;
}
.gf-thankyou h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 .75rem;
}
.gf-thankyou p { color: var(--gf-muted); }

/* ── Intro screen — centered (default) ── */
.gf-intro { text-align: center; max-width: 540px; }
.gf-intro h1 { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; }
.gf-intro p { color: var(--gf-muted); margin-bottom: 2rem; }
.gf-intro-logo { display: block; margin: 0 auto 1.5rem; max-height: 60px; max-width: 200px; object-fit: contain; }

/* ── Intro screen — split layout ── */
.gf-screen.active:has(.gf-intro-split) { padding: 0; overflow: hidden; }
.gf-intro-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}
.gf-intro-split-image {
  flex: 0 0 50%;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}
.gf-intro-split-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 64px;
  background: #fff;
  max-width: 600px;
}
.gf-intro-split-content .gf-intro-logo {
  margin: 0 0 2rem;
  max-height: 52px;
}
.gf-intro-split-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--gf-text);
}
.gf-intro-split-desc {
  font-size: 1rem;
  color: var(--gf-muted);
  margin: 0 0 2.5rem;
  line-height: 1.6;
  max-width: 400px;
}
.gf-start-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  background: var(--gf-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s, transform .15s;
  letter-spacing: .01em;
}
.gf-start-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
@media (max-width: 700px) {
  .gf-intro-split { flex-direction: column; }
  .gf-intro-split-image { flex: 0 0 240px; width: 100%; }
  .gf-intro-split-content { padding: 36px 28px 48px; max-width: none; }
  .gf-intro-split-title { font-size: 1.6rem; }
}

/* ── Contact question type ── */
/* ── Item list (repeating rows) ── */
.gf-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gf-item-list-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  padding: 12px 14px;
  transition: border-color var(--gf-transition);
}
.gf-item-list-row:focus-within {
  border-color: var(--gf-accent);
}

.gf-item-list-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--gf-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 8px;
}

.gf-item-list-fields {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gf-item-list-field { flex: 1 1 200px; }
.gf-item-list-field.half { flex: 0 1 140px; }

.gf-item-list-input {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--gf-border);
  border-radius: 8px;
  font-size: .92rem;
  color: var(--gf-text);
  background: #f8fafc;
  outline: none;
  transition: border-color var(--gf-transition), background var(--gf-transition);
}
.gf-item-list-input:focus {
  border-color: var(--gf-accent);
  background: #fff;
}
.gf-item-list-input::placeholder { color: #94a3b8; font-size: .85rem; }
select.gf-item-list-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; }
select.gf-item-list-select option[disabled] { color: #94a3b8; }

.gf-item-list-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  margin-top: 4px;
  transition: color .15s, background .15s;
}
.gf-item-list-remove:hover { color: #ef4444; background: #fee2e2; }
/* Hide remove button when only 1 row */
.gf-item-list-rows:has(.gf-item-list-row:only-child) .gf-item-list-remove {
  visibility: hidden;
}

.gf-item-list-add-btn {
  align-self: flex-start;
  background: none;
  border: 2px dashed var(--gf-accent);
  color: var(--gf-accent);
  font-size: .88rem;
  font-weight: 600;
  padding: .55rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gf-item-list-add-btn:hover {
  background: color-mix(in srgb, var(--gf-accent) 10%, white);
}
.gf-item-list-add-btn span {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Quantity checklist ── */
.gf-qcl { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 640px; }

.gf-qcl-header {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  gap: 8px;
  padding: 0 12px 4px;
  font-size: .75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gf-qcl-row {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--gf-border);
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .18s, background .18s, box-shadow .18s;
  cursor: pointer;
}
.gf-qcl-row:hover { border-color: color-mix(in srgb, var(--gf-accent) 40%, #e2e8f0); background: #fff; }
.gf-qcl-row.active {
  border-color: var(--gf-accent);
  background: color-mix(in srgb, var(--gf-accent) 4%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gf-accent) 12%, transparent);
}

.gf-qcl-check-wrap {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.gf-qcl-check-wrap input[type="checkbox"] { display: none; }
.gf-qcl-marker {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--gf-border);
  border-radius: 5px;
  background: #fff;
  transition: background .15s, border-color .15s;
  display: flex; align-items: center; justify-content: center;
}
.gf-qcl-row.active .gf-qcl-marker {
  background: var(--gf-accent);
  border-color: var(--gf-accent);
}
.gf-qcl-row.active .gf-qcl-marker::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}
.gf-qcl-name { font-size: .9rem; font-weight: 500; color: var(--gf-text); }

.gf-qcl-qty {
  width: 100%;
  padding: .45rem .6rem;
  border: 1.5px solid var(--gf-border);
  border-radius: 7px;
  font-size: .9rem;
  text-align: center;
  color: var(--gf-text);
  background: #f1f5f9;
  outline: none;
  transition: border-color .18s, background .18s;
}
.gf-qcl-qty:not([disabled]) { background: #fff; }
.gf-qcl-qty:focus { border-color: var(--gf-accent); background: #fff; }
.gf-qcl-qty[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }

.gf-qcl-note {
  width: 100%;
  padding: .45rem .75rem;
  border: 1.5px solid var(--gf-border);
  border-radius: 7px;
  font-size: .85rem;
  color: var(--gf-text);
  background: #f1f5f9;
  outline: none;
  transition: border-color .18s, background .18s;
}
.gf-qcl-note:not([disabled]) { background: #fff; }
.gf-qcl-note:focus { border-color: var(--gf-accent); background: #fff; }
.gf-qcl-note[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.gf-qcl-note::placeholder { color: #94a3b8; font-size: .82rem; }

@media (max-width: 560px) {
  .gf-qcl-header { grid-template-columns: 1fr 70px; }
  .gf-qcl-header .gf-qcl-col-note { display: none; }
  .gf-qcl-row { grid-template-columns: 1fr 70px; }
  .gf-qcl-note { display: none; }
}

/* ── Contact grid ── */
.gf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gf-contact-grid .gf-contact-full { grid-column: 1 / -1; }
.gf-contact-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  font-size: 1rem;
  color: var(--gf-text);
  background: #fff;
  transition: border-color .2s;
  font-family: inherit;
}
.gf-contact-input:focus {
  outline: none;
  border-color: var(--gf-accent);
}
.gf-contact-input::placeholder { color: #94a3b8; }
.gf-contact-optional-label {
  font-size: .75rem;
  color: var(--gf-muted);
  margin-top: 8px;
}
.gf-contact-firma-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--gf-muted);
  user-select: none;
}
.gf-contact-firma-toggle input { cursor: pointer; }
.gf-contact-firma-fields {
  display: none;
  grid-column: 1 / -1;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}
.gf-contact-firma-fields.open { display: grid; }
@media (max-width: 540px) {
  .gf-contact-grid { grid-template-columns: 1fr; }
  .gf-contact-firma-fields { grid-template-columns: 1fr; }
}

/* ── Shopify products grid ── */
.gf-shopify-grid {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.gf-shopify-card {
  flex-direction: row;
  gap: .75rem;
  align-items: center;
}
.gf-shopify-card .gf-choice-marker {
  margin-left: auto;
  flex-shrink: 0;
}
.gf-shopify-card.selected { background: rgba(37,99,235,.06); }

/* ── Picture-choice grid (grouped Shopify products) ── */
.gf-question.gf-wide { max-width: 900px; }

.gf-picture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 600px) {
  .gf-picture-grid { grid-template-columns: repeat(2, 1fr); }
}

.gf-picture-card {
  position: relative;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--gf-transition), transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  user-select: none;
}
.gf-picture-card:hover {
  border-color: var(--gf-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37,99,235,.12);
}
.gf-picture-card.selected {
  border-color: var(--gf-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
.gf-picture-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gf-picture-card-label {
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gf-text);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,.06);
  /* Ograniči na 2 reda, ostatak ... */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}
.gf-picture-card-sub {
  padding: 0 12px 8px;
  font-size: .75rem;
  color: var(--gf-muted);
  text-align: center;
}
/* Checkmark when selected */
.gf-picture-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  background: var(--gf-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  line-height: 24px; text-align: center;
}
/* "Više slika" hint on hover */
.gf-picture-zoom-hint {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.gf-picture-card:hover .gf-picture-zoom-hint { opacity: 1; }

/* Badge za izabrani format (multi mod) */
.gf-picture-card-badge {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  background: var(--gf-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  padding: 3px 6px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hint ispod grida u multi modu */
.gf-multi-hint {
  text-align: center;
  font-size: .82rem;
  color: var(--gf-muted);
  margin-top: .75rem;
  margin-bottom: 0;
}

/* ── Slideshow / lightbox ── */
.gf-slideshow-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gfFadeIn .18s ease;
}
@keyframes gfFadeIn { from { opacity: 0; } to { opacity: 1; } }

.gf-slideshow-inner {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.gf-slideshow-img-wrap {
  position: relative;
  background: #f1f5f9;
}
.gf-slideshow-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
}
.gf-slideshow-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
  z-index: 2;
}
.gf-slideshow-arrow:hover { background: #fff; }
.gf-slideshow-arrow.prev { left: 12px; }
.gf-slideshow-arrow.next { right: 12px; }
.gf-slideshow-arrow:disabled { opacity: .3; cursor: default; }

.gf-slideshow-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: #f8fafc;
  border-top: 1px solid rgba(0,0,0,.06);
}
.gf-slideshow-thumb {
  width: 58px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s, transform .15s;
}
.gf-slideshow-thumb:hover { transform: scale(1.05); }
.gf-slideshow-thumb.active { border-color: var(--gf-accent); }

.gf-slideshow-info {
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gf-slideshow-name { font-weight: 700; font-size: 1rem; }
.gf-slideshow-counter { color: var(--gf-muted); font-size: .85rem; }

.gf-slideshow-footer {
  padding: 14px 20px 18px;
  display: flex;
  gap: 10px;
}
.gf-slideshow-select-btn {
  flex: 1;
  padding: .72rem 1.5rem;
  background: var(--gf-accent);
  color: #fff;
  border: none;
  border-radius: var(--gf-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.gf-slideshow-select-btn:hover { background: var(--gf-accent-dark); }
.gf-slideshow-close-btn {
  width: 44px; height: 44px;
  border: 2px solid #e2e8f0;
  background: transparent;
  border-radius: var(--gf-radius);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}
.gf-slideshow-close-btn:hover { border-color: #94a3b8; background: #f8fafc; }

/* ── Submitting spinner ── */
.gf-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gfSpin .6s linear infinite;
}
@keyframes gfSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM UX — Directional slide animations
   ═══════════════════════════════════════════════════════════════ */

@keyframes gfSlideInRight {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gfSlideInLeft {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0); }
}
.gf-screen.active.anim-right { animation: gfSlideInRight 0.32s cubic-bezier(0.4,0,0.2,1) forwards; }
.gf-screen.active.anim-left  { animation: gfSlideInLeft  0.32s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ── Premium step label ── */
.gf-step-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gf-accent);
  font-weight: 700;
  margin-bottom: .9rem;
  background: color-mix(in srgb, var(--gf-accent) 10%, white);
  padding: .22rem .75rem;
  border-radius: 20px;
}

/* ── Scroll / swipe hint ── */
.gf-scroll-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  color: var(--gf-muted);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: .05em;
  transition: opacity .4s ease;
  z-index: 40;
}
.gf-scroll-hint.visible { opacity: .55; }
.gf-scroll-hint-arrow {
  width: 18px; height: 18px;
  border: 1.5px solid var(--gf-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  animation: gfBounce 1.6s ease-in-out infinite;
}
@keyframes gfBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* ── Nav bar — premium look ── */
.gf-nav {
  border-top: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,.07);
}
.gf-btn-next {
  border-radius: 50px;
  padding: .72rem 2.2rem;
  letter-spacing: .01em;
}
.gf-btn-back {
  border-radius: 50px;
}
.gf-counter {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.gf-counter::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--gf-muted);
  border-radius: 50%;
  opacity: .4;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT UPSELL TYPE
   ═══════════════════════════════════════════════════════════════ */

.gf-question.gf-wide-upsell { max-width: 860px; }

.gf-upsell-wrap { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Product grid ── */
.gf-upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
@media (max-width: 480px) {
  .gf-upsell-grid { grid-template-columns: repeat(2, 1fr); }
}

.gf-upsell-card {
  position: relative;
  border: 2px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--gf-transition), transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  user-select: none;
}
.gf-upsell-card:hover {
  border-color: var(--gf-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.09);
}
.gf-upsell-card.selected {
  border-color: var(--gf-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gf-accent) 18%, transparent);
}
.gf-upsell-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
}
.gf-upsell-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gf-upsell-card-img-placeholder { font-size: 2rem; color: #94a3b8; }
.gf-upsell-card-label {
  padding: 8px 10px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gf-text);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,.06);
  line-height: 1.3;
}
/* Checkmark badge */
.gf-upsell-card-check {
  position: absolute;
  top: 7px; right: 7px;
  width: 22px; height: 22px;
  background: var(--gf-accent);
  color: #fff;
  border-radius: 50%;
  font-size: .68rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.gf-upsell-card.selected .gf-upsell-card-check { display: flex; }

/* ── Hint hint text ── */
.gf-upsell-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--gf-muted);
  margin: -.25rem 0 0;
}

/* ── Per-product detail sections ── */
.gf-upsell-selections { display: flex; flex-direction: column; gap: 10px; }

.gf-upsell-detail {
  background: #fff;
  border: 2px solid var(--gf-accent);
  border-radius: var(--gf-radius);
  padding: 14px 16px 10px;
  animation: gfFadeUp .22s ease forwards;
}
.gf-upsell-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.gf-upsell-detail-img {
  width: 36px; height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.gf-upsell-detail-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--gf-text);
  flex: 1;
}
.gf-upsell-detail-remove {
  background: none; border: none;
  color: #94a3b8; font-size: 1.1rem;
  cursor: pointer; padding: 2px 4px;
  border-radius: 4px; line-height: 1;
  transition: color .15s, background .15s;
}
.gf-upsell-detail-remove:hover { color: #ef4444; background: #fee2e2; }

.gf-upsell-empty {
  color: var(--gf-muted); font-size: .88rem;
  padding: .75rem 0; text-align: center;
}
.gf-upsell-loading {
  color: var(--gf-muted); font-size: .88rem;
  padding: 1.5rem 0; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}

/* ── Embed režim (?embed=1) — bez 100vh da iframe ne raste u nedogled ── */
.gf-embed .gf-app { min-height: 520px; }
.gf-embed .gf-intro,
.gf-embed .gf-screen.active { min-height: 480px; max-height: none; }
