/* Checkout Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  max-width: 700px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  color: #ff6b35;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.modal-subtitle {
  color: #666666;
  margin-bottom: 2rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.close:hover {
  color: #ff6b35;
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group select {
  cursor: pointer;
  background: #ffffff;
}

.price-summary {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 18px;
}

.price-row.total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid #d1d5db;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ff6b35;
}

.checkout-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-info {
  text-align: center;
  margin-top: 1.5rem;
  color: #666666;
}

.checkout-info small {
  font-size: 14px;
}

/* Form Layout Enhancements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group-small {
  grid-column: span 1;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #004e89;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f5f5f5;
}

.form-section-title:first-of-type {
  margin-top: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .modal-content {
    padding: 2rem;
  }
  
  .modal-content h2 {
    font-size: 2rem;
  }
  
  .modal.active {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group-small {
    grid-column: span 1;
  }
}

