/* Modern Form Styling with Better UX */
body:has(#epc-order-form-premium) {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 25%, #43e97b 50%, var(--apex-green) 75%, #2f855a 100%);
  background-size: 400% 400%;
  animation: gradientBackground 15s ease infinite;
  min-height: 100vh;
}

@keyframes gradientBackground {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

#epc-order-form-premium {
  background: rgba(255,255,255,0.95);
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 32px 120px rgba(0,0,0,0.15), 0 16px 40px rgba(0,0,0,0.1);
  margin: 40px auto;
  max-width: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(40px);
  animation: floatForm 6s ease-in-out infinite;
}

@keyframes floatForm {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

#epc-order-form-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--apex-green) 0%, var(--apex-green-dark) 25%, #43e97b 50%, var(--apex-green) 75%, #2f855a 100%);
  background-size: 200% 100%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Form Steps */
.form-step {
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  margin-bottom: 2.5em;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
}

.form-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.step-header {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 100%);
  padding: 2em 1.5em;
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.step-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.step-header:hover::before {
  left: 100%;
}

.step-header h2 {
  margin: 0 0 0.5em 0;
  color: #ffffff;
  font-size: 1.6em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: -0.5px;
}

.step-header p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.1em;
  font-weight: 400;
}

.step-content {
  padding: 2em;
}

.step-content h4 {
  margin: 2em 0 1em 0;
  color: #2d3748;
  font-size: 1.2em;
  font-weight: 700;
  border-bottom: 3px solid #e2e8f0;
  padding-bottom: 0.6em;
  position: relative;
}

.step-content h4::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--apex-green), var(--apex-green-dark));
  border-radius: 2px;
}

.step-content h4:first-child {
  margin-top: 0;
}

.step-navigation {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
}

.step-navigation .btn {
  min-width: 100px;
}

/* Final Summary Section */
.final-summary {
  background: linear-gradient(135deg, #e0f7e9 0%, #f8f9fa 100%);
  border-radius: 28px;
  padding: 0;
  margin-top: 2em;
  border: 2px solid #c6f7d4;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(19,140,31,0.13);
}

.summary-card {
  padding: 2.2em 1.7em 1.7em 1.7em;
  background: transparent;
}

.summary-card h4 {
  margin: 0 0 1.5em 0;
  color: #138c1f;
  font-size: 1.35em;
  font-weight: 900;
  text-align: left;
  border-bottom: 2px solid #c6f7d4;
  padding-bottom: 0.7em;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.summary-card h4::before {
  content: '\1F4C5'; /* 📅 */
  font-size: 1.3em;
  color: #138c1f;
  margin-right: 0.2em;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3em 1.2em;
  margin-bottom: 1.5em;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.1em 1.3em;
  background: #f4fff8;
  border-radius: 14px;
  border: 1.5px solid #e0f7e9;
  box-shadow: 0 1px 8px rgba(19,140,31,0.06);
  font-size: 1.08em;
  font-weight: 500;
  margin-bottom: 0.5em;
  transition: box-shadow 0.18s, background 0.18s;
}

.summary-item:not(.total-price):hover {
  background: #e0f7e9;
  box-shadow: 0 2px 12px rgba(19,140,31,0.10);
}

.summary-item strong {
  color: #138c1f;
  font-size: 1.08em;
  font-weight: 800;
  min-width: 110px;
  display: inline-block;
  margin-right: 0.7em;
}

.summary-item span {
  color: #222;
  font-size: 1.09em;
  font-weight: 600;
}

.summary-item.appointment::before {
  content: '\23F0'; /* ⏰ */
  font-size: 1.1em;
  color: #138c1f;
  margin-right: 0.6em;
  margin-top: 0.1em;
}

.summary-item.appointment {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
  position: relative;
}

.summary-item.appointment strong {
  margin-bottom: 0.2em;
}

.summary-item.appointment span {
  display: block;
  color: #222;
  font-size: 1.04em;
  font-weight: 600;
}

.summary-item.total-price {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #138c1f 60%, #43e97b 100%);
  color: #fff;
  font-size: 1.22em;
  font-weight: 900;
  border: none;
  box-shadow: 0 4px 16px rgba(19,140,31,0.13);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.7em;
  margin-bottom: 0;
  padding: 1.2em 1.5em;
  position: relative;
}

.summary-item.total-price::before {
  content: '\1F4B0'; /* 💰 */
  font-size: 1.3em;
  color: #fff;
  margin-right: 0.7em;
}

.summary-item.total-price strong {
  color: #fff;
  font-size: 1.13em;
  font-weight: 900;
  margin-right: 0.7em;
}

.summary-item.total-price span {
  color: #fff;
  font-size: 1.13em;
  font-weight: 900;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 1.2em;
  align-items: end;
}

.form-row.single-column {
  grid-template-columns: 1fr;
}

.form-row.two-column {
  grid-template-columns: 1fr 1fr;
}

.form-row.three-column {
  grid-template-columns: 1fr 1fr 1fr;
}

#epc-order-form-premium label {
  font-size: 0.9em;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0;
  position: relative;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.8em;
}

#epc-order-form-premium label .required {
  color: #f56565;
  margin-left: 4px;
  font-size: 1.1em;
}

