* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Funnel Sans", sans-serif;
  background-color: blanchedalmond;
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 2px solid #ecf0f1;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2c3e50;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.checkbox-group:hover {
  background-color: #ecf0f1;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #2c3e50;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  user-select: none;
}

.currency-select {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.currency-select label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 2px solid #ecf0f1;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.currency-select input[type="radio"] {
  width: auto;
  margin-right: 8px;
  accent-color: #2c3e50;
}

.currency-select input[type="radio"]:checked + span {
  font-weight: bold;
}

.currency-select label:has(input:checked) {
  border-color: #2c3e50;
  background-color: #f8f9fa;
}

.result {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 10px;
  color: white;
  text-align: center;
  display: none;
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.result.show {
  display: block;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result h2 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.result .price {
  font-size: 36px;
  font-weight: 700;
  margin: 10px 0;
}

.result .breakdown {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

.result .breakdown div {
  margin: 5px 0;
}

button {
  width: 100%;
  padding: 15px 24px;
  background: #2c3e50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.hidden {
  display: none;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.button-group button {
  flex: 1;
}

.receipt-button {
  background: #2ecc71;
}

.receipt-button:hover {
  background: #27ae60;
}

.receipt-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.receipt-modal.show {
  display: flex;
}

.receipt-container {
  background: white;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.receipt-content {
  padding: 40px;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.receipt-header h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 700;
}

.receipt-header .date {
  color: #666;
  font-size: 14px;
}

.receipt-section {
  margin-bottom: 25px;
}

.receipt-section h3 {
  font-size: 16px;
  color: #2c3e50;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row.total {
  border-top: 2px solid #2c3e50;
  border-bottom: none;
  margin-top: 15px;
  padding-top: 15px;
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.receipt-label {
  color: #555;
}

.receipt-value {
  font-weight: 600;
  color: #2c3e50;
}

.receipt-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #333;
  color: #666;
  font-size: 12px;
}

.receipt-actions {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 0 0 10px 10px;
}

.receipt-actions button {
  flex: 1;
}

.print-button {
  background: #2c3e50;
}

.print-button:hover {
  background: #34495e;
}

.close-button {
  background: #95a5a6;
}

.close-button:hover {
  background: #7f8c8d;
}

@media print {
  body * {
    visibility: hidden;
  }
  .receipt-container,
  .receipt-container * {
    visibility: visible;
  }
  .receipt-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }
  .receipt-actions {
    display: none;
  }
}

.homeBtn {
  text-decoration: none;
  color: #2c3e50;
  margin-right: 10px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.homeBtn:hover {
  color: #34495e;
  text-decoration: underline;
}
