/* ========================================
   Order Page Styles
   ======================================== */

.order-section {
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, var(--background-cream) 0%, #fff 100%);
  min-height: 100vh;
}

.order-header {
  text-align: center;
  margin-bottom: 60px;
}

.order-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 16px;
}

.order-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.order-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-clear-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #f3f4f6;
  color: var(--text-primary);
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-clear-order:hover {
  background-color: #e5e7eb;
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.btn-clear-order i {
  width: 16px;
  height: 16px;
}

/* ========================================
   Progress Bar
   ======================================== */

.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 2px;
  background-color: #E5E7EB;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #E5E7EB;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background-color: var(--primary-teal);
  color: white;
  box-shadow: 0 4px 12px rgba(45, 106, 106, 0.3);
}

.progress-step.completed .step-number {
  background-color: var(--accent-gold);
  color: white;
}

.step-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: var(--primary-teal);
  font-weight: 600;
}

/* ========================================
   Form Container
   ======================================== */

.order-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.form-step-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 32px;
  text-align: center;
}

/* ========================================
   Form Fields
   ======================================== */

.form-group {
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.form-group.conditional-field {
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
    margin-bottom: 24px;
  }
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(45, 106, 106, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Styling */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-teal);
}

/* Radio Button Styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: var(--primary-teal);
  background-color: rgba(45, 106, 106, 0.05);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-teal);
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--primary-teal);
}

/* Checkbox Group Styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-option {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-option:hover {
  border-color: var(--primary-teal);
  background-color: rgba(45, 106, 106, 0.05);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-teal);
  flex-shrink: 0;
}

.checkbox-option span {
  line-height: 1.5;
  font-size: 15px;
  margin-top: 3px;
}

/* Other Input for Checkboxes */
.other-input-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.other-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.other-input:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(45, 106, 106, 0.1);
}

.btn-add-other {
  padding: 10px 20px;
  background-color: var(--primary-teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-add-other:hover {
  background-color: #245555;
  box-shadow: 0 2px 8px rgba(45, 106, 106, 0.3);
}

/* Custom checkbox options with remove button */
.checkbox-option.custom-option {
  background-color: rgba(45, 106, 106, 0.05);
  border-color: var(--primary-teal);
  position: relative;
  padding-right: 40px;
}

.btn-remove-custom {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
}

.btn-remove-custom:hover {
  color: #DC2626;
  transform: translateY(-50%) scale(1.2);
}

/* ========================================
   Form Navigation
   ======================================== */

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.btn-prev,
.btn-next,
.btn-submit {
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-prev {
  background-color: #E5E7EB;
  color: var(--text-primary);
}

.btn-prev:hover {
  background-color: #D1D5DB;
}

.btn-next,
.btn-submit {
  background-color: var(--primary-teal);
  color: white;
  flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #245555;
  box-shadow: 0 4px 12px rgba(45, 106, 106, 0.3);
}

.btn-submit {
  background-color: var(--accent-gold);
}

.btn-submit:hover {
  background-color: #C89563;
}

/* ========================================
   Add-On Options
   ======================================== */

.addon-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addon-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
  font-weight: 400;
}

.addon-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-teal);
}

.addon-item:hover {
  border-color: var(--primary-teal);
  background-color: rgba(45, 106, 106, 0.05);
}

.addon-item input[type="checkbox"]:checked ~ .addon-details {
  color: var(--primary-teal);
  font-weight: 600;
}

.addon-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.addon-name {
  flex: 1;
}

.addon-price {
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* ========================================
   Order Summary
   ======================================== */

.order-summary {
  background-color: var(--background-cream);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 15px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-teal);
}

/* ========================================
   Save Notice
   ======================================== */

.save-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.save-notice i {
  width: 16px;
  height: 16px;
}

/* ========================================
   Animations
   ======================================== */

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .order-section {
    padding: 80px 16px 60px;
  }

  .order-title {
    font-size: 32px;
  }

  .order-subtitle {
    font-size: 16px;
  }

  .progress-bar {
    gap: 12px;
  }

  .progress-bar::before {
    width: 250px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .step-label {
    font-size: 12px;
  }

  .order-form {
    padding: 32px 24px;
  }

  .form-step-title {
    font-size: 24px;
  }

  .form-navigation {
    flex-direction: column;
  }

  .btn-prev,
  .btn-next,
  .btn-submit {
    width: 100%;
  }

  .other-input-container {
    flex-direction: row;
  }

  .btn-add-other {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .progress-bar::before {
    width: 200px;
  }

  .step-label {
    display: none;
  }
}
