/* =========================================================
   NOVAUX — Kontaktformular
   Editorial · Multi-Step · Premium
   ========================================================= */

:root {
  --paper: #F6F2EA;
  --chalk: #EDE7DB;
  --ink: #141310;
  --mid: #4A453E;
  --line: rgba(20, 19, 16, 0.12);
  --line-strong: rgba(20, 19, 16, 0.25);
  --signal: #3D5878;
  --signal-bright: #7DA0C0;

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Inter Tight", -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(24px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; border: 0; background: transparent; color: inherit; font: inherit; }

.mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 350ms var(--ease), height 350ms var(--ease);
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
}
.cursor.is-hover { width: 60px; height: 60px; }
.cursor__label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none) { body { cursor: auto; } a, button { cursor: auto; } .cursor { display: none; } }

/* ---------- Nav ---------- */
.knav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.knav__back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: gap 400ms var(--ease);
}
.knav__back:hover { gap: 16px; }
.knav__back-arrow {
  font-size: 16px;
  display: inline-block;
  transition: transform 400ms var(--ease);
}
.knav__back:hover .knav__back-arrow { transform: translateX(-4px); }
.knav__close-btn {
  width: 32px; height: 32px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.knav__close-btn span {
  position: absolute;
  width: 18px; height: 1px;
  background: var(--ink);
  transition: transform 400ms var(--ease);
}
.knav__close-btn span:first-child { transform: rotate(45deg); }
.knav__close-btn span:last-child { transform: rotate(-45deg); }
.knav__close-btn:hover span:first-child { transform: rotate(90deg); }
.knav__close-btn:hover span:last-child { transform: rotate(0deg); }

/* ---------- Progress ---------- */
.progress {
  position: fixed;
  top: 65px; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  z-index: 99;
}
.progress__bar {
  height: 100%;
  background: var(--signal);
  width: 33.33%;
  transition: width 600ms var(--ease-out);
}

/* ---------- Form Wrap ---------- */
.form-wrap {
  flex: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
}

/* ---------- Steps ---------- */
.step {
  display: none;
  min-height: calc(100vh - 160px);
  padding: clamp(48px, 8vh, 100px) var(--pad-x) 48px;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.step.is-active {
  display: grid;
  opacity: 1;
  transform: translateX(0);
}
.step.is-exiting {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
}
.step--thankyou.is-active {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Step Left ---------- */
.step__left {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mid);
}
.step__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(52px, 7vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.step__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--signal);
}
.step__sub {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.5;
  max-width: 28ch;
}
.step__promise {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mid);
}

/* ---------- Choices (Step 1) ---------- */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}
.choice {
  cursor: none;
}
.choice input { display: none; }
.choice__box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease);
  position: relative;
  cursor: none;
}
.choice__box:hover {
  border-color: var(--signal);
  background: rgba(61, 88, 120, 0.04);
  transform: translateY(-2px);
}
.choice input:checked + .choice__box {
  border-color: var(--signal);
  background: rgba(61, 88, 120, 0.07);
}
.choice input:checked + .choice__box::after {
  content: "✓";
  position: absolute;
  top: 16px; right: 16px;
  font-size: 14px;
  color: var(--signal);
  font-family: var(--f-mono);
}
.choice__num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mid);
}
.choice__label {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.choice__desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.4;
  font-weight: 400;
}

/* ---------- Fields ---------- */
.fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.field__label .req {
  color: var(--signal);
  font-style: normal;
  margin-left: 2px;
}
.field__input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 400ms var(--ease);
  resize: none;
  font-variation-settings: "opsz" 40;
}
.field__input::placeholder {
  color: var(--mid);
  opacity: 0.5;
  font-style: italic;
}
.field__input.is-error {
  border-bottom-color: #C44A1C;
}
.field__error {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C44A1C;
  margin-top: -4px;
  display: none;
}
.field__error.is-visible { display: block; }
.field__input:focus {
  border-bottom-color: var(--signal);
}
.field__input.is-error:focus {
  border-bottom-color: var(--signal);
}
.field__textarea {
  line-height: 1.5;
  padding-top: 10px;
  font-size: clamp(16px, 1.2vw, 19px);
}

/* ---------- Budget Pills ---------- */
.budget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.pill {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 300ms var(--ease);
  cursor: none;
}
.pill:hover {
  border-color: var(--signal);
  color: var(--signal);
}
.pill.is-active {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

/* ---------- Navigation Buttons ---------- */
.step__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 2.5vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap 400ms var(--ease), color 300ms var(--ease);
}
.btn-next span {
  font-style: normal;
  transition: transform 400ms var(--ease);
}
.btn-next:hover {
  gap: 20px;
  color: var(--signal);
  border-bottom-color: var(--signal);
}
.btn-next:hover span { transform: translateX(6px); }

.btn-back {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn-back:hover { color: var(--ink); border-bottom-color: var(--ink); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 40px 20px 32px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.02em;
  transition: background 400ms var(--ease), gap 400ms var(--ease);
}
.btn-submit:hover {
  background: var(--signal);
  gap: 28px;
}
.btn-submit__arrow { font-style: normal; transition: transform 400ms var(--ease); }
.btn-submit:hover .btn-submit__arrow { transform: translateX(6px); }

.form-status {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0;
  display: none;
}
.form-status.is-error {
  display: block;
  color: #C44A1C;
}
.form-legal {
  margin-top: 24px;
  font-size: 12px;
  color: var(--mid);
  max-width: 56ch;
  line-height: 1.5;
}
.form-legal a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.form-legal a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Thank You ---------- */
.thankyou {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 640px;
  padding: 80px 24px;
}
.thankyou__num {
  font-size: 64px;
  display: block;
  color: var(--signal);
  font-family: var(--f-display);
  animation: checkIn 600ms var(--ease-out) forwards;
}
@keyframes checkIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.thankyou__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.thankyou__title em { font-style: italic; color: var(--signal); }
.thankyou__text {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--mid);
  max-width: 48ch;
}
.thankyou__meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.thankyou__direct {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
}
.btn-home {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  margin-top: 8px;
  transition: gap 400ms var(--ease);
}
.btn-home:hover { color: var(--signal); border-bottom-color: var(--signal); }

/* ---------- Footer ---------- */
.kfooter {
  padding: 24px var(--pad-x);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .step.is-active { grid-template-columns: 1fr; }
  .step__left { position: static; }
  .step__title { font-size: clamp(48px, 14vw, 80px); }
  .choices { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .kfooter { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .budget-pills { flex-direction: column; }
  .pill { text-align: center; }
}