#epc-order-form-premium input,
#epc-order-form-premium select {
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  font-size: 0.95em;
  font-weight: 500;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), inset 0 1px 2px rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* Specific styles for select elements to prevent text cutoff */
#epc-order-form-premium select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  word-wrap: normal;
}

#epc-order-form-premium select option {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px 12px;
  font-size: 0.95em;
}

/* Ensure select dropdowns show full text */
#epc-order-form-premium select:focus {
  overflow: visible;
}

#epc-order-form-premium select option:hover {
  background-color: #f8f9fa;
}

#epc-order-form-premium input:focus,
#epc-order-form-premium select:focus {
  border-color: var(--apex-green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(19, 140, 31, 0.1), 0 8px 25px rgba(19, 140, 31, 0.15);
  background: rgba(255,255,255,0.95);
  transform: translateY(-1px);
}

#epc-order-form-premium input::placeholder {
  color: #a0aec0;
  font-style: normal;
  font-size: 0.95em;
  font-weight: 400;
}

#epc-order-form-premium input.error,
#epc-order-form-premium select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Modern Stepper */
.stepper-container {
  margin-bottom: 2.5em;
  padding: 1.5em;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(247,250,252,0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5em;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  color: #718096;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
  text-align: center;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 80px;
  line-height: 1.2;
}

.step-line {
  height: 3px;
  background: #e9ecef;
  flex: 1;
  margin: 0 12px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 100%);
  color: white;
  border-color: var(--apex-green);
  transform: scale(1.15);
  box-shadow: 0 12px 48px rgba(19, 140, 31, 0.4), 0 0 0 4px rgba(19, 140, 31, 0.1);
}

.step.active .step-label {
  color: var(--apex-green);
  font-weight: 800;
}

