/* AutoKeur24 – VIN / Kenteken form (Yellow #FDEF01 + Black + Poppins) */

.ak-vf {
  --ak-yellow: #FDEF01;
  --ak-black: #0a0a0a;
  --ak-text: #2b2b2b;
  --ak-muted: #6b6b6b;
  --ak-border: #ececec;
  --ak-soft: #f7f7f5;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}
.ak-vf *, .ak-vf *::before, .ak-vf *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* ---------- Tabs ---------- */
.ak-vf__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--ak-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}
.ak-vf .ak-vf__tab {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: var(--ak-black) !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ak-vf .ak-vf__tab.is-active {
  background: var(--ak-black) !important;
  color: var(--ak-yellow) !important;
}
.ak-vf .ak-vf__tab:not(.is-active):hover { background: var(--ak-soft) !important; }

/* ---------- Input bar ---------- */
.ak-vf__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--ak-yellow);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  transition: box-shadow 0.2s ease;
}
.ak-vf__bar:focus-within {
  box-shadow: 0 0 0 4px rgba(253,239,1,0.6), 0 12px 32px rgba(0,0,0,0.09);
}
.ak-vf__pane {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ak-vf__pane.is-active { display: flex; }
.ak-vf .wpcf7-form-control-wrap { flex: 1; display: block; min-width: 0; }

.ak-vf input[type="text"] {
  width: 100% !important;
  height: 52px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ak-black) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ak-vf input[type="text"]::placeholder {
  color: #9a9a9a !important;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

/* Scan button */
.ak-vf .ak-vf__scan {
  flex: none;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: none !important;
  background: var(--ak-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3M4 12h16'/%3E%3C/svg%3E") center / 22px no-repeat !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ak-vf .ak-vf__scan:hover { background-color: var(--ak-yellow) !important; transform: scale(1.06); }

/* Submit */
.ak-vf input[type="submit"].wpcf7-submit {
  flex: none;
  height: 52px !important;
  padding: 0 54px 0 32px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--ak-yellow) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: none !important;
  background: var(--ak-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDEF01' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") right 26px center / 11px no-repeat !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ak-vf input[type="submit"].wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.25) !important;
}
.wpcf7 form.submitting .ak-vf input[type="submit"].wpcf7-submit {
  opacity: 0.6;
  pointer-events: none;
}
.ak-vf .wpcf7-spinner { display: none !important; }

/* ---------- Messages ---------- */
.ak-vf__error {
  display: none;
  margin: 10px 20px 0 !important;
  color: #e5484d;
  font-size: 13px;
  font-weight: 500;
}
.ak-vf__error.is-visible { display: block; }
.ak-vf__hint {
  display: none;
  margin: 12px 20px 0 !important;
  color: var(--ak-muted);
  font-size: 13px;
  line-height: 1.6;
}
.ak-vf__hint.is-active { display: block; }
.wpcf7 .wpcf7-not-valid-tip { display: none !important; }
.wpcf7 form .wpcf7-response-output {
  max-width: 760px;
  margin: 16px auto 0 !important;
  padding: 14px 18px !important;
  background: #fffef0;
  color: var(--ak-black);
  border: 1px solid #ececec !important;
  border-left: 5px solid #FDEF01 !important;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-left-color: #e5484d !important;
  background: #fff5f5;
}

/* ---------- Scanner modal ---------- */
.ak-scan {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10,10,10,0.82);
}
.ak-scan[hidden] { display: none; }
.ak-scan__box {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  background: #fff;
  border-top: 5px solid #FDEF01;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  font-family: 'Poppins', sans-serif;
  color: #0a0a0a;
}
.ak-scan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
}
.ak-scan .ak-scan__close {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f7f7f5 !important;
  color: #0a0a0a !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer;
}
.ak-scan .ak-scan__close:hover { background: #0a0a0a !important; color: #FDEF01 !important; }
.ak-scan__reader { min-height: 240px; overflow: hidden; border-radius: 12px; background: #0a0a0a; }
.ak-scan__reader video { border-radius: 12px; }
.ak-scan__msg { margin: 12px 0 0; color: #6b6b6b; font-size: 13px; line-height: 1.5; }
.ak-scan__msg.is-error { color: #e5484d; }

.ak-scan .ak-scan__photo {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #FDEF01 !important;
  color: #0a0a0a !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.ak-scan .ak-scan__photo:hover { background: #0a0a0a !important; color: #FDEF01 !important; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .ak-vf__bar { flex-wrap: wrap; border-radius: 26px; padding: 10px; }
  .ak-vf__pane { flex: 1 1 100%; }
  .ak-vf input[type="text"] { height: 48px !important; font-size: 16px !important; padding: 0 12px !important; }
  .ak-vf input[type="submit"].wpcf7-submit { width: 100%; }
  .ak-vf__tabs { display: flex; }
  .ak-vf .ak-vf__tab { flex: 1; padding: 10px 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ak-vf * { transition: none !important; }
}

/* =========================================================
   Thank you page
   ========================================================= */
.ak-ty {
  --ak-yellow: #FDEF01;
  --ak-black: #0a0a0a;
  --ak-text: #2b2b2b;
  --ak-muted: #6b6b6b;
  --ak-border: #ececec;
  --ak-soft: #f7f7f5;
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  color: var(--ak-text);
}
.ak-ty *, .ak-ty *::before, .ak-ty *::after { box-sizing: border-box; font-family: inherit; }
.ak-ty__card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--ak-border);
  border-top: 5px solid var(--ak-yellow);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.ak-ty__card--warn { border-top-color: #e5484d; }
.ak-ty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: var(--ak-yellow);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(253,239,1,0.5);
}
.ak-ty .ak-ty__title {
  margin: 0 0 10px !important;
  text-align: center;
  color: var(--ak-black) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.ak-ty__lead {
  margin: 0 0 26px;
  text-align: center;
  color: var(--ak-muted);
  font-size: 15px;
  line-height: 1.7;
}
.ak-ty__lead strong { color: var(--ak-black); font-weight: 600; }

.ak-ty__list { margin: 0 0 28px; padding: 0; border-top: 1px solid var(--ak-border); }
.ak-ty__list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ak-border);
  font-size: 15px;
}
.ak-ty__list dt { margin: 0; color: var(--ak-muted); font-weight: 500; }
.ak-ty__list dd { margin: 0; color: var(--ak-black); font-weight: 600; text-align: right; word-break: break-word; }
.ak-ty__vin { letter-spacing: 0.06em; text-transform: uppercase; }
.ak-ty__list .ak-ty__total { border-bottom: 0; padding-bottom: 0; font-size: 18px; }
.ak-ty__list .ak-ty__total dd .amount {
  background: linear-gradient(transparent 62%, var(--ak-yellow) 62%);
  padding: 0 4px;
  font-weight: 700;
}

.ak-ty .ak-ty__sub {
  margin: 0 0 12px !important;
  color: var(--ak-black) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}
.ak-ty__steps { margin: 0 0 30px; padding-left: 20px; color: var(--ak-text); font-size: 14px; line-height: 1.8; }
.ak-ty__steps li::marker { color: var(--ak-black); font-weight: 700; }

.ak-ty a.ak-ty__btn {
  display: block;
  width: 100%;
  padding: 17px 24px;
  text-align: center;
  text-decoration: none !important;
  color: var(--ak-black) !important;
  background: var(--ak-yellow);
  border: 2px solid var(--ak-yellow);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(253,239,1,0.5);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.ak-ty a.ak-ty__btn:hover {
  background: var(--ak-black);
  border-color: var(--ak-black);
  color: var(--ak-yellow) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
@media (max-width: 600px) {
  .ak-ty__card { padding: 28px 20px; }
  .ak-ty .ak-ty__title { font-size: 22px !important; }
}
