.me-form-shell {
  max-width: 720px;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.me-form-shell h2 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.me-form-shell.me-card {
  border: 1px solid var(--me-border, #e8e6e3);
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
  padding: 28px 24px;
  transition: none;
  transform: none;
}

.me-form-shell.me-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--me-border, #e8e6e3);
}

/* Progress bar for multi-step forms — do NOT reuse .me-steps (landing process) */
.me-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.me-progress__seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--me-border, #e8e6e3);
}
.me-progress__seg.is-active,
.me-progress__seg.is-done {
  background: var(--me-accent, #ee7300);
}
.me-progress__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: -12px 0 20px;
  font-size: 12px;
  color: var(--me-muted, #5f6b76);
  font-weight: 600;
}
.me-progress__labels span.is-active { color: var(--me-text, #1f1f1f); }

.me-step-panel[hidden] { display: none; }

.me-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.me-form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.me-form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
}

.me-form-actions > .me-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  box-sizing: border-box;
}

.me-form-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #6f6f73;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-sizing: border-box;
}

/* Align secure line under the primary button (right 50%) on desktop */
.me-form-footer:has(.me-btn-ghost) .me-form-secure {
  align-self: center;
  width: calc((100% - 12px) / 2);
  margin-top: 4px;
}

.me-form-footer:not(:has(.me-btn-ghost)) .me-form-secure {
  width: 100%;
  align-self: stretch;
}

.me-form-secure__icon {
  display: inline-flex;
  color: #c9a227;
  flex-shrink: 0;
}

.me-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.me-field-row .me-field {
  flex: 1 1 160px;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .me-form-actions {
    flex-direction: column;
  }

  .me-form-actions > .me-btn {
    flex: 0 0 auto;
    width: 100%;
  }

  .me-form-footer:has(.me-btn-ghost) .me-form-secure {
    width: 100%;
    align-self: stretch;
  }

  .me-field-row {
    flex-direction: column;
  }

  .me-field-row .me-field {
    flex: 1 1 auto;
    width: 100%;
  }
}

.me-field { margin-bottom: 16px; }
.me-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f1f1f;
}
.me-input,
.me-select,
.me-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--me-border, #e8e6e3);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #1f1f1f;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.me-input:focus,
.me-select:focus,
.me-textarea:focus {
  border-color: var(--me-accent, #ee7300);
  box-shadow: 0 0 0 3px rgba(238, 115, 0, 0.18);
}
.me-consent input[type="checkbox"] {
  accent-color: var(--me-accent, #ee7300);
}
.me-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--me-accent, #ee7300);
  outline-offset: 2px;
}
.me-btn:focus-visible {
  outline: 2px solid var(--me-accent, #ee7300);
  outline-offset: 2px;
}
.me-textarea { resize: vertical; min-height: 120px; }

.me-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.me-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--me-border, #e8e6e3);
  border-radius: 10px;
  background: #fafaf8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.me-chip input { margin: 0; }
.me-chip:has(input:checked) {
  border-color: var(--me-accent, #ee7300);
  background: #fff9f3;
  color: #1f1f1f;
}

.me-alert {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--me-border, #e8e6e3);
  margin-bottom: 16px;
}
.me-alert-success {
  border-color: #2f855a;
  color: #2f855a;
  background: #eaf5ef;
}
.me-alert-error {
  border-color: #d64545;
  color: #d64545;
  background: #fdf2f2;
}

.me-partner-single {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}
.me-partner-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--me-accent, #ee7300);
  font-weight: 700;
  font-size: 14px;
}
.me-partner-seal img {
  display: block;
  width: 72px;
  height: 72px;
}
.me-response {
  max-width: 480px;
  margin: 64px auto;
}
