body {
  font-family: Arial, sans-serif;
  background-color: #e6f0fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

h1 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-weight: bold;
}

input[type="number"], select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="number"] {
  flex: 2;
}

select {
  flex: 1;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

.toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  padding: 8px 16px;
  background-color: #9ca3af;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle input:checked + .slider {
  background-color: #f59e0b;
}

.toggle input:checked + .slider::before {
  content: 'Flat Discount';
}

.toggle input:not(:checked) + .slider::before {
  content: 'Percentage Discount';
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

button {
  flex: 1;
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #1e40af;
}

.error {
  color: #dc2626;
  text-align: center;
  margin-top: 10px;
}

.results {
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f7ff;
  border-radius: 4px;
  text-align: center;
}

.results p {
  margin: 5px 0;
  color: #2563eb;
  font-size: 1.2em;
  font-weight: bold;
}

.suggestions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-card {
  background-color: #fef3c7;
  padding: 10px;
  border-radius: 4px;
  color: #7c2d12;
  text-align: center;
}

.notification {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.notification.success {
  background-color: #d1fae5;
  color: #065f46;
}

.checkmark {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  margin-right: 10px;
  animation: pop 0.3s ease-in-out;
}

.checkmark::before {
  content: '✔';
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

@keyframes pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.back-button {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.back-button:hover {
  color: #1e40af;
}

.footer-note {
  text-align: center;
  margin-top: 20px;
  color: #4b5563;
  font-size: 0.9em;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #2563eb;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #2563eb;
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}