.step.completed .step-circle {
  background: linear-gradient(135deg, var(--apex-green) 0%, #43e97b 100%);
  color: white;
  border-color: var(--apex-green);
  box-shadow: 0 8px 32px rgba(19, 140, 31, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.step.completed .step-circle::after {
  content: '✓';
  position: absolute;
  font-size: 20px;
  font-weight: 900;
}

.step.completed .step-label {
  color: var(--apex-green);
  font-weight: 800;
}

.step.completed + .step-line {
  background: linear-gradient(90deg, var(--apex-green), var(--apex-green-dark));
}

.step:hover:not(.active):not(.completed) .step-circle {
  background: #dee2e6;
  transform: scale(1.05);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 64px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--apex-green-dark) 0%, var(--apex-green) 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  color: #4a5568;
  border: 2px solid #cbd5e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  border-color: #a0aec0;
  color: #2d3748;
}

.btn-success {
  background: linear-gradient(135deg, var(--apex-green) 0%, #43e97b 100%);
  color: #fff;
}

.btn-success:hover {
  background: linear-gradient(135deg, #43e97b 0%, var(--apex-green) 100%);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--apex-green);
  color: var(--apex-green);
  backdrop-filter: blur(20px);
}

.btn-outline:hover {
  background: var(--apex-green);
  color: #fff;
}


/* Price Display */
.price-summary {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 1.5em;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  margin: 1.5em 0;
  text-align: center;
}

.price-summary h4 {
  margin: 0 0 0.5em 0;
  color: #495057;
}

/* Calendar Styling */
.calendar-container {
  margin: 2.5em 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.8em;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(247,250,252,0.9) 100%);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}

.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  padding: 1em 0;
}

.week-display {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

.epc-calendar {
  min-width: 500px;
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  font-size: 0.9em;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}

.epc-calendar th {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 100%);
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  border-bottom: none;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.epc-calendar th:first-child {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: white;
  font-size: 0.95em;
}

.epc-calendar td {
  padding: 6px 3px;
  text-align: center;
  border-bottom: 1px solid #f1f3f4;
  background: white;
  position: relative;
}

.epc-calendar td:first-child {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-right: 2px solid #dee2e6;
}

.epc-calendar th.available {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.epc-calendar th.unavailable {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.epc-calendar th.highlight-date, .epc-calendar td.highlight-date {
  background: linear-gradient(135deg, var(--apex-green-light) 60%, #b2f2dd 100%) !important;
  color: var(--apex-green) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(19,140,31,0.08);
  border-bottom: 2px solid var(--apex-green);
}

/* Slot Styling */
.slot {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  min-width: 65px;
  box-sizing: border-box;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 0.9em;
}

.slot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.slot:hover::before {
  left: 100%;
}

.slot.available {
  background: linear-gradient(135deg, var(--apex-green) 0%, #43e97b 100%);
  color: #fff;
  border-color: var(--apex-green);
  box-shadow: 0 4px 16px rgba(19, 140, 31, 0.3);
}

.slot.available:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 48px rgba(19, 140, 31, 0.5);
  background: linear-gradient(135deg, #43e97b 0%, var(--apex-green-dark) 100%);
}

.slot.unavailable {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.slot.selected {
  background: linear-gradient(135deg, var(--apex-green) 0%, var(--apex-green-dark) 100%);
  color: #fff;
  border-color: var(--apex-green) !important;
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 16px 64px rgba(19, 140, 31, 0.6), 0 0 0 4px rgba(19, 140, 31, 0.2);
  z-index: 10;
}

.slot.selected::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ffc107;
  color: #212529;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.slot.booked {
  background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
  color: #6c757d !important;
    cursor: not-allowed !important;
  text-decoration: line-through;
  opacity: 0.5;
}

.slot.booked:hover {
  transform: none !important;
  box-shadow: none !important;
}

.slot.partially-booked {
  background: linear-gradient(135deg, #ffc107 0%, #ffb84d 100%) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.slot.partially-booked:hover {
  background: linear-gradient(135deg, #ffb84d 0%, #ffc107 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}


/* Total and Messages */
#epc-total {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--apex-green);
  text-shadow: 0 2px 4px rgba(19, 140, 31, 0.1);
  margin: 0;
}
#epc-messages .error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  padding: 1em 1.5em;
  border: none;
  border-radius: 8px;
  border-left: 4px solid var(--apex-red);
  margin-bottom: 1em;
    display: flex;
  align-items: center;
  gap: 10px;
}

#epc-messages .error::before {
  content: '⚠️';
  font-size: 1.2em;
}

#epc-messages .success {
  background: linear-gradient(135deg, var(--apex-green) 0%, #43e97b 100%);
  color: #fff;
  padding: 3em 2.5em;
  border: none;
  border-radius: 32px;
  margin: 4em auto 3em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4em;
  font-weight: 700;
  box-shadow: 0 20px 80px rgba(19, 140, 31, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  text-align: center;
  max-width: 580px;
  font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  animation: popInCard 0.8s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}
#epc-messages .success .success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2em;
  color: var(--apex-green);
  margin-bottom: 1.2em;
  box-shadow: 0 12px 48px rgba(255,255,255,0.3), inset 0 2px 4px rgba(19, 140, 31, 0.1);
  animation: popInCheck 0.6s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.4);
}
#epc-messages .success .success-title {
  font-size: 1.3em;
  font-weight: 800;
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
}
#epc-messages .success .success-desc {
  font-size: 1.08em;
  font-weight: 500;
  color: #eafff2;
  margin-bottom: 1.2em;
}
#epc-messages .success button {
  margin-top: 2em;
  padding: 1.2em 3em;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.95);
  color: var(--apex-green);
  box-shadow: 0 8px 32px rgba(255,255,255,0.3), inset 0 1px 2px rgba(19, 140, 31, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.95em;
}
#epc-messages .success button:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 64px rgba(255,255,255,0.4), inset 0 2px 4px rgba(19, 140, 31, 0.15);
}
@keyframes popInCard {
  from { opacity: 0; transform: scale(0.95) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes popInCheck {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Animation for form transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  #epc-order-form-premium {
    padding: 1em;
    margin: 10px;
  }
  
  .stepper-container {
    padding: 1em;
  }
  
  .step-label {
    font-size: 10px;
    max-width: 60px;
  }
  
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .step-line {
    margin: 0 8px;
    margin-bottom: 30px;
  }
}
  
  .step-header {
    padding: 1.5em 1em;
  }
  
  .step-header h2 {
    font-size: 1.5em;
  }
  
  .step-content {
    padding: 1.5em 1em;
  }
  
  .step-navigation {
    padding: 1em;
    flex-direction: column;
    gap: 10px;
  }
  
  .step-navigation .btn {
    width: 100%;
    min-width: auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .epc-calendar {
    font-size: 0.9em;
  }
  
  .slot {
    padding: 8px 12px;
    min-width: 80px;
    font-size: 0.9em;
  }
  
  #epc-total {
    font-size: 2em;
  }
  
  .calendar-navigation {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .epc-calendar {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .slot {
    padding: 6px 10px;
    min-width: 70px;
    font-size: 0.8em;
  }
  
  #epc-total {
    font-size: 1.8em;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

@media (max-width: 900px) {
  .epc-calendar {
    min-width: 400px;
    font-size: 0.93em;
  }
  .slot {
    min-width: 55px;
    font-size: 0.93em;
    padding: 5px 6px;
  }
}
@media (max-width: 600px) {
  #epc-order-form-premium {
    padding: 0.7em;
    margin: 6px;
    font-size: 0.97em;
  }
  .stepper-container {
    padding: 0.5em 0.2em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .stepper {
    min-width: 400px;
    font-size: 0.95em;
  }
  .step-label {
    font-size: 9px;
    max-width: 50px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .step-line {
    margin: 0 6px;
    margin-bottom: 18px;
  }
  .step-header {
    padding: 1em 0.5em;
  }
  .step-header h2 {
    font-size: 1.1em;
  }
  .step-content {
    padding: 1em 0.5em;
  }
  .step-navigation {
    padding: 0.7em 0.2em;
    flex-direction: column;
    gap: 8px;
  }
  .step-navigation .btn {
    width: 100%;
    min-width: 0;
    font-size: 1.08em;
    padding: 1em 0.5em;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 1em;
  }
  .form-row.three-column {
    grid-template-columns: 1fr !important;
  }
  /* Date picker improvements */
  #epc-date-picker {
    font-size: 1em;
    padding: 0.6em 0.7em;
    border-radius: 8px;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.3em;
    margin-bottom: 0.7em;
  }
  label[for="epc-date-picker"] {
    font-size: 1em;
    margin-bottom: 0.2em;
    display: block;
  }
  /* Calendar container and table improvements */
  .calendar-container {
    padding: 0.5em 0.2em;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 1em;
  }
  .epc-calendar {
    min-width: 400px;
    font-size: 0.89em;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 0.5em;
  }
  .epc-calendar th, .epc-calendar td {
    padding: 4px 2px;
  }
  .slot {
    min-width: 40px;
    font-size: 0.89em;
    padding: 4px 4px;
  }
  /* Navigation buttons stack vertically and are smaller */
  .calendar-navigation {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 0.5em 0;
  }
  .calendar-navigation .btn {
    width: 100%;
    font-size: 1em;
    padding: 0.7em 0.5em;
    margin-bottom: 0.2em;
  }
  .week-display {
    font-size: 1em;
    font-weight: 700;
    margin: 0.2em 0 0.4em 0;
    text-align: center;
  }
  .appointment-summary table {
    font-size: 0.93em;
    border-radius: 6px;
    margin: 0.5em 0;
  }
  .appointment-summary th, .appointment-summary td {
    padding: 0.5em 0.3em;
  }
  .epc-field-error {
    font-size: 0.95em;
    margin-top: 4px;
    margin-bottom: 1px;
  }
  #epc-messages .success {
    max-width: 98vw;
    padding: 1.2em 0.5em 1em 0.5em;
    font-size: 1.08em;
    border-radius: 14px;
  }
  #epc-messages .success .success-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5em;
    margin-bottom: 0.7em;
  }
  #epc-messages .success button {
    font-size: 1em;
    padding: 0.7em 1.2em;
    border-radius: 20px;
  }
  select, input[type="text"], input[type="email"], input[type="tel"] {
    font-size: 1.08em;
    padding: 0.7em 0.7em;
    border-radius: 8px;
  }
  #epc-order-form-premium label {
    font-size: 0.95em;
  }
  #epc-order-form-premium input,
  #epc-order-form-premium select {
    font-size: 0.97em;
    padding: 8px 10px;
    border-radius: 6px;
  }
  .final-summary {
    border-radius: 14px;
    margin-top: 1em;
    box-shadow: 0 4px 18px rgba(19,140,31,0.13);
    padding: 0.5em 0.2em;
  }
  .summary-card {
    padding: 1em 0.3em 0.7em 0.3em;
  }
  .summary-card h4 {
    font-size: 1.01em;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
    align-items: center;
    gap: 0.5em;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 0.7em;
  }
  .summary-item {
    padding: 0.9em 0.7em;
    font-size: 0.97em;
    border-radius: 8px;
    margin-bottom: 0.5em;
    border-bottom: 1.5px solid #e0f7e9;
    box-shadow: none;
  }
  .summary-item:last-child {
    border-bottom: none;
  }
  .summary-item strong {
    font-size: 1.01em;
    min-width: 90px;
    margin-right: 0.5em;
  }
  .summary-item span {
    font-size: 1.01em;
  }
  .summary-item.appointment {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2em;
    padding-bottom: 0.7em;
  }
  .summary-item.appointment .appointment-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 800;
    color: #138c1f;
    font-size: 1.01em;
    margin-bottom: 0.2em;
  }
  .summary-item.appointment .appointment-label svg,
  .summary-item.appointment .appointment-label .icon {
    font-size: 1.1em;
    margin-right: 0.2em;
  }
  .summary-item.appointment span {
    display: block;
    color: #222;
    font-size: 0.99em;
    font-weight: 600;
    margin-left: 1.2em;
  }
  .summary-item.total-price {
    font-size: 1.09em;
    border-radius: 10px;
    padding: 1em 1em;
    margin-top: 0.7em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7em;
  }
  .summary-item.total-price::before {
    font-size: 1.2em;
    margin-right: 0.5em;
  }
  .summary-item.total-price strong,
  .summary-item.total-price span {
    font-size: 1.09em;
  }
}

