/* ================================================================
   JZ FORMS — Scoped Styles
   All selectors prefixed with .jz-msf (multi-step) or .jz-scf (sidebar)
   to avoid conflicts with other CSS/forms on the page.
   ================================================================ */

/* ── Shared Variables ── */
:root {
  --jz-primary: #0657a7;
  --jz-primary-rgb: 6, 87, 167;
  --jz-dark: #1a1a2e;
  --jz-font-heading: 'Proxima Nova', sans-serif;
  --jz-font-body: 'Museo Sans', sans-serif;
}


/* ================================================================
   MULTI-STEP FORM  (.jz-msf)
   ================================================================ */

.jz-msf {
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  overflow: hidden;
  font-family: var(--jz-font-body);
  box-sizing: border-box;
}
.jz-msf *, .jz-msf *::before, .jz-msf *::after { box-sizing: border-box; }

/* Header / Progress */
.jz-msf .jz-msf__header {
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  padding: 24px 32px 16px;
}
.jz-msf .jz-msf__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.jz-msf .jz-msf__step-label {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}
.jz-msf .jz-msf__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.jz-msf .jz-msf__dot {
  height: 8px;
  border-radius: 999px;
  transition: all 0.3s;
}
.jz-msf .jz-msf__dot--active { width: 24px; background: var(--jz-primary); }
.jz-msf .jz-msf__dot--done   { width: 8px;  background: rgba(var(--jz-primary-rgb), 0.6); }
.jz-msf .jz-msf__dot--pending{ width: 8px;  background: #d1d5db; }

.jz-msf .jz-msf__progress-track {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.jz-msf .jz-msf__progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--jz-primary);
  transition: width 0.5s ease-out;
}

/* Body */
.jz-msf .jz-msf__body { padding: 32px; }

/* Steps */
.jz-msf .jz-msf__step { display: none; }
.jz-msf .jz-msf__step.is-active { display: block; }
.jz-msf .jz-msf__step h3 {
  font-family: var(--jz-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--jz-dark);
  margin: 0 0 20px;
  line-height: 1.3;
}
.jz-msf .jz-msf__req { color: #ef4444; }

/* Option cards */
.jz-msf .jz-msf__options {
  display: grid;
  gap: 12px;
}
.jz-msf .jz-msf__options--2col { grid-template-columns: 1fr 1fr; }
.jz-msf .jz-msf__options--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 580px) {
  .jz-msf .jz-msf__options--3col { grid-template-columns: 1fr 1fr; }
}

.jz-msf .jz-msf__option {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  line-height: 1.4;
}
.jz-msf .jz-msf__option:hover {
  border-color: var(--jz-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.jz-msf .jz-msf__option.is-selected {
  border-color: var(--jz-primary);
  background: var(--jz-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--jz-primary-rgb), 0.25);
}
.jz-msf .jz-msf__check {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  display: none;
  color: rgba(255,255,255,0.8);
}
.jz-msf .jz-msf__option.is-selected .jz-msf__check { display: block; }

/* Form fields */
.jz-msf .jz-msf__fields { display: grid; gap: 16px; }
.jz-msf .jz-msf__fields--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 580px) {
  .jz-msf .jz-msf__fields--2col { grid-template-columns: 1fr; }
}

.jz-msf .jz-msf__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.jz-msf .jz-msf__input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: rgba(249,250,251,0.5);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.jz-msf .jz-msf__input::placeholder { color: #9ca3af; }
.jz-msf .jz-msf__input:focus {
  outline: none;
  border-color: var(--jz-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--jz-primary-rgb), 0.15);
}
.jz-msf .jz-msf__input.has-error { border-color: #f87171; }
.jz-msf textarea.jz-msf__input { resize: vertical; min-height: 100px; }

/* Radio row */
.jz-msf .jz-msf__radio-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
}
.jz-msf .jz-msf__radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  margin-bottom: 0;
}
.jz-msf .jz-msf__radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--jz-primary);
}

/* Consent checkbox */
.jz-msf .jz-msf__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.jz-msf .jz-msf__consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--jz-primary);
  flex-shrink: 0;
}
.jz-msf .jz-msf__consent label {
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 0;
}

/* Error messages */
.jz-msf .jz-msf__error {
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}
.jz-msf .jz-msf__error.is-visible { display: block; }

/* Buttons */
.jz-msf .jz-msf__buttons { display: grid; gap: 12px; margin-top: 32px; }
.jz-msf .jz-msf__buttons--single { grid-template-columns: 1fr; }
.jz-msf .jz-msf__buttons--double { grid-template-columns: 1fr 1fr; }

