/* ============================================================================
   Phishing-simulatie — gedeelde stylesheet
   ---------------------------------------------------------------
   Alle merken hierin zijn FICTIEF. Geen echte banklogo's of -namen.
   Doel: security-awareness training. Geen enkele pagina verzamelt gegevens.
   ========================================================================== */

:root {
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #dc2626;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------ header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1024px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: .5px;
}
.brand-logo { height: 28px; width: auto; display: block; }
.brand-name { font-weight: 600; font-size: 16px; }
.header-right { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13px; }
.secure { display: flex; align-items: center; gap: 6px; }
.help { color: var(--accent); text-decoration: none; font-weight: 500; }

/* -------------------------------------------------------------------- main */
main {
  flex: 1 0 auto; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 60px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  width: 100%; max-width: 440px; padding: 28px 30px;
}
.card h1 { font-size: 20px; margin: 0 0 6px; }
.card .lead { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }

/* ----------------------------------------------------- payment details */
.payment-panel {
  width: 300px; max-width: 100%; flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.payment-panel .payment-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); margin-bottom: 10px;
}
.payment-panel .payment-row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.payment-panel .payment-row:last-child { border-bottom: none; }
.payment-panel .payment-row span { color: var(--muted); flex: 0 0 auto; }
.payment-panel .payment-row strong { text-align: right; font-weight: 600; color: var(--ink); word-break: break-word; }
main.has-payment { gap: 20px; }
@media (max-width: 720px) {
  main.has-payment { flex-direction: column; align-items: center; }
  .payment-panel { width: 100%; max-width: 440px; }
}

/* --------------------------------------------------------------- progress */
.progress { margin: 0 0 20px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progress-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0; border-radius: 999px; transition: width .3s ease; }

/* -------------------------------------------------------------------- form */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.btn {
  width: 100%; padding: 13px; font-size: 15px; font-weight: 600; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; cursor: pointer; margin-top: 6px;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 600;
  padding: 13px; border-radius: 8px; cursor: pointer; width: 100%; font-size: 15px;
}
.btn-secondary:hover { background: var(--bg); }

.link-row { margin-top: 16px; font-size: 13px; text-align: center; }
.link-row a { color: var(--accent); text-decoration: none; }

.notice {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; line-height: 1.5;
}
.sim-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; line-height: 1.5;
}
.challenge {
  display: inline-block; font-weight: 800; font-size: 16px; letter-spacing: 1px;
  color: var(--accent); background: #fff; padding: 1px 8px; border-radius: 6px;
  border: 1px solid var(--line);
}
.cardreader {
  background: none; border: none; padding: 0;
  color: inherit; font-size: inherit; line-height: 1.6;
}
ol.cardreader-steps {
  list-style: decimal;
  margin: 0 0 18px;
  padding-left: 1.2em;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  line-height: 1.6;
}
ol.cardreader-steps li {
  margin: 0 0 6px;
}
select.field-select {
  width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink);
}

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  max-width: 1024px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.footer-inner a { color: var(--muted); text-decoration: none; }

/* -------------------------------------------------------- loading overlay */
#loading-overlay {
  position: fixed; inset: 0; background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
#loading-overlay[hidden] { display: none; }
.spinner {
  width: 46px; height: 46px; border: 4px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { display: flex; flex-direction: column; align-items: center; }
.loading-text { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------- marketplace lures */
.market-header { background: #0f766e; color: #fff; border-bottom: 1px solid rgba(0,0,0,.1); }
.market-header .header-inner { display: flex; align-items: center; justify-content: space-between; }
.market-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.market-logo .logo { background: #fff; color: #0f766e; }
.market-nav { display: flex; gap: 16px; font-size: 13px; }
.market-nav a { color: #fff; text-decoration: none; opacity: .9; }

.market-body { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.listing-photo {
  min-height: 280px; background: linear-gradient(135deg, #e6f4f1, #d0ece6);
  display: flex; align-items: center; justify-content: center; font-size: 72px;
}
.listing-info { padding: 28px 30px; }
.listing-info .tag { display: inline-block; background: var(--accent-soft); color: #0f766e; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.listing-info h1 { font-size: 24px; margin: 0 0 8px; }
.price { font-size: 28px; font-weight: 800; color: #0f766e; margin: 4px 0 16px; }
.price s { color: var(--muted); font-size: 16px; font-weight: 400; margin-left: 8px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.seller { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #cbd5e1; display: flex; align-items: center; justify-content: center; color: #475569; font-weight: 700; }

@media (max-width: 720px) { .listing { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- bank selection */
.checkout-header { background: #1a1a1a; border-bottom: none; color: #fff; }
.checkout-header .secure { color: #cbd5e1; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.bank-option {
  display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.bank-option:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.bank-option .logo { flex: 0 0 auto; }
.bank-option .bank-logo {
  width: 36px; height: 36px; object-fit: contain; border-radius: 8px;
  flex: 0 0 auto; background: #fff;
}