/* Complete Booking Button improvements for mobile */
@media (max-width: 600px) {
  #step-3 .step-navigation {
    flex-direction: column;
    gap: 14px;
    padding: 1em 0.2em 0.5em 0.2em;
  }
  #step-3 .btn-success {
    width: 100%;
    min-width: 0;
    font-size: 1.18em;
    padding: 1.1em 0.5em;
    border-radius: 30px;
    margin-top: 0.7em;
    background: linear-gradient(90deg, #138c1f 60%, #43e97b 100%) !important;
    color: #fff;
    box-shadow: 0 4px 18px rgba(19,140,31,0.13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  #step-3 .btn-success:hover {
    background: linear-gradient(90deg, #43e97b 60%, #138c1f 100%) !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(19,140,31,0.18);
  }
}

/* Custom scrollbar for calendar */
.epc-calendar::-webkit-scrollbar {
  height: 8px;
}

.epc-calendar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.epc-calendar::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
}

.epc-calendar::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Appointment summary table UI improvements */
.appointment-summary table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  font-size: 1.08em;
  border: 2px solid var(--apex-green);
}
.appointment-summary th {
  background: linear-gradient(90deg, var(--apex-green) 60%, #43e97b 100%);
  color: #fff;
  font-weight: 700;
  padding: 1em;
  font-size: 1.1em;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e3e6ea;
}
.appointment-summary td {
  padding: 1em 1.2em;
  border-bottom: 1px solid #e3e6ea;
  background: #fff;
  color: #333;
  font-weight: 500;
  transition: background 0.2s;
}
.appointment-summary tr:last-child td {
  border-bottom: none;
}
.appointment-summary tr.selected td {
  background: #eaf6ff;
}
@media (max-width: 600px) {
  .appointment-summary table {
    font-size: 0.98em;
    border-radius: 8px;
  }
  .appointment-summary th, .appointment-summary td {
    padding: 0.7em 0.5em;
  }
}

.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Final step navigation fix */
#step-3 .step-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  background: #f8f9fa;
  padding: 1.5em 2em;
  border-top: 1px solid #dee2e6;
}
#step-3 .step-navigation .btn {
  width: auto;
  min-width: 160px;
  font-size: 1.1em;
  margin: 0;
  box-shadow: none;
}
#step-3 .btn-success {
  width: auto;
  padding: 12px 32px;
  margin-top: 0;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,65,108,0.15);
}
#step-3 .btn-success:hover {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
}
@media (max-width: 600px) {
  #step-3 .step-navigation {
    flex-direction: column;
    gap: 12px;
    padding: 1em;
  }
  #step-3 .btn-success, #step-3 .btn-secondary {
    width: 100%;
    min-width: 0;
  }
}

