/* MTN Dự Toán Sân Vườn v2 — giao diện theo brand Nam Thắng */
.mtndt {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  font-family: inherit;
  line-height: 1.5;
}
.mtndt-head {
  background: #14532d;
  color: #ffffff;
  padding: 22px 26px;
}
.mtndt-head h3 {
  margin: 0 0 6px;
  font-size: 1.35em;
  color: #ffffff;
  line-height: 1.3;
}
.mtndt-head p {
  margin: 0;
  font-size: 0.92em;
  opacity: 0.92;
}
.mtndt-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 26px 0;
}
.mtndt-tab {
  flex: 1;
  border: 2px solid #d1d5db;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #f3f4f6;
  color: #374151;
  padding: 12px 10px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.mtndt-tab.is-active {
  background: #ffffff;
  color: #14532d;
  border-color: #16a34a;
  border-bottom-color: #ffffff;
}
.mtndt-panel {
  display: none;
  padding: 14px 26px 0;
  border-top: 2px solid #16a34a;
}
.mtndt-panel.is-active { display: block; }
.mtndt-const-desc {
  margin: 0 0 12px;
  font-size: 0.92em;
  color: #374151;
}
.mtndt-const-group {
  margin-bottom: 14px;
}
.mtndt-const-group-title {
  font-weight: 800;
  color: #14532d;
  border-left: 4px solid #16a34a;
  padding-left: 10px;
  margin: 0 0 8px;
  font-size: 1.02em;
}
.mtndt-step-label {
  font-weight: 700;
  color: #1f2937;
  margin: 14px 0 8px;
  font-size: 1.02em;
}
.mtndt-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.mtndt-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
  background: #fafbfc;
}
.mtndt-type input { display: none; }
.mtndt-type-icon { font-size: 1.7em; line-height: 1.2; }
.mtndt-type-label { font-size: 0.86em; font-weight: 600; color: #374151; }
.mtndt-type.is-active { border-color: #16a34a; background: #f0fdf4; }
.mtndt-type.is-active .mtndt-type-label { color: #14532d; }
.mtndt-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.mtndt-pkg em {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: #15803d;
  font-size: 0.9em;
  margin-top: 4px;
}
.mtndt-tier-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.mtndt-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.9em;
  border-bottom: 1px solid #f1f3f5;
  background: #fafbfc;
}
.mtndt-tier-row:nth-child(odd) { background: #ffffff; }
.mtndt-tier-row strong { color: #14532d; white-space: nowrap; }
.mtndt-tier-note { font-size: 0.8em; color: #6b7280; margin: 4px 0 12px; }
.mtndt-design-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.mtndt-design-area .mtndt-area { max-width: 220px; }
.mtndt-design-price { font-size: 1.05em; }
.mtndt-pkg {
  display: block;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.mtndt-pkg input { display: none; }
.mtndt-pkg span { display: block; font-weight: 700; color: #14532d; font-size: 1em; }
.mtndt-pkg small { display: block; color: #6b7280; font-size: 0.78em; margin-top: 3px; }
.mtndt-pkg.is-active { border-color: #16a34a; background: #f0fdf4; }
.mtndt-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}
.mtndt-item {
  display: grid;
  grid-template-columns: 1fr 110px 120px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #eef0f2;
  border-radius: 8px;
  background: #fafbfc;
}
.mtndt-const-item {
  grid-template-columns: 1fr 170px 100px 110px;
}
.mtndt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mtndt-check input { width: 17px; height: 17px; accent-color: #16a34a; cursor: pointer; }
.mtndt-name { font-size: 0.9em; font-weight: 600; color: #1f2937; }
.mtndt-area, .mtndt-opt {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.9em;
  background: #ffffff;
}
.mtndt-area:disabled, .mtndt-opt:disabled { background: #f3f4f6; color: #9ca3af; }
.mtndt-price { font-size: 0.85em; font-weight: 700; color: #14532d; text-align: right; white-space: nowrap; }
.mtndt-total {
  margin: 16px 26px 0;
  padding: 16px 18px;
  background: #f0fdf4;
  border: 1px dashed #16a34a;
  border-radius: 10px;
  text-align: center;
}
.mtndt-total-label { font-size: 0.9em; color: #374151; }
.mtndt-total-break {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.9em;
  color: #374151;
  margin-top: 2px;
}
.mtndt-total-break strong { color: #14532d; }
.mtndt-total-value { font-size: 1.7em; font-weight: 800; color: #14532d; margin: 4px 0 2px; }
.mtndt-total-note { font-size: 0.78em; color: #6b7280; }
.mtndt-lead {
  margin: 14px 26px 24px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.mtndt-lead h4 { margin: 0 0 12px; font-size: 1.05em; color: #14532d; }
.mtndt-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mtndt-lead input[type="text"], .mtndt-lead input[type="tel"], .mtndt-lead textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95em;
  background: #ffffff;
}
.mtndt-lead textarea { min-height: 64px; resize: vertical; margin-bottom: 10px; }
.mtndt-submit {
  display: inline-block;
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1.02em;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.mtndt-submit:hover { background: #15803d; }
.mtndt-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.mtndt-msg { margin-top: 10px; font-size: 0.92em; }
.mtndt-msg.ok { color: #16a34a; }
.mtndt-msg.error { color: #dc2626; }
.mtndt-hotline { margin: 10px 0 0; font-size: 0.9em; color: #374151; text-align: center; }
.mtndt-hotline a { color: #14532d; }

@media (max-width: 767px) {
  .mtndt-tabs { padding: 12px 16px 0; }
  .mtndt-panel { padding: 12px 16px 0; }
  .mtndt-types { grid-template-columns: repeat(2, 1fr); }
  .mtndt-packages { grid-template-columns: 1fr; }
  .mtndt-items { grid-template-columns: 1fr; }
  .mtndt-item { grid-template-columns: 1fr 90px 100px; }
  .mtndt-const-item { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mtndt-const-item .mtndt-opt, .mtndt-const-item .mtndt-area { grid-column: auto; }
  .mtndt-total { margin: 12px 16px 0; }
  .mtndt-lead { margin: 12px 16px 18px; padding: 14px; }
  .mtndt-lead-row { grid-template-columns: 1fr; }
  .mtndt-head { padding: 16px; }
}
