/* Order Form Styles */
.order-form {
  padding: 60px 0;
}

/* Progress Bar */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 60px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: #e67e22;
  color: white;
}

.progress-step.active .step-label {
  color: #e67e22;
  font-weight: bold;
}

.progress-step.completed .step-number {
  background-color: #27ae60;
  color: white;
}

/* Multi-step Form */
.form-step {
  display: none;
  animation: fadeIn 0.5s;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #e67e22;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

input.error,
select.error,
textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error-message.visible {
  display: block;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
}

.required {
  color: #e74c3c;
}

/* Product Selection */
.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.product-option {
  flex: 1;
  min-width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

.product-option:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  text-align: center;
  margin-bottom: 15px;
}

.product-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-details h4 {
  margin-top: 0;
  color: #333;
}

.product-specs {
  font-size: 14px;
  margin: 15px 0;
}

.product-controls {
  display: flex;
  gap: 15px;
}

.product-controls .form-group {
  flex: 1;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.prev-step {
  background-color: #95a5a6;
}

.prev-step:hover {
  background-color: #7f8c8d;
}

.submit-order {
  background-color: #27ae60;
}

.submit-order:hover {
  background-color: #219653;
}

/* Order Summary */
.order-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.summary-products {
  margin-bottom: 20px;
}

.summary-product {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.summary-product:last-child {
  border-bottom: none;
}

.summary-product-name {
  font-weight: 500;
}

.summary-totals {
  border-top: 2px solid #ddd;
  padding-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row.total {
  font-weight: bold;
  font-size: 18px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

.summary-section {
  margin-bottom: 30px;
}

.summary-section h4 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Payment Method Fields */
.payment-method-fields {
  display: none;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 15px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.payment-method-fields.active {
  display: block;
  animation: fadeIn 0.5s;
}

.note {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 700px;
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-modal:hover {
  color: #333;
}

.terms-content {
  max-height: 400px;
  overflow-y: auto;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.confirmation-content {
  text-align: center;
  padding: 20px 0;
}

.confirmation-icon {
  font-size: 60px;
  color: #27ae60;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .form-progress {
    overflow-x: auto;
    padding-bottom: 15px;
  }
  
  .product-options {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .modal-content {
    width: 90%;
    margin: 10% auto;
  }
}