.mtr-wrap {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.mtr-wrap * {
  box-sizing: border-box;
}

.mtr-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.mtr-notice p {
  margin: 0;
}

.mtr-notice-success {
  border: 1px solid #b7d7b7;
  background: #f0faf0;
  color: #225522;
}

.mtr-notice-error {
  border: 1px solid #e2b3b3;
  background: #fff4f4;
  color: #8a1f1f;
}

.mtr-field-error {
  border-color: #b42318 !important;
  background: #fffafa !important;
}

.mtr-field-message {
  display: block;
  min-height: 15px;
  margin-top: 3px;
  color: #b42318;
  font-size: 11px;
  line-height: 15px;
}

.mtr-success-card {
  max-width: 820px;
  margin: 24px auto;
  padding: 34px;
  border: 1px solid #d8e4dc;
  border-radius: 8px;
  background: #fbfdfb;
  color: #1f2d24;
  box-shadow: 0 18px 45px rgba(22, 44, 29, 0.08);
}

.mtr-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #1d6f3b;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.mtr-success-kicker {
  margin: 0 0 8px;
  color: #627067;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtr-success-card h2 {
  margin: 0 0 12px;
  color: #1d2620;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
}

.mtr-success-message {
  max-width: 680px;
  margin: 0 0 22px;
  color: #46524a;
  font-size: 15px;
  line-height: 1.7;
}

.mtr-success-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ece6;
}

.mtr-success-steps div {
  padding: 14px;
  border: 1px solid #e1e8e3;
  border-radius: 6px;
  background: #fff;
}

.mtr-success-steps strong,
.mtr-success-steps span {
  display: block;
}

.mtr-success-steps strong {
  margin-bottom: 6px;
  color: #1f2d24;
  font-size: 13px;
}

.mtr-success-steps span {
  color: #5a665e;
  font-size: 12px;
  line-height: 1.5;
}

.mtr-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtr-same {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.mtr-grid,
.mtr-grid-3,
.mtr-full {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 8px;
}

.mtr-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mtr-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mtr-full {
  grid-template-columns: 1fr;
}

.mtr-hidden {
  display: none !important;
}

.mtr-field-wrap {
  display: block;
  min-width: 0;
}

.mtr-wrap input[type="text"],
.mtr-wrap input[type="email"],
.mtr-wrap input[type="tel"],
.mtr-wrap input[type="url"],
.mtr-wrap select {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 42px;
}

.mtr-wrap input:focus,
.mtr-wrap select:focus {
  outline: none;
  border-color: #999;
  box-shadow: none;
}

.mtr-file-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}

.mtr-file-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.mtr-file-field em {
  color: #888;
  font-size: 11px;
}

.mtr-wrap input[type="file"] {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: #fafafa;
  color: #555;
  font-size: 13px;
  cursor: pointer;
}

.mtr-yn-table {
  margin: 0 0 8px;
}

.mtr-yn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mtr-yn-row > span:first-child {
  flex: 0 0 260px;
  color: #333;
  font-size: 14px;
}

.mtr-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.mtr-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}

.mtr-yn-row > .mtr-field-wrap {
  flex: 1 1 260px;
  min-width: 180px;
}

.mtr-ref-label {
  margin: 16px 0 8px;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

.mtr-submit {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px 36px;
  border: 0;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.mtr-submit:hover {
  background: #333;
}

@media (max-width: 768px) {
  .mtr-success-card {
    padding: 24px;
  }

  .mtr-success-steps {
    grid-template-columns: 1fr;
  }

  .mtr-grid {
    grid-template-columns: 1fr;
  }

  .mtr-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .mtr-file-row {
    grid-template-columns: 1fr;
  }

  .mtr-yn-row > span:first-child {
    flex-basis: 160px;
  }
}

@media (max-width: 480px) {
  .mtr-grid-3 {
    grid-template-columns: 1fr;
  }

  .mtr-yn-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mtr-yn-row > span:first-child {
    flex: none;
  }
}
