/* CFM saját jelszó – bordó / arany, a videótár kézi oldalának palettája. A betű a témáé. */
.cfm-sj {
  --cfm-bordo: #4a0d1b;
  --cfm-tinta: #2b1218;
  --cfm-csendes: #5c3d44;
  --cfm-krem: #fffaf2;
  --cfm-pergam: #f7f1e6;
  --cfm-arany: #d4b47a;
  --cfm-arany-mely: #7a5a28;
  --cfm-hiba: #8c1d32;
  --cfm-jo: #0f5c38;
  --cfm-gyenge: #8c1d32;
  --cfm-kozepes: #a15c28;
  --cfm-eros: #0f5c38;
  box-sizing: border-box;
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.15rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(212, 180, 122, 0.28), rgba(212, 180, 122, 0) 46%),
    var(--cfm-krem);
  color: var(--cfm-tinta);
  border: 1px solid var(--cfm-arany);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(74, 13, 27, 0.08);
  font-family: inherit;
  max-width: 100%;
}

.cfm-sj *,
.cfm-sj *::before,
.cfm-sj *::after { box-sizing: border-box; }

.cfm-sj.is-rejtett,
.cfm-sj[hidden] { display: none !important; }

.cfm-sj-cim {
  /* Méret, súly és betűköz a témáé (a script a „Számlázási adatok” címhez igazítja). */
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.cfm-sj-bevezeto,
.cfm-sj-szabaly,
.cfm-sj-erosseg,
.cfm-sj-egyezes {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cfm-csendes);
}

.cfm-sj-szabaly { margin-bottom: 0.9rem; }

.cfm-sj-mezo { margin: 0 0 0.85rem; }

.cfm-sj-mezo label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cfm-bordo);
}

.cfm-sj-bevitel { position: relative; }

.cfm-sj input[type="password"],
.cfm-sj input[type="text"] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.65rem 3.1rem 0.65rem 0.85rem;
  border: 1px solid rgba(74, 13, 27, 0.32);
  border-radius: 12px;
  background: #fff;
  color: var(--cfm-tinta);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cfm-sj input:focus {
  outline: 3px solid rgba(74, 13, 27, 0.45);
  outline-offset: 1px;
  border-color: var(--cfm-bordo);
}

.cfm-sj input[aria-invalid="true"] { border-color: var(--cfm-hiba); }

.cfm-sj-szem {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cfm-bordo);
  cursor: pointer;
}

.cfm-sj-szem:hover { background: rgba(74, 13, 27, 0.06); }

.cfm-sj-szem:focus-visible {
  outline: 3px solid rgba(74, 13, 27, 0.5);
  outline-offset: 1px;
}

.cfm-sj-szem[aria-pressed="true"] .cfm-sj-ik-nyit,
.cfm-sj-szem[aria-pressed="false"] .cfm-sj-ik-zar { display: none; }

.cfm-sj-mero {
  display: flex;
  gap: 4px;
  height: 8px;
  margin: -0.2rem 0 0.4rem;
}

.cfm-sj-mero i {
  flex: 1 1 0;
  border-radius: 99px;
  background: rgba(74, 13, 27, 0.12);
}

.cfm-sj-mero[data-kitolt="1"] i:nth-child(-n+1) { background: var(--cfm-gyenge); }
.cfm-sj-mero[data-kitolt="2"] i:nth-child(-n+2) { background: var(--cfm-kozepes); }
.cfm-sj-mero[data-kitolt="3"] i:nth-child(-n+3) { background: #c4a15a; }
.cfm-sj-mero[data-kitolt="4"] i:nth-child(-n+4) { background: var(--cfm-eros); }

.cfm-sj-egyezes.is-ok { color: var(--cfm-jo); font-weight: 600; }
.cfm-sj-szabalyhiba {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: -0.45rem 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--cfm-hiba);
}
.cfm-sj-szabalyhiba::before {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: var(--cfm-hiba);
}
.cfm-sj-szabalyhiba[hidden] { display: none; }
.cfm-sj-egyezes.is-hiba { color: var(--cfm-hiba); font-weight: 600; }

.cfm-sj-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .cfm-sj {
    margin: 1rem 0 1.15rem;
    padding: 1rem 0.9rem 0.85rem;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfm-sj,
  .cfm-sj * { transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .cfm-sj { border: 1px solid CanvasText; }
  .cfm-sj-szem:focus-visible,
  .cfm-sj input:focus { outline: 3px solid Highlight; }
}
