/* ---- Contact section ---- */
.kontakt {
  position: relative;
  z-index: 30;
  background: transparent;
  visibility: hidden;
}

.kontakt.is-visible {
  visibility: visible;
}

.kontakt__pin-wrap {
  position: relative;
}

.kontakt__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kontakt__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.36) 100%),
    linear-gradient(90deg, rgba(10,12,28,0) 28%, rgba(10,12,28,0.12) 48%, rgba(10,12,28,0.65) 73%, rgba(10,12,28,0.94) 100%),
    radial-gradient(ellipse 55% 70% at 13% 52%, rgba(18,30,90,0.32) 0%, rgba(12,20,65,0.18) 38%, transparent 72%),
    radial-gradient(ellipse 75% 70% at 4% 112%, rgba(20,35,120,0.76) 0%, rgba(15,25,90,0.57) 28%, rgba(10,18,60,0.3) 55%, transparent 82%),
    #0d0f1c;
}

/* ---- Card ---- */
.kontakt__card {
  position: relative;
  z-index: 1;
  width: calc(100% - 3rem);
  max-width: 520px;
  background: rgba(10, 13, 32, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem 2rem;
  box-shadow:
    0 32px 96px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---- Progress header: N/4 + bar segments ---- */
.kontakt__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.kontakt__stepnum {
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
}

.kontakt__bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.kontakt__bar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.35s ease;
}

.kontakt__bar.is-active {
  background: #e2b33e;
}

.kontakt__bar.is-done {
  background: #2ecc71;
}

/* ---- Steps ---- */
.kontakt__steps {
  position: relative;
}

.kontakt__step {
  display: none;
  flex-direction: column;
  align-items: flex-start;
}

.kontakt__step.is-active {
  display: flex;
  animation: kontakt-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes kontakt-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Step header ---- */
.kontakt__tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 0.75rem;
}

.kontakt__question {
  margin: 0 0 1.5rem;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---- Option buttons ---- */
.kontakt__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.kontakt__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.kontakt__option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.kontakt__option:active {
  transform: scale(0.99);
}

.kontakt__option.is-selected {
  border-color: #e03535;
  background: rgba(224, 53, 53, 0.08);
}

/* Icon (step 1) */
.kontakt__option-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.5rem;
}

/* Text body (step 1) */
.kontakt__option-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.kontakt__option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kontakt__option-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 0.15rem;
}

/* Selection checkmark circle */
.kontakt__option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #e03535;
  color: #fff;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kontakt__option-check svg {
  width: 0.7rem;
  height: 0.7rem;
}

.kontakt__option.is-selected .kontakt__option-check {
  opacity: 1;
  transform: scale(1);
}

/* ---- Radio-style options (steps 2 & 3) ---- */
.kontakt__option--radio {
  gap: 0.875rem;
}

.kontakt__option--radio .kontakt__option-title {
  flex: 1;
}

.kontakt__radio-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.kontakt__option--radio.is-selected .kontakt__radio-dot {
  border-color: #e03535;
  background: #e03535;
}

/* ---- Free-text input option ---- */
.kontakt__option--text-input {
  cursor: text;
}

.kontakt__option--text-input:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}

.kontakt__option--text-input:focus-within .kontakt__radio-dot {
  border-color: rgba(255, 255, 255, 0.45);
}

.kontakt__option-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  -webkit-appearance: none;
}

.kontakt__option-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

/* ---- Disclaimer (step 1) ---- */
.kontakt__disclaimer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

/* ---- Contact fields (step 4) ---- */
.kontakt__fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 1rem;
}

.kontakt__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 0.875rem;
  transition: border-color 0.2s ease;
}

.kontakt__field:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
}

.kontakt__field.is-filled {
  border-color: rgba(46, 204, 113, 0.35);
}

.kontakt__field-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #2ecc71;
  color: #fff;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kontakt__field-check svg {
  width: 0.65rem;
  height: 0.65rem;
}

.kontakt__field.is-filled .kontakt__field-check {
  opacity: 1;
  transform: scale(1);
}

.kontakt__field .kontakt__input {
  border: none;
  background: transparent;
  padding: 0.88rem 0;
  flex: 1;
  min-width: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  outline: none;
  -webkit-appearance: none;
}

.kontakt__field .kontakt__input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

/* ---- Submit button ---- */
.kontakt__submit {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  background: #e03535;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* The send glyph is drawn pointing up; turn it a quarter clockwise so it
   points right, in the direction of sending. */
.kontakt__submit svg {
  transform: rotate(90deg);
}

.kontakt__submit:hover:not(:disabled) {
  background: #c42e2e;
  transform: scale(1.015);
}

.kontakt__submit:active:not(:disabled) {
  transform: scale(0.99);
}

.kontakt__submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---- Back button ---- */
.kontakt__back {
  margin-top: 1rem;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.kontakt__back:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Done screen ---- */
.kontakt__done {
  align-items: center;
  text-align: center;
  width: 100%;
}

.kontakt__check {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: kontakt-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes kontakt-pop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

.kontakt__check svg {
  width: 1.875rem;
  height: 1.875rem;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.kontakt__done-title {
  margin: 0 0 0.6rem;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.kontakt__done-sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.65;
}

/* ---- Call row ---- */
.kontakt__call-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.25);
}

.kontakt__call-sep {
  color: rgba(255, 255, 255, 0.15);
}

.kontakt__call-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color 0.2s ease;
}

.kontakt__call-link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .kontakt__card {
    padding: 3rem 2.5rem 2.5rem;
  }
  .kontakt__question {
    font-size: clamp(1.4rem, 2.5vw, 1.65rem);
  }
}

/* ---------- Laptop ---------- */
@media (min-width: 1024px) {
  .kontakt__card {
    max-width: 560px;
    padding: 3.5rem 3rem 3rem;
  }
}

/* ---- Netlify Forms plumbing ---- */

/* The form is a layout-transparent wrapper: every rule in this file targets
   .kontakt__fields / .kontakt__submit directly, so the form element itself
   must not introduce a box. */
.kontakt__form {
  display: contents;
}

/* Honeypot. Netlify discards any submission where this is filled, so it has to
   exist in the DOM but never be reachable by a person. Not display:none —
   some bots skip hidden fields, and this way it stays a real focusable-free
   element that is simply outside the viewport. */
.kontakt__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden labels: the inputs previously relied on placeholders alone,
   which screen readers do not treat as accessible names. */
.kontakt__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.kontakt__error {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ff8f8f;
}
