:root {
  --mvmv-green: #5fae2d;
  --mvmv-green-dark: #3d7d19;
  --mvmv-ink: #18232d;
  --mvmv-muted: #66727d;
  --mvmv-line: #dce4d7;
  --mvmv-soft: #f5f8f2;
  --mvmv-danger: #b42318;
  --mvmv-warning: #9a6700;
}

.mvmv-shell,
.mvmv-shell * { box-sizing: border-box; }
.mvmv-shell {
  max-width: 1080px;
  margin: 28px auto;
  color: var(--mvmv-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  border: 1px solid var(--mvmv-line);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(21, 35, 18, .09);
  overflow: hidden;
}
.mvmv-header {
  padding: clamp(26px, 5vw, 52px);
  background: linear-gradient(135deg, #18232d 0%, #253730 60%, #3f7d20 100%);
  color: #fff;
}
.mvmv-kicker { font-size: 12px; font-weight: 850; letter-spacing: .14em; color: #bfe99f; text-transform: uppercase; }
.mvmv-header h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; color: #fff; }
.mvmv-header p { margin: 0; max-width: 830px; color: #e3eadf; font-size: 16px; line-height: 1.55; }
.mvmv-header-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mvmv-chip { display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 13px; background: rgba(255,255,255,.08); }
.mvmv-form { padding: clamp(20px, 4.5vw, 48px); }
.mvmv-section { margin: 0 0 34px; padding: 0; border: 0; }
.mvmv-section legend {
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--mvmv-green);
  font-size: 21px;
  font-weight: 850;
  color: var(--mvmv-ink);
}
.mvmv-section-note { margin: -9px 0 19px; color: var(--mvmv-muted); font-size: 13px; line-height: 1.5; }
.mvmv-grid { display: grid; gap: 18px; }
.mvmv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mvmv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mvmv-span-2 { grid-column: 1 / -1; }
.mvmv-field { display: block; margin-bottom: 18px; }
.mvmv-field > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 760; }
.mvmv-required { color: var(--mvmv-danger); }
.mvmv-field small { display: block; margin-top: 6px; color: var(--mvmv-muted); font-size: 12px; line-height: 1.4; }
.mvmv-field input[type="text"],
.mvmv-field input[type="tel"],
.mvmv-field input[type="email"],
.mvmv-field input[type="number"],
.mvmv-field input[type="date"],
.mvmv-field input[type="datetime-local"],
.mvmv-field select,
.mvmv-field textarea {
  width: 100%;
  border: 1px solid #bfc9ba;
  border-radius: 9px;
  background: #fff;
  color: var(--mvmv-ink);
  padding: 12px 13px;
  font: inherit;
  line-height: 1.35;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mvmv-field textarea { resize: vertical; min-height: 96px; }
.mvmv-field input:focus,
.mvmv-field select:focus,
.mvmv-field textarea:focus {
  outline: none;
  border-color: var(--mvmv-green-dark);
  box-shadow: 0 0 0 3px rgba(95, 174, 45, .17);
}
.mvmv-field input.mvmv-invalid,
.mvmv-field select.mvmv-invalid,
.mvmv-field textarea.mvmv-invalid,
.mvmv-invalid { border-color: var(--mvmv-danger) !important; background: #fff8f7; }
.mvmv-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mvmv-inline > input { flex: 1 1 260px; }
.mvmv-button,
.mvmv-secondary,
.mvmv-danger-button {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s, opacity .12s, background .12s;
}
.mvmv-button { background: var(--mvmv-green-dark); color: #fff; }
.mvmv-secondary { background: #edf3e9; color: #29451f; border: 1px solid #c9d8c1; }
.mvmv-danger-button { background: #fff1f0; color: var(--mvmv-danger); border: 1px solid #f1c4bf; }
.mvmv-button:hover,
.mvmv-secondary:hover,
.mvmv-danger-button:hover { transform: translateY(-1px); }
.mvmv-button:disabled { cursor: wait; opacity: .65; transform: none; }
.mvmv-location-status { margin-top: 8px; min-height: 20px; color: var(--mvmv-muted); font-size: 13px; }
.mvmv-location-status.is-success { color: var(--mvmv-green-dark); }
.mvmv-location-status.is-error { color: var(--mvmv-danger); }
.mvmv-note,
.mvmv-warning,
.mvmv-success {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.mvmv-note { background: #f4f8f1; border: 1px solid #d7e4d0; }
.mvmv-warning { background: #fff8e7; border: 1px solid #ead6a2; color: #624500; }
.mvmv-success { background: #eef8e9; border: 1px solid #cce5bf; color: #284d17; }
.mvmv-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  margin: 0 0 11px;
  border: 1px solid var(--mvmv-line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}
.mvmv-checkbox input { margin-top: 3px; flex: 0 0 auto; }
.mvmv-checkbox strong { color: var(--mvmv-ink); }
.mvmv-operator-box {
  border: 1px solid var(--mvmv-line);
  border-radius: 12px;
  padding: 18px;
  background: var(--mvmv-soft);
  margin-bottom: 16px;
}
.mvmv-operator-box h4 { margin: 0 0 15px; font-size: 17px; }
.mvmv-operator-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mvmv-additional-operators { margin-top: 16px; }
.mvmv-hidden { display: none !important; }
.mvmv-condition-wrap { overflow-x: auto; border: 1px solid var(--mvmv-line); border-radius: 12px; }
.mvmv-condition-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.mvmv-condition-table th,
.mvmv-condition-table td { padding: 13px 12px; border-bottom: 1px solid var(--mvmv-line); vertical-align: middle; }
.mvmv-condition-table th { text-align: left; background: var(--mvmv-soft); font-size: 13px; }
.mvmv-condition-table tr:last-child td { border-bottom: 0; }
.mvmv-condition-table td:first-child { font-weight: 700; width: 48%; }
.mvmv-radio { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; white-space: nowrap; font-size: 13px; }
.mvmv-photo-drop {
  border: 2px dashed #aebea6;
  border-radius: 13px;
  padding: 22px;
  background: #fafcf9;
  text-align: center;
}
.mvmv-photo-drop input[type="file"] { max-width: 100%; }
.mvmv-photo-help { color: var(--mvmv-muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.mvmv-photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.mvmv-preview-item { border: 1px solid var(--mvmv-line); border-radius: 9px; overflow: hidden; background: #fff; }
.mvmv-preview-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mvmv-preview-item span { display: block; padding: 7px 8px; font-size: 11px; color: var(--mvmv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvmv-signature-wrap { border: 1px solid #bfc9ba; border-radius: 12px; background: #fff; overflow: hidden; }
.mvmv-signature-pad { display: block; width: 100%; height: 210px; touch-action: none; cursor: crosshair; background: repeating-linear-gradient(0deg,#fff,#fff 34px,#f0f3ed 35px); }
.mvmv-signature-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--mvmv-line); background: var(--mvmv-soft); }
.mvmv-signature-actions span { color: var(--mvmv-muted); font-size: 12px; }
.mvmv-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.mvmv-submit { min-width: 230px; font-size: 16px; padding: 14px 20px; }
.mvmv-form-status { flex: 1 1 320px; min-height: 24px; font-weight: 700; }
.mvmv-form-status.is-error { color: var(--mvmv-danger); }
.mvmv-form-status.is-success { color: var(--mvmv-green-dark); }
.mvmv-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mvmv-charcount { display: block; text-align: right; margin-top: 5px; color: var(--mvmv-muted); font-size: 12px; }
.mvmv-terms-link { color: var(--mvmv-green-dark); font-weight: 800; text-decoration: underline; }

@media (max-width: 760px) {
  .mvmv-shell { margin: 12px auto; border-radius: 13px; }
  .mvmv-grid-2,
  .mvmv-grid-3 { grid-template-columns: 1fr; }
  .mvmv-span-2 { grid-column: auto; }
  .mvmv-header { padding: 28px 22px; }
  .mvmv-form { padding: 22px 16px 30px; }
  .mvmv-section legend { font-size: 19px; }
  .mvmv-condition-wrap { border: 0; overflow: visible; }
  .mvmv-condition-table,
  .mvmv-condition-table tbody,
  .mvmv-condition-table tr,
  .mvmv-condition-table td { display: block; width: 100%; min-width: 0; }
  .mvmv-condition-table thead { display: none; }
  .mvmv-condition-table tr { border: 1px solid var(--mvmv-line); border-radius: 11px; margin-bottom: 12px; overflow: hidden; }
  .mvmv-condition-table td { border: 0; padding: 10px 12px; }
  .mvmv-condition-table td:first-child { width: 100%; background: var(--mvmv-soft); }
  .mvmv-radio { margin-right: 14px; }
  .mvmv-signature-pad { height: 180px; }
  .mvmv-submit { width: 100%; }
}
