/* Custom styles that extend Tailwind */
.form-container {
  background-color: #e2f1e2;
  border-radius: 1rem;
}

.btn-primary {
  background-color: #292d39;
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #2b2e44;
}

.btn-secondary {
  background-color: white;
  color: #292d39;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: #fafcfc;
}

.form-input {
  border: 1px solid #e4e8ee;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  background-color: white;
}

.storage-option {
  border: 1px solid #e4e8ee;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.storage-option:hover,
.storage-option.selected {
  border-color: #292d39;
  background-color: #fafcfc;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #292d39;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.quantity-value {
  margin: 0 0.5rem;
  min-width: 1.5rem;
  text-align: center;
}

.input-error {
  border-color: #ef4444;
}

/* Custom dropdown styles */
.custom-select-dropdown {
  padding: 0;
  display: none;
  transition: opacity 0.1s ease-in;
}

.custom-select-dropdown.active {
  display: block;
  animation: fadeIn 0.1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.custom-select-option {
  cursor: pointer;
}

.custom-select-option.selected {
  background-color: #f9fafb;
}

.custom-select-option:hover {
  background-color: #f3f4f6;
}

#selected-items {
  max-height: 400px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Accordion Styles */
.accordion {
  border: 1px solid #e4e8ee;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-header {
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: #f3f4f6;
}

.accordion-content {
  transition: max-height 0.3s ease-out;
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

/* Estimation UI Styles */
.storage-item {
  border-bottom: 1px solid #e4e8ee;
  padding-bottom: 1rem;
}

.storage-item:last-child {
  border-bottom: none;
}

.price-summary {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
}

.total-cost-summary {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

/* Animation for accordion content */
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }

  to {
    max-height: 1000px;
    opacity: 1;
  }
}

.accordion-content.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

/* Responsive styles */
@media (max-width: 640px) {
  .total-cost-summary {
    padding: 1rem;
  }

  .price-summary {
    padding: 0.75rem;
  }
}