/* --- Website Color Palette --- */
:root {
  --apex-green: #138c1f;
  --apex-green-dark: #0e6b18;
  --apex-green-light: #e0f7e9;
  --apex-red: #e60000;
}

.epc-field-error {
  color: var(--apex-red);
  font-size: 0.98em;
  margin-top: 6px;
  margin-bottom: 2px;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
}

/* Stripe Payment Elements Styling */
.stripe-payment-section {
  background: #f8f9fa;
  padding: 1.5em;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  margin-top: 1em;
}

.stripe-payment-section h4 {
  margin: 0 0 1em 0;
  color: #495057;
  font-size: 1.1em;
  font-weight: 600;
}

.stripe-card-element {
  padding: 12px;
  border: 2px solid #e3e6ea;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 1em;
  transition: border-color 0.22s cubic-bezier(0.4,0,0.2,1);
}

.stripe-card-element.StripeElement--focus {
  border-color: var(--apex-green);
  box-shadow: 0 0 0 2px var(--apex-green-light);
}

.stripe-card-element.StripeElement--invalid {
  border-color: var(--apex-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.stripe-error {
  color: var(--apex-red);
  font-size: 0.9em;
  margin-top: 0.5em;
  font-weight: 500;
  text-align: left;
}

#stripe-payment-container {
  animation: fadeInUp 0.4s ease-out;
}

/* Payment method selection styling */
#payment_method {
  margin-bottom: 1em;
}

