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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #222;
}

.mp-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.mp-header {
  text-align: center;
  margin-bottom: 16px;
}

.mp-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.mp-header p {
  margin: 4px 0 0;
  color: #555;
}

/* steps indicator */

.mp-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mp-step-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: #fff;
  color: #999;
  transition: all 0.2s ease;
}

.mp-step-bullet.active {
  border-color: #ff5a5f;
  background: #ff5a5f;
  color: #fff;
}

.mp-step-line {
  width: 40px;
  height: 2px;
  background: #ddd;
}

/* form */

.mp-form {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mp-step {
  display: none;
}

.mp-step.active {
  display: block;
}

.mp-step h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* fields */

.mp-field {
  margin-bottom: 12px;
}

.mp-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.mp-field input[type="text"],
.mp-field input[type="email"],
.mp-field input[type="tel"],
.mp-field input[type="url"],
.mp-field input[type="number"],
.mp-field input[type="file"],
.mp-field textarea,
.mp-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d4da;
  font-size: 0.95rem;
}

.mp-field textarea {
  resize: vertical;
}

.mp-field input:focus,
.mp-field textarea:focus,
.mp-field select:focus {
  outline: none;
  border-color: #ff5a5f;
  box-shadow: 0 0 0 1px rgba(255, 90, 95, 0.1);
}

.mp-row {
  display: flex;
  gap: 12px;
}

.mp-row .mp-field {
  flex: 1;
}

@media (max-width: 600px) {
  .mp-row {
    flex-direction: column;
  }
}

.mp-checkbox-group label {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  margin-right: 8px;
  gap: 6px;
}

.mp-checkbox-group input[type="checkbox"],
.mp-checkbox-group input[type="radio"] {
  transform: scale(1.1);
}

.mp-hint {
  font-size: 0.8rem;
  color: #777;
}

/* contract */

.mp-contract {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f8fa;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* buttons */

.mp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.mp-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.mp-btn.primary {
  background: #ff5a5f;
  color: #fff;
}

.mp-btn.secondary {
  background: #edf0f3;
  color: #222;
}

.mp-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* file preview */

.mp-file-preview {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-file-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* success */

.mp-success {
  display: none;
  text-align: center;
  padding: 24px 12px;
}

.mp-success.active {
  display: block;
}
