/* Basic Layout */
body {
  font-family: 'Arial', sans-serif;
  background: #eee9e9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo */
.logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 100px;
  height: auto;
}

/* Form Container */
#formContainer {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-bottom: 80px;
  width: calc(100% - 20%);
  max-width: 600px;
  min-width: 100px;
}

/* Form Elements */
h1 {
  text-align: center;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #fff;
  appearance: none;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
  width: 100%;
}

button:hover {
  background-color: #45a049;
}

/* Items Container Styles */
/* Items Container Styles */
.item-container {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid #eaeaea;
  transition: background-color 0.2s ease;
}

.item-container:hover {
  background: #f5f5f5;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;  /* Increased from 4px */
}

.item-header {
  margin-bottom: 4px;  /* Increased from 1px */
}

.item-name {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;  /* Added margin */
}

.item-qty {
  font-size: 13px;
  color: #666;
  background: #e9ecef;
  padding: 3px 10px;  /* Slightly increased padding */
  border-radius: 12px;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;  /* Added margin */
}

.price-row {
  margin: 4px 0;  /* Increased from 1px */
}

.price-usd {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  padding: 2px 0;  /* Added padding */
}

.price-inr {
  font-size: 14px;
  font-weight: 500;
  color: #16a34a;
  padding: 2px 0;  /* Added padding */
}

.qty-select {
  width: 100%;
  padding: 8px;  /* Increased from 6px */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  margin-top: 6px;  /* Increased from 2px */
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.qty-select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.qty-select:hover {
  border-color: #4CAF50;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .item-container {
    padding: 12px;  /* Increased from 8px */
    margin-bottom: 10px;
  }

  .item-details {
    gap: 6px;  /* Slightly reduced for mobile but still spacious */
  }

  .price-usd, .price-inr {
    font-size: 13px;
    padding: 1px 0;
  }

  .qty-select {
    padding: 6px;
  }
}

/* Main Total Display */
.main-total-display {
  text-align: center;
  margin: 15px 0;
}

.total-header {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.currency-details {
  font-size: 16px;
  color: #555;
}

.currency-line {
  margin: 3px 0;
}

/* Footer Total */
.total-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  padding: 12px;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-x: auto;
}

.footer-total-display {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  padding: 0 10px;
}

.footer-currency.usd {
  color: #2563eb;
  margin: 0 5px;
}

.footer-currency.inr {
  color: #16a34a;
  margin: 0 5px;
}

.footer-separator {
  color: #666;
  margin: 0 8px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Success Screen */
.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-content {
  text-align: center;
}

.success-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.success-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.success-content button {
  padding: 10px 20px;
  font-size: 16px;
}

#successTotal .main-total-display {
  margin: 20px 0;
}

#successTotal .total-header {
  font-size: 28px;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select {
    font-size: 16px;
  }

  button {
    padding: 10px;
    font-size: 14px;
  }

  .success-content h2 {
    font-size: 20px;
  }

  .success-content p {
    font-size: 16px;
  }

  .success-content button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .footer-total-display {
    font-size: 14px;
  }

  .footer-separator {
    margin: 0 5px;
  }

  .total-header {
    font-size: 22px;
  }

  .currency-details {
    font-size: 15px;
  }

  .item-container {
    padding: 8px;
  }

  .price-usd, .price-inr {
    font-size: 13px;
  }

  .qty-select {
    padding: 5px;
  }
}

@media (max-width: 400px) {
  .footer-total-display {
    padding-bottom: 5px;
  }
}