
/* Modern Expedited Options Container - Matching Form Tab Style */
.expedited-rates-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 650px;
  width: 100%;
  margin: 24px auto;
  padding: 28px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

.expedited-rates-div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 18px 18px 0 0;
}

/* Title Styling - Matching Form Style */
.expedited-rates-div h2 {
  color: #2d3748;
  text-align: center;
  margin: 0 0 24px 0;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.expedited-rates-div h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Form Switch Styling - Matching Form Tab */
.expedited-rates-div .form-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 550px;
  margin: 0 0 16px 0;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

/* Regular Option - Purple Theme */
.expedited-rates-div .form-switch:has(input[id*="regular"]) {
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
  border-color: #d8b4fe;
}

.expedited-rates-div .form-switch:has(input[id*="regular"]):hover {
  background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
  border-color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.expedited-rates-div .form-switch:has(input[id*="regular"]) p {
  color: #7c3aed !important;
}

/* Priority Option - Orange Theme */
.expedited-rates-div .form-switch:has(input[id*="priority"]) {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fed7aa;
}

.expedited-rates-div .form-switch:has(input[id*="priority"]):hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-color: #fdba74;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.expedited-rates-div .form-switch:has(input[id*="priority"]) p {
  color: #d97706 !important;
}

/* Express Option - Blue Theme */
.expedited-rates-div .form-switch:has(input[id*="express"]) {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
}

.expedited-rates-div .form-switch:has(input[id*="express"]):hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.expedited-rates-div .form-switch:has(input[id*="express"]) p {
  color: #0369a1 !important;
}

/* Urgent Option - Red Theme */
.expedited-rates-div .form-switch:has(input[id*="urgent"]) {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

.expedited-rates-div .form-switch:has(input[id*="urgent"]):hover {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}

.expedited-rates-div .form-switch:has(input[id*="urgent"]) p {
  color: #dc2626 !important;
}

/* Super Urgent Option - Deep Red Theme */
.expedited-rates-div .form-switch:has(input[id*="superUrgent"]) {
  background: linear-gradient(135deg, #fef1f1 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.expedited-rates-div .form-switch:has(input[id*="superUrgent"]):hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.15);
}

.expedited-rates-div .form-switch:has(input[id*="superUrgent"]) p {
  color: #991b1b !important;
}

/* Label Styling */
.expedited-rates-div .form-switch p {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  flex: 1;
  line-height: 1.4;
  padding-right: 14px;
  color: inherit;
}

/* Toggle Switch Styling */
.expedited-rates-div .toggle-i {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-left: 8px;
}

.expedited-rates-div .toggle-i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 50%;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block !important;
}

.expedited-rates-div .toggle-i::after {
  display: none !important;
}

/* Active Toggle States */
.expedited-rates-div .form-switch input[type="checkbox"]:checked + .toggle-i {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.expedited-rates-div .form-switch input[type="checkbox"]:checked + .toggle-i::before {
  transform: translateX(22px);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

/* Active Form Switch State */
.expedited-rates-div .form-switch:has(input:checked) {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.2) !important;
}

.expedited-rates-div .form-switch:has(input:checked) p {
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* Hide default checkbox */
.expedited-rates-div .form-switch input[type="checkbox"] {
  display: none;
}

/* Input Fields - More Compact */
.expedited-rates-div input:not([type="checkbox"]) {
  color: #374151 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin: 6px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.expedited-rates-div input:not([type="checkbox"]):focus {
  outline: none;
  border-color: #3b82f6;
  background: #fefefe;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.expedited-rates-div input::placeholder {
  color: #9ca3af !important;
  font-weight: 400;
}

.expedited-rates-div input[readonly] {
  background: #f8fafc;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

/* Labels - More Compact */
.expedited-rates-div label {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Priority Level Spans */
.expedited-regular {
  color: #7c3aed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expedited-priority {
  color: #d97706;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expedited-express {
  color: #0369a1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expedited-urgent {
  color: #dc2626;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expedited-super-urgent {
  color: #991b1b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin Note Styling */
.admin-note {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #e879f9;
  border-left: 4px solid #c084fc;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 20px 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.admin-note::before {
  content: '💼';
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.admin-note span {
  color: #c026d3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Confirm Button */
#confirm-expedited-option-button,
[id*="confirm-expedited-option-button"] {
  width: 100%;
  max-width: 400px;
  padding: 14px 28px;
  margin: 20px auto 0 auto;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  display: block;
}

#confirm-expedited-option-button::before,
[id*="confirm-expedited-option-button"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#confirm-expedited-option-button:hover::before,
[id*="confirm-expedited-option-button"]:hover::before {
  left: 100%;
}

#confirm-expedited-option-button:hover,
[id*="confirm-expedited-option-button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

#confirm-expedited-option-button:disabled,
[id*="confirm-expedited-option-button"]:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Important Note Styling */
.expedited-note {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
  border: 1px solid #e879f9;
  border-left: 4px solid #c084fc;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 0 0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(192, 132, 252, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 550px;
}

.expedited-note::before {
  content: '⚠️';
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.expedited-note:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.15);
}

.expedited-note span {
  color: #c026d3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

/* Error Styling */
.order-error,
.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
  border: 2px solid #f87171;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 10px rgba(248, 113, 113, 0.2);
  animation: shake 0.6s ease-in-out;
}

/* Remove default br spacing and use CSS margins instead */
.expedited-rates-div br {
  display: none;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .expedited-rates-div {
    margin: 20px 16px;
    padding: 24px 20px;
    max-width: none;
  }
  
  .expedited-rates-div h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .expedited-rates-div .form-switch {
    max-width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
  }
  
  .expedited-rates-div .form-switch p {
    font-size: 14px;
    padding-right: 10px;
  }
  
  .expedited-rates-div .toggle-i {
    width: 46px;
    height: 26px;
  }
  
  .expedited-rates-div .toggle-i::before {
    width: 22px;
    height: 22px;
  }
  
  .expedited-rates-div .form-switch input[type="checkbox"]:checked + .toggle-i::before {
    transform: translateX(20px);
  }
  
  .expedited-rates-div input:not([type="checkbox"]) {
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .expedited-rates-div label {
    font-size: 12px;
    margin: 10px 0 2px 0;
  }
  
  #confirm-expedited-option-button,
  [id*="confirm-expedited-option-button"] {
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 16px;
  }
  
  .expedited-note {
    padding: 14px 16px;
    font-size: 12px;
    margin-top: 16px;
    gap: 8px;
    max-width: 100%;
  }
  
  .admin-note {
    padding: 14px 16px;
    font-size: 13px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .expedited-rates-div {
    margin: 16px 12px;
    padding: 20px 16px;
  }
  
  .expedited-rates-div h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .expedited-rates-div .form-switch {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .expedited-rates-div .form-switch p {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .expedited-rates-div .toggle-i {
    width: 42px;
    height: 24px;
  }
  
  .expedited-rates-div .toggle-i::before {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
  }
  
  .expedited-rates-div .form-switch input[type="checkbox"]:checked + .toggle-i::before {
    transform: translateX(18px);
  }
  
  #confirm-expedited-option-button,
  [id*="confirm-expedited-option-button"] {
    padding: 12px 20px;
    font-size: 13px;
    letter-spacing: 0.6px;
  }
}

