/* prvi.dodir — Kontakt (/kontakt, kontakt.html): ceo sadržaj staje u jedan ekran.
   Levo: kartica (crna, pa „tvoj dizajn“) oko koje kruže opcije po meri, dole mejl i Instagram.
   Desno: žuti obrazac za upit. Žuta je ista kao akcenat na početnoj (#FFE14D).
   Na telefonu: žuti obrazac gore, kontakti ispod, bez crteža. */

.kt-body { --kt-y: #FFE14D; }

.kt {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  max-width: 1600px;
  height: calc(calc(100vh / var(--z, 1)) - var(--header-h) - 1px);
  height: calc(calc(100svh / var(--z, 1)) - var(--header-h) - 1px);
  min-height: 520px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- Levo: kartica i opcije ---------- */

.kt-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: clamp(20px, calc(3.4vh / var(--z, 1)), 32px) clamp(20px, calc(2.6vw / var(--z, 1)), 36px);
  border: 1px solid #E7E5DE;
  border-radius: 28px;
  /* žuti sjaj na ivici prema obrascu */
  background: radial-gradient(circle at 106% 50%, rgba(255, 225, 77, .5), rgba(255, 225, 77, 0) 44%), var(--papir-svetli);
}
.kt-side__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--grafit); }

/* Krug je kvadrat koji staje i po širini i po visini (cqw/cqh) */
.kt-orbit { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; container-type: size; }
.kt-orbit__box { position: relative; width: min(calc(100cqw / var(--cqz, 1)), calc(100cqh / var(--cqz, 1))); aspect-ratio: 1; }
.kt-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(11, 11, 11, .09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.kt-ring--1 { width: 34%; height: 34%; }
.kt-ring--2 { width: 56%; height: 56%; }
.kt-ring--3 { width: 84%; height: 84%; border-style: dashed; border-color: rgba(11, 11, 11, .13); }

.kt-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 85.6 / 54;
  transform: translate(-50%, -50%) rotate(-8deg);
  container-type: inline-size;
}
.kt-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(9cqw / var(--cqz, 1)) calc(10cqw / var(--cqz, 1));
  border-radius: calc(6cqw / var(--cqz, 1));
  box-shadow: 0 18px 30px -16px rgba(11, 11, 11, .55);
}
.kt-card__face svg { width: calc(17cqw / var(--cqz, 1)); height: calc(17cqw / var(--cqz, 1)); }
.kt-card__face--std { background: #0B0B0B; color: #F3F2ED; }
.kt-card__mark { font-size: calc(11cqw / var(--cqz, 1)); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.kt-card__mark span { color: #8F8E88; }
.kt-card__face--own { background: linear-gradient(135deg, #FFE14D, #FF8FB8 55%, #7FD0FF); color: #0B0B0B; opacity: 0; }
.kt-card__tag { font-family: var(--mono); font-size: calc(6.5cqw / var(--cqz, 1)); letter-spacing: .14em; line-height: 1; }
/* Ista kartica, tvoj dizajn: smenjuju se polako */
.anim .kt-card__face--own { animation: kt-own 9s ease-in-out 1.6s infinite; }
@keyframes kt-own { 0%, 30% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* Opcije kruže oko kartice (krug se okreće, natpis ostaje uspravan) */
.kt-spin { position: absolute; inset: 0; }
.kt-pill { position: absolute; transform: translate(-50%, -50%); }
.kt-pill > span {
  display: inline-block;
  padding: .6em 1.05em;
  border: 1px solid #E7E5DE;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 8px 18px -12px rgba(11, 11, 11, .35);
  color: var(--ugalj);
  font-size: clamp(11px, calc(2.4cqmin / var(--cqz, 1)), 13.5px);
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.kt-pill--dark > span { border-color: var(--ugalj); background: var(--ugalj); color: var(--kt-y); }
.anim .kt-spin { animation: kt-spin 90s linear infinite; }
.anim .kt-spin .kt-pill > span { animation: kt-spin 90s linear infinite reverse; }
@keyframes kt-spin { to { transform: rotate(360deg); } }

.kt-links { display: grid; gap: 2px; list-style: none; }
.kt-links li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; }
.kt-links .icon { flex: none; width: 18px; height: 18px; color: var(--grafit); }
.kt-links a {
  color: var(--ugalj);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s cubic-bezier(.16, 1, .3, 1);
}
.kt-links a:hover { background-size: 100% 1px; }
.kt-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--linija);
  border-radius: 999px;
  background: transparent;
  color: var(--grafit-tamni);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s;
}
.kt-copy:hover { background: var(--pesak); }
.kt-copy .icon { width: 14px; height: 14px; color: currentColor; }

/* ---------- Desno: žuti obrazac ---------- */

.kt-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(22px, calc(4vh / var(--z, 1)), 48px) clamp(22px, calc(4.4vw / var(--z, 1)), 72px);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 0% 0%, #FFEC85 0%, rgba(255, 236, 133, 0) 55%), var(--kt-y);
  color: var(--ugalj);
}
.kt-form,
.kt-done {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: clamp(10px, calc(1.9vh / var(--z, 1)), 18px);
  width: 100%;
  max-width: 640px;
  min-height: 0;
  margin: 0 auto;
}
.kt-title { font-size: clamp(36px, calc(6.4vh / var(--z, 1)), 64px); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.kt-sub { margin-top: clamp(6px, calc(1.2vh / var(--z, 1)), 12px); max-width: 48ch; font-size: clamp(14px, calc(1.9vh / var(--z, 1)), 16px); line-height: 1.5; color: #3A3A37; }

.kt-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 11, 11, .08);
}
.kt-topics label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(36px, calc(5vh / var(--z, 1)), 42px);
  padding: 0 8px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.kt-topics input { position: absolute; opacity: 0; pointer-events: none; }
.kt-topics label:hover { background: rgba(11, 11, 11, .06); }
.kt-topics label:has(input:checked) { background: var(--ugalj); color: var(--kt-y); }
.kt-topics label:has(input:focus-visible) { outline: 2px solid var(--ugalj); outline-offset: 2px; }

.kt-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(10px, calc(1.8vh / var(--z, 1)), 16px) 14px;
  min-height: 0;
}
.kt .field { gap: 6px; }
.kt .field__label { font-size: 13.5px; color: #2A2A28; }
.kt .field__label i { color: rgba(11, 11, 11, .5); }
.kt .field__opt { color: rgba(11, 11, 11, .5); }
.kt .field__error { font-size: 12.5px; color: #8F1F14; }
.kt-msg { grid-column: 1 / -1; min-height: 0; }
.kt-input {
  width: 100%;
  height: clamp(40px, calc(5.6vh / var(--z, 1)), 48px);
  padding: 0 14px;
  border: 1px solid rgba(11, 11, 11, .12);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ugalj);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.kt-input::placeholder { color: #9A988F; }
.kt-input:focus { outline: none; border-color: var(--ugalj); box-shadow: 0 0 0 3px rgba(11, 11, 11, .12); }
textarea.kt-input { flex: 1; min-height: 72px; height: auto; padding: 12px 14px; line-height: 1.5; resize: none; }
.kt .field.has-error .kt-input { border-color: #A1281D; background: #FFF6F3; }

.kt-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: clamp(46px, calc(6.4vh / var(--z, 1)), 56px);
  border: 0;
  border-radius: 14px;
  background: var(--ugalj);
  box-shadow: 0 12px 24px -14px rgba(11, 11, 11, .6);
  color: #F3F2ED;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.kt-send:hover { transform: translateY(-1.5px); box-shadow: 0 16px 28px -14px rgba(11, 11, 11, .7); }
.kt-send:active { transform: translateY(1px) scale(.99); transition-duration: .1s; }
.kt-send .icon { width: 18px; height: 18px; transition: transform .3s; }
.kt-send:hover .icon { transform: translateX(3px); }
.kt-send[aria-busy="true"] { opacity: .6; cursor: progress; }

.kt-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: clamp(8px, calc(1.4vh / var(--z, 1)), 14px);
  border-top: 1px solid rgba(11, 11, 11, .14);
  color: rgba(11, 11, 11, .6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}

/* Posle slanja */
.kt-done { justify-content: center; align-items: flex-start; }
.kt-done__ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ugalj); color: var(--kt-y); }
.kt-done__ok .icon { width: 28px; height: 28px; }
.kt-done__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.kt-done__btns .kt-send { width: auto; padding: 0 22px; }
.kt-ghost {
  height: clamp(46px, calc(6.4vh / var(--z, 1)), 56px);
  padding: 0 20px;
  border: 1px solid rgba(11, 11, 11, .25);
  border-radius: 14px;
  background: transparent;
  color: var(--ugalj);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.kt-ghost:hover { background: rgba(11, 11, 11, .06); }

/* Ulazak */
.anim .kt-side { animation: pd-up .8s cubic-bezier(.2, .8, .2, 1) both; }
.anim .kt-panel { animation: pd-up .8s cubic-bezier(.2, .8, .2, 1) .12s both; }
.anim .kt-done:not([hidden]) .kt-done__ok { animation: pd-scale .7s cubic-bezier(.2, .8, .2, 1) both; }

/* Nizak ekran računara: bez donjeg reda, da obrazac stane */
@media (min-width: 901px) and (max-height: 700px) {
  .kt-foot { display: none; }
  .kt-side__label { display: none; }
}

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
  .kt {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    height: auto;
    min-height: calc(calc(100svh / var(--z, 1)) - var(--header-h) - 1px);
    padding: 10px;
  }
  .kt-panel { order: -1; padding: 22px 18px; border-radius: 22px; }
  .kt-side { padding: 10px 16px; border-radius: 20px; background: var(--papir-svetli); }
  .kt-side__label,
  .kt-orbit { display: none; }
  .kt-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .kt-title { font-size: 34px; }
  .kt-sub { font-size: 14px; }
  .kt-topics label { padding: 0 4px; font-size: 13px; }
  .kt-grid { gap: 10px; }
  .kt .field__opt { display: none; }
  .kt-input { height: 44px; font-size: 16px; }   /* 16px: iPhone ne zumira polje */
  textarea.kt-input { min-height: 84px; }
  .kt-foot { display: none; }
}
/* Nizak telefon (npr. iPhone SE): bez podnaslova i zbijenije, da sve stane u ekran */
@media (max-width: 900px) and (max-height: 700px) {
  .kt-panel { padding: 18px 16px; }
  .kt-title { font-size: 30px; }
  .kt-sub { display: none; }
  .kt-input { height: 40px; }
  textarea.kt-input { min-height: 64px; }
  .kt-links li { min-height: 30px; }
}