.jz-msf .jz-msf__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
}
.jz-msf .jz-msf__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.jz-msf .jz-msf__btn--prev {
  border: 2px solid #d1d5db;
  background: #fff;
  color: #374151;
}
.jz-msf .jz-msf__btn--prev:hover { border-color: #9ca3af; background: #f9fafb; }

.jz-msf .jz-msf__btn--next,
.jz-msf .jz-msf__btn--submit {
  background: var(--jz-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--jz-primary-rgb), 0.25);
}
.jz-msf .jz-msf__btn--next:hover,
.jz-msf .jz-msf__btn--submit:hover {
  background: rgba(var(--jz-primary-rgb), 0.9);
  box-shadow: 0 6px 20px rgba(var(--jz-primary-rgb), 0.3);
}
.jz-msf .jz-msf__btn--submit:disabled { opacity: 0.6; box-shadow: none; cursor: default; }

/* Spinner */
@keyframes jz-msf-spin { to { transform: rotate(360deg); } }
.jz-msf .jz-msf__spinner { width: 16px; height: 16px; animation: jz-msf-spin 0.8s linear infinite; }

/* Success */
.jz-msf .jz-msf__success { display: none; text-align: center; padding: 48px 32px; }
.jz-msf .jz-msf__success.is-visible { display: block; }
.jz-msf .jz-msf__success-icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: #f0fdf4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.jz-msf .jz-msf__success-icon svg { width: 40px; height: 40px; color: #22c55e; }
.jz-msf .jz-msf__success h3 {
  font-family: var(--jz-font-heading);
  font-size: 24px; font-weight: 700; color: var(--jz-dark); margin: 0 0 8px;
}
.jz-msf .jz-msf__success p { color: #6b7280; font-size: 15px; margin: 0; }


/* ================================================================
   SIDEBAR CONTACT FORM  (.jz-scf)
   ================================================================ */

.jz-scf {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  font-family: var(--jz-font-body);
  background: #fff;
  box-sizing: border-box;
}
.jz-scf *, .jz-scf *::before, .jz-scf *::after { box-sizing: border-box; }

/* Header */
.jz-scf .jz-scf__header {
  background: linear-gradient(135deg, var(--jz-primary), #044a8a);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jz-scf .jz-scf__header svg { width: 20px; height: 20px; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.jz-scf .jz-scf__header h4 {
  color: #fff;
  font-family: var(--jz-font-heading);
  font-size: 18px; font-weight: 700; margin: 0; padding: 0; line-height: 1.3;
}

/* Body */
.jz-scf .jz-scf__body { padding: 20px; }
.jz-scf .jz-scf__intro { font-size: 14px; color: #6b7280; margin: 0 0 16px; line-height: 1.5; }

/* Form layout */
.jz-scf .jz-scf__form { display: flex; flex-direction: column; gap: 14px; }
.jz-scf .jz-scf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Labels */
.jz-scf .jz-scf__field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 4px;
}
.jz-scf .jz-scf__req { color: #ef4444; }

/* Inputs */
.jz-scf .jz-scf__input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.jz-scf .jz-scf__input::placeholder { color: #9ca3af; }
.jz-scf .jz-scf__input:focus {
  outline: none;
  border-color: var(--jz-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--jz-primary-rgb), 0.12);
}
.jz-scf textarea.jz-scf__input { resize: vertical; min-height: 72px; }

/* Consent */
.jz-scf .jz-scf__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}
.jz-scf .jz-scf__consent input[type="checkbox"] {
  margin-top: 2px; width: 16px; height: 16px;
  accent-color: var(--jz-primary); flex-shrink: 0;
}
.jz-scf .jz-scf__consent label {
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  line-height: 1.45;
}

/* Submit */
.jz-scf .jz-scf__submit {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--jz-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(var(--jz-primary-rgb), 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.jz-scf .jz-scf__submit:hover {
  background: rgba(var(--jz-primary-rgb), 0.9);
  box-shadow: 0 6px 20px rgba(var(--jz-primary-rgb), 0.3);
}
.jz-scf .jz-scf__submit:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* Success */
.jz-scf .jz-scf__success { display: none; text-align: center; padding: 32px 20px; }
.jz-scf .jz-scf__success.is-visible { display: block; }
.jz-scf .jz-scf__success svg { width: 48px; height: 48px; color: #22c55e; margin: 0 auto 12px; display: block; }
.jz-scf .jz-scf__success h4 {
  font-family: var(--jz-font-heading);
  font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px;
}
.jz-scf .jz-scf__success p { font-size: 14px; color: #6b7280; margin: 0; }