/* ===========================================================================
   V8 — contact questionnaire.

   Six steps plus a review. One question on screen at a time, so nobody faces a
   wall of fields; a sticky rail on the left keeps the sense of place. Same
   tokens as the rest of V8 — nothing new is introduced here.
   ======================================================================== */

/* Dark band. Every other section on the page is light, so the one place a
   visitor is meant to act is the one place that inverts. */
.v8c {
  --paper: #101010;
  --ink: #fff;
  --mute: rgba(255, 255, 255, .58);
  --hair: rgba(255, 255, 255, .14);
  --live: var(--green, #10d07f);
  --beam: var(--blue-primary, #0f9ded);

  position: relative;
  font-family: Poppins, sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding: 124px 0;
}

.v8c-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.v8c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9375rem;
  color: var(--mute);
}

.v8c-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

/* --- Shell ---------------------------------------------------------------*/
.v8c-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1.2fr;
  gap: 64px;
  margin-top: 22px;
  align-items: start;
}

/* not sticky: the column is short and the form is long, so pinning it left
   the text hanging in the middle of empty space */
.v8c-rail { position: static; }

.v8c-rail h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 500;
}

.v8c-rail > p {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mute);
}

.v8c-direct {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 8px;
}

.v8c-direct a {
  font-size: 1.0625rem;
  color: #fff;
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.v8c-direct a:hover { border-bottom-color: var(--beam); }

.v8c-direct .v8c-book {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: .9375rem;
  font-weight: 500;
  transition: border-color .22s ease, background-color .22s ease;
}

.v8c-direct .v8c-book:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}
.v8c-direct span { font-size: .8125rem; color: var(--mute); }

/* --- Form body -----------------------------------------------------------
   No panel: no border, no shadow, no white card. The questionnaire sits on the
   page ground like the rest of the sections, so it reads as part of the page
   rather than a widget dropped onto it. */
.v8c-form { padding-top: 2px; }

/* --- Progress ------------------------------------------------------------*/
.v8c-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.v8c-step-of { font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }

.v8c-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  margin-bottom: 26px;
}

.v8c-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--beam), #58bef5);
  transition: width .5s cubic-bezier(.22, .61, .36, 1);
}

/* --- Steps ---------------------------------------------------------------*/
/* min-height is written by script from the tallest step; the transition keeps
   a resize from snapping. */
.v8c-steps { transition: min-height .35s cubic-bezier(.22, .61, .36, 1); }

.v8c-step { display: none; }
.v8c-step.is-active { display: block; animation: v8c-in .45s cubic-bezier(.22, .61, .36, 1); }

@keyframes v8c-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v8c-step.is-active { animation: none; }
}

.v8c-q {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 500;
}

.v8c-hint { margin: 8px 0 0; font-size: .9375rem; color: var(--mute); }

/* --- Options -------------------------------------------------------------*/
.v8c-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.v8c-opts.is-single-col { grid-template-columns: 1fr; }

.v8c-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: transparent;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.v8c-opt:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }

.v8c-opt-text { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.v8c-opt-label { font-size: .9375rem; line-height: 1.35; }

/* One line of plain language per option — the labels alone left people
   guessing what "masovno renderiranje" actually buys them. */
.v8c-opt-desc {
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--mute);
}

.v8c-opt.is-on .v8c-opt-desc { color: rgba(255, 255, 255, .72); }

.v8c-opt .v8c-box {
  flex: 0 0 auto;
  margin-top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3);
  display: grid;
  place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}

.v8c-opt.is-radio .v8c-box { border-radius: 50%; }

.v8c-opt .v8c-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(.6);
  color: #fff;
  transition: opacity .2s ease, transform .2s ease;
}

.v8c-opt.is-on { border-color: var(--beam); background: rgba(15, 157, 237, .14); }
.v8c-opt.is-on .v8c-box { background: var(--beam); border-color: var(--beam); }
.v8c-opt.is-on .v8c-box svg { opacity: 1; transform: none; }

/* --- Fields --------------------------------------------------------------*/
.v8c-fields { display: grid; gap: 12px; margin-top: 22px; }
.v8c-fields.is-two { grid-template-columns: 1fr 1fr; }

.v8c-field { display: flex; flex-direction: column; gap: 7px; }
.v8c-field.is-wide { grid-column: 1 / -1; }

.v8c-field label { font-size: .8125rem; color: var(--mute); }

.v8c-field input,
.v8c-field textarea {
  font-family: inherit;
  font-size: .9375rem;
  color: var(--ink);
  padding: 14px 15px;
  border-radius: 13px;
  border: 1px solid var(--hair);
  background: transparent;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.v8c-field textarea { min-height: 108px; resize: vertical; }

.v8c-field input:focus,
.v8c-field textarea:focus {
  border-color: var(--beam);
  box-shadow: 0 0 0 3px rgba(15, 157, 237, .22);
}

.v8c-field.has-error input,
.v8c-field.has-error textarea { border-color: #ff6b63; }

.v8c-err {
  font-size: .8125rem;
  color: #ff6b63;
  display: none;
}

.v8c-field.has-error .v8c-err { display: block; }

/* --- Review --------------------------------------------------------------*/
.v8c-review { margin-top: 20px; border-top: 1px solid var(--hair); }

.v8c-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.v8c-row dt { font-size: .8125rem; color: var(--mute); }
.v8c-row dd { margin: 0; font-size: .9375rem; }
.v8c-row dd:empty::before { content: "—"; color: rgba(255,255,255,.35); }

.v8c-edit {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .8125rem;
  color: var(--beam);
  cursor: pointer;
  padding: 0;
}

.v8c-edit:hover { text-decoration: underline; }

/* --- Nav -----------------------------------------------------------------*/
.v8c-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.v8c-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}

.v8c-btn.is-primary { background: #fff; color: #101010; margin-left: auto; }
.v8c-btn.is-primary:hover { transform: translateY(-1px); opacity: .92; }
.v8c-btn.is-primary[disabled] { opacity: .35; cursor: not-allowed; transform: none; }

.v8c-btn.is-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.v8c-btn.is-ghost:hover { border-color: #fff; }
.v8c-btn.is-ghost[hidden] { display: none; }

.v8c-skip {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: .875rem;
  color: var(--mute);
  cursor: pointer;
}

.v8c-skip:hover { color: #fff; }

/* --- Done ----------------------------------------------------------------*/
.v8c-done { display: none; text-align: center; padding: 30px 0 10px; }
.v8c-done.is-on { display: block; animation: v8c-in .5s cubic-bezier(.22, .61, .36, 1); }

.v8c-tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 208, 127, .12);
  color: var(--live);
}

.v8c-tick svg { width: 24px; height: 24px; }
.v8c-done h3 { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.v8c-done p { margin: 10px auto 0; max-width: 42ch; font-size: .9375rem; color: var(--mute); }

/* --- Responsive ----------------------------------------------------------*/
@media (max-width: 991px) {
  .v8c { padding: 84px 0; }
  .v8c-wrap { padding: 0 24px; }
  .v8c-grid { grid-template-columns: 1fr; gap: 32px; }
  .v8c-row { grid-template-columns: 1fr; gap: 4px; }
  .v8c-row .v8c-edit { justify-self: start; }
}

@media (max-width: 640px) {
  .v8c-opts, .v8c-fields.is-two { grid-template-columns: 1fr; }
  .v8c-nav { flex-wrap: wrap; }
  .v8c-btn.is-primary { margin-left: 0; width: 100%; justify-content: center; }
}

/* Honeypot. Off screen rather than display:none — some bots skip anything
   that is not rendered, and this one is meant to be found by them. */
.v8c-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
