.maylanh-calc-box {
  max-width: 400px;
  margin: 30px auto;
  padding: 24px 18px 20px 18px;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', Arial, sans-serif;
}
.maylanh-calc-box h3 {
  text-align: center;
  color: #1a237e;
  margin-bottom: 18px;
  font-weight: 600;
}
.maylanh-calc-box label {
  display: block;
  margin-bottom: 8px;
  color: #222;
  font-size: 1rem;
  font-weight: 500;
}
.maylanh-calc-box input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.maylanh-calc-box input[type="number"]:focus {
  border-color: #1976d2;
  outline: none;
}
.maylanh-calc-box button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(25,118,210,0.08);
}
.maylanh-calc-box button:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1e88e5 100%);
}

/* Popup styles */
.ml_popup_overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.ml_popup_content {
  background: #fff;
  border-radius: 10px;
  padding: 28px 22px 18px 22px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 6px 32px rgba(25,118,210,0.15);
  position: relative;
  animation: popupIn 0.25s;
  margin-top: 200px;
}
@keyframes popupIn {
  from { transform: scale(0.8); opacity: 0;}
  to { transform: scale(1); opacity: 1;}
}
.ml_popup_close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.6em;
  color: #1976d2;
  cursor: pointer;
}
.ml_popup_result {
  color: #17406a;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 50px;
  word-break: break-word;
}
.ml_popup_result b {
  color: #1976d2;
}
@media (max-width: 600px) {
  .maylanh-calc-box {
    max-width: 98vw;
    padding: 14px 6vw 18px 6vw;
  }
  .maylanh-calc-box h3 {
    font-size: 1.12rem;
  }
  .ml_popup_content {
    min-width: 90vw;
    padding: 16px 6vw 12px 6vw;
  }
}