#payment_method:focus {
  border-color: var(--apex-green);
  box-shadow: 0 0 0 2px var(--apex-green-light);
}

/* Loading state for payment processing */
.payment-processing {
  position: relative;
  pointer-events: none;
}

.payment-processing::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--apex-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error Modal Styling */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.error-modal {
  background: rgba(255,255,255,0.95);
  border-radius: 32px;
  padding: 0;
  max-width: 540px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 32px 128px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.3);
}

.error-modal-header {
  background: linear-gradient(135deg, var(--apex-red) 0%, #c53030 100%);
  color: white;
  padding: 2em 2.5em;
  border-radius: 32px 32px 0 0;
  display: flex;
  align-items: center;
  gap: 1.2em;
  position: relative;
  overflow: hidden;
}

.error-modal-header h3 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.error-modal-header .error-icon {
  font-size: 2.2em;
  color: #fff;
}

.error-modal-body {
  padding: 2em;
}

.error-modal-body h4 {
  margin: 0 0 1em 0;
  color: var(--apex-red);
  font-size: 1.1em;
  font-weight: 600;
}

.error-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}

.error-list li {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 0.8em;
  color: #c53030;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.error-list li::before {
  content: '⚠️';
  font-size: 1.1em;
}

.error-modal-footer {
  padding: 1.5em 2em;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

.error-modal-close {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  color: white;
  border: none;
  padding: 1em 2em;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9em;
}

.error-modal-close:hover {
  background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(113, 128, 150, 0.3);
}

.error-modal-retry {
  background: linear-gradient(135deg, var(--apex-green) 0%, #43e97b 100%);
  color: white;
  border: none;
  padding: 1em 2em;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9em;
}

.error-modal-retry:hover {
  background: linear-gradient(135deg, #43e97b 0%, var(--apex-green-dark) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(19, 140, 31, 0.3);
}

/* Field Error Highlighting */
.field-with-error {
  border-color: var(--apex-red) !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1) !important;
  background: #fff5f5 !important;
}

.field-with-error:focus {
  border-color: var(--apex-red) !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.2) !important;
}

.error-field-label {
  color: var(--apex-red) !important;
  font-weight: 700 !important;
}

.error-field-message {
  color: var(--apex-red);
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 0.3em;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.error-field-message::before {
  content: '⚠️';
  font-size: 0.9em;
}

/* Animation for error modal */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive error modal */
@media (max-width: 600px) {
  .error-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .error-modal-header {
    padding: 1.2em 1.5em;
  }
  
  .error-modal-header h3 {
    font-size: 1.1em;
  }
  
  .error-modal-body {
    padding: 1.5em;
  }
  
  .error-modal-footer {
    padding: 1.2em 1.5em;
    flex-direction: column;
  }
  
  .error-modal-close,
  .error-modal-retry {
    width: 100%;
    text-align: center;
  }
}

/* Payment Instructions Styling */
.payment-instructions {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  padding: 1.5em;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  margin-top: 1em;
  animation: fadeInUp 0.4s ease-out;
}

.payment-instructions h4 {
  margin: 0 0 1em 0;
  color: #495057;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5em;
}

.payment-instructions p {
  margin: 0 0 1em 0;
  color: #6c757d;
  line-height: 1.6;
}

.payment-instructions .bank-details {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid #e9ecef;
}

.payment-instructions .bank-info {
  background: #fff;
  padding: 1em;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.5;
  color: #495057;
  white-space: pre-line;
}

.payment-instructions .general-instructions {
  margin-bottom: 1em;
}

/* Responsive design for Stripe elements */
@media (max-width: 600px) {
  .stripe-payment-section {
    padding: 1em;
    border-radius: 8px;
  }
  
  .stripe-card-element {
    padding: 10px;
    border-radius: 6px;
  }
  
  .stripe-payment-section h4 {
    font-size: 1em;
  }
  
  .payment-instructions {
    padding: 1em;
    border-radius: 8px;
  }
  
  .payment-instructions h4 {
    font-size: 1em;
  }
  
  .payment-instructions .bank-info {
    font-size: 0.85em;
    padding: 0.8em;
  }
}
