:root {
  --ink: #171717;
  --paper: #ffffff;
  --soft: #f6f6f3;
  --line: #e5e5e1;
  --line-dark: #cfcfca;
  --accent: #c77732;
  --green: #1b7a3d;
  --muted: #73736e;
  --radius: 10px;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f7f7f5;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* --------------------------------------------------
   TOP BAR
-------------------------------------------------- */

.top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 920px;
  margin: 0 auto;
}

.top-bar-side {
  min-width: 1px;
}

.top-bar .lang-switch.top-bar-side {
  margin-left: auto;
}

.logo-placeholder img {
  width: 100%;
  height: 50px;
  object-fit: contain;
}

.logo-placeholder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  
  min-width: 140px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Replace with e.g.:
   .logo-placeholder { border: none; background: none; }
   .logo-placeholder img { max-height: 32px; width: auto; }
   and swap the placeholder div for an <img> once the logo is ready. */

.lang-switch {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.lang-switch a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.active {
  color: #fff;
  background: var(--ink);
}

/* --------------------------------------------------
   MAIN CONTAINER
-------------------------------------------------- */

.page {
  width: calc(100% - 32px);
  max-width: 720px;
  margin: 20px auto 70px;
  padding: 44px 48px 52px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.mark {
  width: 42px;
  height: 5px;
  border-radius: 10px;
  background: var(--accent);
  margin-bottom: 24px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.subheading {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

.weight-warning {
  display: inline-block;
  margin: 0 0 30px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #faf3ee;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------
   STEP WIZARD
-------------------------------------------------- */

.steps {
  display: flex;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  gap: 8px;
}

.steps .step {
  flex: 1;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a0a09b;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--line);
  position: relative;
  transition: all 0.25s ease;
}

.steps .step.done {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.steps .step.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------
   PANELS
-------------------------------------------------- */

.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* --------------------------------------------------
   FORM ROW
-------------------------------------------------- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --------------------------------------------------
   FORM FIELDS
-------------------------------------------------- */

.field {
  padding: 0;
  margin-bottom: 18px;
  position: relative;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555550;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.field label .tag {
  font-size: 10px;
  font-weight: 500;
  color: #9a9a95;
  margin-left: 4px;
}

.field input[type="text"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.field input[type="text"]:hover {
  border-color: var(--line-dark);
}

.field input[type="text"]:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}

.field input[type="text"]::placeholder {
  color: #aaa9a4;
}

.field.has-status input[type="text"] {
  padding-left: 42px;
}


.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.field input[type="tel"]:hover,
.field input[type="email"]:hover,
.field select:hover {
  border-color: var(--line-dark);
}

.field input[type="tel"]:focus,
.field input[type="email"]:focus,
.field select:focus {
  background-color: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}

.field input[type="tel"]::placeholder,
.field input[type="email"]::placeholder {
  color: #aaa9a4;
}

.field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23555550' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
/* --------------------------------------------------
   STATUS ICON
-------------------------------------------------- */

.status-icon {
  position: absolute;
  left: 14px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.status-icon.show {
  display: flex;
}

.status-icon svg {
  width: 16px;
  height: 16px;
  display: none;
}

.status-icon.valid svg[data-icon="valid"] {
  display: block;
  stroke: var(--green);
}

.status-icon.invalid svg[data-icon="invalid"] {
  display: block;
  stroke: var(--accent);
}

.status-icon.loading svg[data-icon="loading"] {
  display: block;
  stroke: var(--muted);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------
   STATUS MESSAGE
-------------------------------------------------- */

.status-message {
  font-size: 11px;
  margin-top: 6px;
  padding-left: 2px;
}

.status-message.valid {
  color: var(--green);
}

.status-message.invalid {
  color: var(--accent);
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* --------------------------------------------------
   AUTOCOMPLETE
-------------------------------------------------- */

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 12px);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.suggestions.show {
  display: block;
}

.suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.suggestions button:last-child {
  border-bottom: none;
}

.suggestions button:hover,
.suggestions button.active {
  background: var(--soft);
}

/* --------------------------------------------------
   ACTIONS
-------------------------------------------------- */

.actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions .prev,
.actions .next,
button.submit {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.actions .prev {
  background: #fff;
  border: 1px solid var(--line-dark);
  color: var(--ink);
}

.actions .prev:hover {
  background: var(--soft);
}

.actions .next,
button.submit {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}

.actions .next:hover,
button.submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.actions .next:active,
button.submit:active,
.actions .prev:active {
  transform: translateY(1px);
}

button.submit:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

/* --------------------------------------------------
   ERRORS / SUCCESS
-------------------------------------------------- */

.form-error {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 7px;
  background: #faf3ee;
  color: var(--accent);
  font-size: 12px;
}

.form-success {
  border: 1px solid #d8e8dc;
  border-radius: 9px;
  padding: 18px;
  margin-top: 24px;
  background: #f7fbf8;
  color: var(--green);
  font-size: 14px;
}

/* --------------------------------------------------
   RESULT
-------------------------------------------------- */

.result {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
  font-size: 15px;
}

.result a {
  color: var(--accent);
  font-weight: 600;
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 700px) {
  .page {
    width: calc(100% - 24px);
    margin-top: 8px;
    padding: 34px 24px 38px;
    border-radius: 13px;
  }

  h1 {
    font-size: 29px;
  }
}

@media (max-width: 560px) {
  .top-bar {
    padding: 16px 16px 8px;
  }

  .page {
    width: calc(100% - 20px);
    padding: 30px 20px 32px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps {
    gap: 5px;
  }

  .steps .step {
    font-size: 9px;
  }

  .actions {
    margin-top: 26px;
    padding-top: 20px;
  }

  .actions .prev,
  .actions .next,
  button.submit {
    min-height: 46px;
    padding: 0 18px;
  }
}
/* --- added for the static (Vercel) build --- */

/* Hide the page until translations are applied, to avoid an English flash. */
.i18n-pending .top-bar,
.i18n-pending .page { visibility: hidden; }

/* Honeypot field: invisible to people, tempting to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* --- individual / company switch --- */
[hidden] { display: none !important; }

.type-switch {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 22px;
}

.type-option { cursor: pointer; }

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-option span {
  display: block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.type-option input:checked + span {
  background: var(--ink);
  color: #fff;
}

.type-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------
   FIELD ERRORS / ADDRESS HELP
-------------------------------------------------- */

.field.has-error input[type="text"],
.field.has-error input[type="tel"],
.field.has-error input[type="email"],
.field.has-error select {
  border-color: var(--accent);
  background-color: #fdf8f4;
}

.field-error {
  font-size: 12px;
  margin: 6px 0 0;
  padding-left: 2px;
  color: var(--accent);
}

.form-error:empty {
  display: none;
}

.form-error a,
.field-error a,
.status-message a,
.address-help a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.address-help {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #ecd9c6;
  border-radius: 8px;
  background: #faf3ee;
  font-size: 13px;
  line-height: 1.5;
}

.address-help-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--accent);
}

.address-help-text {
  margin: 0;
}