/* ── Muzyczne Życzenia – Public Form CSS ─── */
.mz-form-wrap *,
.mz-form-wrap *::before,
.mz-form-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.mz-form-wrap {
  --mz-accent:  #FABD00;
  --mz-bg:      #F5F0E8;
  --mz-white:   #FFFFFF;
  --mz-black:   #111111;
  --mz-text:    #1A1A1A;
  --mz-muted:   #888880;
  --mz-border:  #D8D4CC;
  --mz-radius-pill: 999px;
  --mz-radius-md:   10px;
  --mz-radius-lg:   14px;
  --ff-head: 'Lora', 'Georgia', serif;
  --ff-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  font-family: var(--ff-body);
  background:  var(--mz-bg);
  color:       var(--mz-text);
  min-height:  500px;
  font-size:   16px;
  line-height: 1.6;
}

/* ── PROGRESS BAR ── */
.mz-progress-wrap {
  padding: 18px 24px 14px;
  background: var(--mz-bg);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 10;
  transition: border-color .3s;
}
.mz-progress-top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 600px; margin: 0 auto 10px;
  font-size: 13px; color: var(--mz-muted); font-weight: 500;
}
.mz-progress-track {
  max-width: 600px; margin: 0 auto;
  height: 4px; background: #E0DCD4; border-radius: 2px; overflow: hidden;
}
.mz-progress-fill {
  height: 100%; background: var(--mz-accent); border-radius: 2px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── PAGE WRAPPER ── */
.mz-page-wrap {
  max-width: 600px; margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── STAGES ── */
.mz-stage { display: none; }
.mz-stage.mz-active {
  display: flex; flex-direction: column; gap: 0;
  animation: mzFadeUp .35s ease both;
}
@keyframes mzFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── STAGE HEADER ── */
.mz-stage-head { text-align: center; margin-bottom: 36px; }
.mz-stage-head h1 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 700; line-height: 1.2; color: var(--mz-text);
  margin-bottom: 8px;
}
.mz-stage-head p { font-size: 15px; color: var(--mz-muted); }

/* ── FIELDS ── */
.mz-field { margin-bottom: 24px; }
.mz-field-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--mz-text); margin-bottom: 12px;
}
.mz-req { color: #C94A2B; margin-left: 2px; }

/* ── CHIPS ── */
.mz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-chips input[type="radio"],
.mz-chips input[type="checkbox"] { display: none; }
.mz-chips label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: var(--mz-radius-pill);
  border: 1.5px solid var(--mz-border); background: var(--mz-white);
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--mz-text);
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none; white-space: nowrap;
}
.mz-chips label:hover { border-color: #BBBAB4; background: #FAFAF6; }
.mz-chips input:checked + label {
  background: var(--mz-accent); border-color: var(--mz-accent);
  color: var(--mz-black); font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── TEXT INPUTS ── */
.mz-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--mz-border); border-radius: var(--mz-radius-md);
  font-family: var(--ff-body); font-size: 15px; color: var(--mz-text);
  background: var(--mz-white); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.mz-input:focus {
  border-color: var(--mz-accent);
  box-shadow: 0 0 0 3px rgba(var(--_accent-rgb, 250,189,0), .18);
}
.mz-input::placeholder { color: #BCBBB4; }
textarea.mz-input { min-height: 120px; resize: vertical; line-height: 1.65; }

/* ── HINT ── */
.mz-hint {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 10px; font-size: 13px; color: var(--mz-muted); line-height: 1.5;
}
.mz-hint-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.mz-char-count {
  display: flex; justify-content: flex-end;
  font-size: 12px; color: var(--mz-muted); margin-top: 4px;
}

/* ── CHECKBOX FIELD ── */
.mz-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; cursor: pointer;
}
.mz-checkbox-row input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--mz-accent); cursor: pointer;
}

/* ── SELECT ── */
.mz-select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--mz-border); border-radius: var(--mz-radius-md);
  font-family: var(--ff-body); font-size: 15px; color: var(--mz-text);
  background: var(--mz-white); outline: none; cursor: pointer;
}
.mz-select:focus { border-color: var(--mz-accent); }

/* ── SUMMARY ── */
.mz-summary-card {
  border: 1.5px solid var(--mz-border); border-radius: var(--mz-radius-lg);
  overflow: hidden; margin-bottom: 24px; background: var(--mz-white);
}
.mz-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid #F0EDE6; font-size: 14px;
}
.mz-summary-row:last-of-type { border-bottom: none; }
.mz-summary-key  { color: var(--mz-muted); }
.mz-summary-val  { font-weight: 600; max-width: 60%; text-align: right; }
.mz-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--mz-accent);
  border-top: 1.5px solid rgba(0,0,0,.1);
  font-weight: 700; font-size: 17px; color: var(--mz-black);
}

/* ── BUTTON ROW ── */
.mz-btn-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 28px; gap: 12px;
}
.mz-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: var(--mz-radius-pill);
  font-family: var(--ff-body); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, box-shadow .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.mz-btn:active { transform: translateY(1px); }
.mz-btn-next {
  background: var(--mz-accent); color: var(--mz-black); border-color: var(--mz-accent);
}
.mz-btn-next:hover { filter: brightness(.92); }
.mz-btn-back {
  background: transparent; color: var(--mz-muted); border-color: var(--mz-border);
}
.mz-btn-back:hover { background: var(--mz-white); color: var(--mz-text); }
.mz-btn-pay {
  width: 100%; justify-content: center;
  background: var(--mz-black); color: var(--mz-white);
  border-color: var(--mz-black); font-size: 16px; padding: 15px 28px;
  margin-bottom: 14px; border-radius: var(--mz-radius-pill);
}
.mz-btn-pay:hover { background: #333; }

/* ── FOOTER NOTE ── */
.mz-form-footer {
  text-align: center; padding-top: 20px;
  font-size: 12px; color: #BCBBB4; line-height: 1.5;
}
.mz-form-footer a { color: var(--mz-muted); text-decoration: underline; }

/* ── SUCCESS ── */
.mz-success-wrap {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 60px 20px; gap: 16px;
}
.mz-success-emoji { font-size: 56px; }
.mz-success-tag {
  display: inline-block; background: var(--mz-accent);
  color: var(--mz-black); font-weight: 700; font-size: 13px;
  padding: 6px 18px; border-radius: var(--mz-radius-pill);
}
.mz-success-title {
  font-family: var(--ff-head); font-size: 28px; font-weight: 700; color: var(--mz-text);
}
.mz-success-body { font-size: 15px; color: var(--mz-muted); max-width: 360px; line-height: 1.7; }

/* ── LOADING SPINNER ── */
.mz-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.mz-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #E0DCD4; border-top-color: var(--mz-accent);
  animation: mzSpin .7s linear infinite;
}
@keyframes mzSpin { to { transform: rotate(360deg); } }

/* ── OPTIONAL STEP NOTICE ── */
.mz-optional-notice {
  display: flex; align-items: center; gap: 8px;
  background: #FFFBEA; border: 1px solid #F5D670; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #7A5700; margin-bottom: 20px;
}

/* ── FORM GRID (two-col inputs) ── */
.mz-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mz-input-group { margin-bottom: 12px; }
.mz-input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--mz-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }

@media (max-width: 480px) {
  .mz-input-row { grid-template-columns: 1fr; }
  .mz-page-wrap { padding: 32px 16px 60px; }
}
