/* page & footer base so footer stays at bottom */
html, body { height: 100%; }
html, body { background: #f7fafc; color: #0f172a; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.no-scroll { overflow: hidden; }

/* Header */
.cd-navbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid #e6e8ef;
}
.cd-brand {
  font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(90deg, #f97316, #10b981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cd-push { height: 64px; }

/* Hero */
.cd-hero {
  background:
    radial-gradient(1200px 400px at 5% -10%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(900px 320px at 95% -20%, rgba(249,115,22,0.14), transparent 60%);
  border-bottom: 1px solid #e6e8ef;
}
.cd-hero .lead { color: #5b6577; }

/* Buttons */
.btn-start {
  background: #16a34a; color: #0b0f12; font-weight: 800; border: 0;
  box-shadow: 0 6px 18px rgba(22,163,74,0.25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-start:hover {
  transform: translateY(-1px);
  background: #15803d;
  box-shadow: 0 10px 24px rgba(22,163,74,0.30);
}
.btn-start:focus { outline: none; box-shadow: 0 0 0 .25rem rgba(22,163,74,0.25); }

.btn-outline { border: 1px solid #e6e8ef; background: #fff; color: #0f172a; }
.btn-outline:hover { background: #f8fafc; border-color: #d9dde6; }

/* Cards */
.card-surface {
  background: #ffffff; border: 1px solid #e6e8ef;
  border-radius: 18px; box-shadow: 0 12px 34px rgba(15,23,42,0.08);
}

/* Wizard */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(34,211,238,0.14), transparent 60%),
    radial-gradient(900px 320px at 90% -20%, rgba(249,115,22,0.12), transparent 60%),
    #ffffff;
}
.wizard-overlay.show { display: grid; grid-template-rows: auto 1fr auto; }
.wizard-header {
  border-bottom: 1px solid #e6e8ef;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}
.wizard-body { overflow: auto; padding: 16px; }
.wizard-footer {
  border-top: 1px solid #e6e8ef;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), #fff);
  padding: 10px 16px 10px;
}

.wiz-card {
  max-width: 920px; margin: 0 auto;
  background: #ffffff; border: 1px solid #e6e8ef;
  border-radius: 18px; box-shadow: 0 12px 34px rgba(15,23,42,0.08);
  padding: 18px;
}
@media (min-width: 768px){ .wiz-card { padding: 28px; } }

/* Stepper */
.cd-stepper {
  display: flex; gap: 10px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; padding-bottom: .25rem; margin-bottom: 1rem;
}
.cd-step {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: .5rem .7rem; border-radius: 999px;
  border: 1px solid #e6e8ef; background: #fff; white-space: nowrap;
  font-weight: 600; font-size: .95rem;
}
.cd-step .idx {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #e6e8ef;
  color: #64748b; font-weight: 700; font-size: .8rem; background: #fff;
}
.cd-step.active { border-color: #c7f9ff; background: #ecfeff; }
.cd-step.active .idx { border-color: #99f2ff; color: #0369a1; }
.cd-step.done .idx { color: #059669; border-color: #bbf7d0; }

/* Progress */
.progress { height: 10px; background: #eef2f7; border: 1px solid #e6e8ef; border-radius: 999px; }
.progress-bar { background: linear-gradient(90deg, #22d3ee, #10b981); }

/* Radio options */
.option-card {
  position: relative; border-radius: 14px; border: 1px solid #e6e8ef;
  background: #fff; padding: 14px 14px 14px 46px; cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .06s ease;
  min-height: 56px; display: flex; align-items: center;
}
.option-card:hover { box-shadow: 0 6px 20px rgba(2,132,199,0.05); }
.option-card input[type="radio"] {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; margin: 0;
}
.option-title { font-weight: 700; }
.option-desc { color: #5b6577; font-size: .95rem; }
/* fără :has() – unele parsere vechi nu-l suportă */
.option-card input[type="radio"]:checked ~ .option-title,
.option-card input[type="radio"]:checked ~ .option-desc {
  /* highlight text când e selectat */
  text-shadow: 0 0 0 rgba(0,0,0,0); /* no-op – doar ca exemplu */
  /* dacă vrei contur pe card la checked, adaugă o clasă cu JS */
}

/* Footer */
footer.footer-grad { margin-top: auto; }
.footer-grad {
  background:
    radial-gradient(900px 250px at 15% -10%, rgba(45,212,191,0.06), transparent 60%),
    radial-gradient(900px 250px at 85% -10%, rgba(250,204,21,0.05), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.6), #ffffff);
  border-top: 1px solid #e6e8ef;
  color: #0f172a;
}
.footer-link {
  color: #0f172a; text-decoration: none; border-bottom: 1px dashed transparent;
  transition: color .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: .9;
}
.footer-link:hover { color: #000; border-color: rgba(15,23,42,0.25); opacity: 1; }
.text-muted-300 { color: #5b6577 !important; }

/* Exit (red) */
.btn-exit {
  background: #dc2626; color: #fff; border: none; font-weight: 600;
  box-shadow: 0 4px 10px rgba(220,38,38,0.25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-exit:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(220,38,38,0.35); }
.btn-exit:focus { outline: none; box-shadow: 0 0 0 .25rem rgba(220,38,38,0.3); }

/* Mobile buttons: stacked & slim */
@media (max-width: 576px) {
  .cta-buttons { flex-direction: column !important; align-items: stretch !important; }
  .cta-buttons .btn { width: 100%; font-size: 1rem; padding: 0.65rem 1rem; border-radius: 8px; }
}

/* STEP 8 — stil “ENTER REG” (buton galben) */
section.wiz-pane[data-step="8"] .uk-plate-wrap{
  width: 42% !important;           /* mereu 42% pe mobil + desktop */
  margin: 0 auto !important;       /* centrat */
}

section.wiz-pane[data-step="8"] .uk-plate{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;                    /* compact, ca în poză */
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #9EA114;       /* contur verde-oliv */
  background: linear-gradient(180deg,#F8F03C 0%, #D9DC3A 100%); /* galben cu ușor gradient */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),  /* highlight sus */
    0 2px 6px rgba(0,0,0,.18);            /* umbră discretă */
  position: relative;
}

/* ascundem banda UK pentru acest look */
section.wiz-pane[data-step="8"] .uk-plate-band{ display: none !important; }

/* input ca text centrat, bold, uppercase, fără borduri */
section.wiz-pane[data-step="8"] .uk-plate-input.form-control{
  flex: 1 1 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  height: 28px;                    /* mai mic pentru container scund */
  line-height: 28px;
  padding: 0;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1rem;                 /* ajustează la 1.05rem dacă vrei mai mare */
  letter-spacing: 1.6px;           /* look “plăcuță” */
  color: #5E5E15;                  /* text închis ca în poză */
}

/* placeholder = “ENTER REG” look */
section.wiz-pane[data-step="8"] .uk-plate-input.form-control::placeholder{
  color: rgba(94,94,21,.95);
  opacity: 1;
}

/* hover/focus pentru feedback */
section.wiz-pane[data-step="8"] .uk-plate:hover{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 3px 10px rgba(0,0,0,.22);
}
section.wiz-pane[data-step="8"] .uk-plate:focus-within{
  border-color: #8C8F0F;
  box-shadow:
    0 0 0 3px rgba(240,240,120,.35),
    inset 0 1px 0 rgba(255,255,255,.45);
}

  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  color: #111;
}
section.wiz-pane[data-step="8"] .uk-plate-input.form-control::placeholder{
  color: rgba(0,0,0,.45);
}

/* ===== desktop ===== */
@media (min-width: 992px){
  section.wiz-pane[data-step="8"] .uk-plate{
    height: 42px;               /* ↓ de la 50px */
    padding: 5px 8px;           /* compact */
    border-radius: 10px;
  }
  section.wiz-pane[data-step="8"] .uk-plate-band{
    width: 44px; 
    min-width: 44px;
  }
  section.wiz-pane[data-step="8"] .uk-plate-input.form-control{
    font-size: 17px;
    /* lăsăm aceeași formulă ca pe mobil pentru 7 chars: */
    width: calc(7ch + 6px) !important;
    min-width: calc(7ch + 6px) !important;
    max-width: calc(7ch + 6px) !important;
  }
}
