/* ============================================
   XENION HIGH SCHOOL LUNCHBOX - CUSTOM THEME
   Primary: #24876B (Teal/Green)
   Accent: #87243C (Deep Red/Maroon)
   ============================================ */

:root {
  --primary-color: #24876B;
  --primary-dark: #1d6b55;
  --primary-light: #2fa085;
  --accent-color: #87243C;
  --accent-dark: #6b1c2f;
  --accent-light: #a83050;
  --success-color: #24876B;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 0.125rem 0.25rem rgba(36, 135, 107, 0.1);
  --shadow-md: 0 0.5rem 1rem rgba(36, 135, 107, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(36, 135, 107, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  transition: var(--transition);
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #eff4f2 100%);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

main.container {
  max-width: 100%;
}

/* ============================================
   CARD STYLING
   ============================================ */

.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--bg-white);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-body {
  padding: 2rem;
}

@media (max-width: 576px) {
  .card-body {
    padding: 1.5rem;
  }
}

/* ============================================
   HEADER & BRANDING
   ============================================ */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  display: none;
}

/* New wizard header bar with logo and step indicators -->*/
.wizard-header {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-dark) 100%);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.logo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-small {
  max-width: 100px;
  height: auto;
  animation: logoFloat 3s ease-in-out infinite;
}

/* ============================================
   STEP WIZARD INDICATORS - REDESIGNED
   ============================================ */

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.step-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-group:last-child .step-connector {
  display: none;
}

/* Main step indicator styling with circle design and active/inactive states */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
}

.step-indicator.active {
  opacity: 1;
}

.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
  flex-shrink: 0;
}

/* Active step indicator styling with enhanced visibility */
.step-indicator.active .step-circle {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.step-number {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1;
}

/* Active step number color */
.step-indicator.active .step-number {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  transition: var(--transition);
}

.step-indicator.active .step-label {
  color: white;
  font-weight: 700;
}

/* Connector line between steps */
.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}

.step-connector.active {
  background: rgba(255, 255, 255, 0.6);
  height: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.step-label {
  display: inline;
  font-size: 0.8rem;
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

header .logo {
  max-width: 60px;
  height: auto;
  animation: logoFloat 3s ease-in-out infinite;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }
  header {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 36, 60, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--primary-color);
  color: white;
}

.btn-success:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 135, 107, 0.3);
}

.btn-outline-secondary {
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline-secondary:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--bg-white);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(36, 135, 107, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.form-help {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

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

/* ============================================
   WIZARD STEPS
   ============================================ */

.wizard-step {
  animation: fadeInUp 0.5s ease-out;
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

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

.wizard-step h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

/* ============================================
   SANDWICH PICKER
   ============================================ */

.sp-btn {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.sp-btn:hover {
  border-color: var(--primary-color);
  background: rgba(36, 135, 107, 0.05);
  transform: translateY(-2px);
}

.sp-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.sp-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-light);
}

.sp-meta {
  text-align: left;
}

.sp-name {
  color: var(--text-primary);
  font-size: 1rem;
}

.sp-menu {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
}

.sp-item {
  border: none;
  padding: 1rem;
  transition: var(--transition);
  border-radius: 0;
}

.sp-item:hover {
  background-color: rgba(36, 135, 107, 0.08);
  padding-left: 1.5rem;
}

.sp-item:first-child {
  border-radius: 6px 6px 0 0;
}

.sp-item:last-child {
  border-radius: 0 0 6px 6px;
}

/* ============================================
   ACCORDIONS
   ============================================ */

.accordion-button {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(36, 135, 107, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(36, 135, 107, 0.1);
}

.accordion-body {
  background: rgba(36, 135, 107, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--text-primary);
}

/* ============================================
   BADGES & PRICES
   ============================================ */

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.price-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: linear-gradient(135deg, var(--text-primary) 0%, #1a252f 100%);
  color: white;
  padding: 1rem 0;
  margin-top: 3rem;
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ============================================
   ALERTS & STATUS MESSAGES
   ============================================ */

.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(36, 135, 107, 0.1);
  color: var(--primary-dark);
  border-left: 4px solid var(--primary-color);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #c82333;
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border-left: 4px solid var(--warning-color);
}

/* ============================================
   RESPONSIVE SPACING
   ============================================ */

@media (max-width: 768px) {
  .row {
    margin: 0 -0.5rem;
  }

  [class*='col-'] {
    padding: 0 0.5rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   ANIMATIONS - CHECKOUT SUMMARY
   ============================================ */

.checkout-summary {
  background: linear-gradient(135deg, rgba(36, 135, 107, 0.08) 0%, rgba(36, 135, 107, 0.04) 100%);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.checkout-row.total {
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* ============================================
   SUCCESS & FAILURE PAGES
   ============================================ */

.success-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  animation: fadeInUp 0.6s ease-out;
}

.success-icon,
.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-container .card {
  background: linear-gradient(135deg, rgba(36, 135, 107, 0.05) 0%, rgba(36, 135, 107, 0.02) 100%);
  border-top: 4px solid var(--primary-color);
}

.error-container .card {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
  border-top: 4px solid var(--danger-color);
}

/* ============================================
   FORM CHECKBOXES
   ============================================ */

.form-check {
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(36, 135, 107, 0.1);
}

.form-check-label {
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ============================================
   LOADING STATES
   ============================================ */

.spinner-border {
  color: var(--primary-color);
}

/* ============================================
   MOBILE FIRST - SMALL DEVICES
   ============================================ */

/* ============================================
   MOBILE STEP INDICATORS - REDESIGNED
   ============================================ */

.step-indicators-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Mobile step indicator circles with active/inactive states */
.step-indicator-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
  flex-shrink: 0;
}

.step-indicator-mobile.active {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid white;
  color: var(--accent-color);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.15);
}

/* Mobile connector lines between steps -->*/
.mobile-connector {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-connector.active {
  background: rgba(255, 255, 255, 0.6);
  height: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .card {
    margin: 0 -0.5rem;
    border-radius: 8px;
  }

  .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
  }

  .btn-group .btn {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .row {
    gap: 0.5rem;
  }
}

/* Reduce footer height -->*/
/* Typography - smaller, professional fonts -->*/
.wizard-step h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-size: 1.1rem;
  letter-spacing: 0.3px;
}

/* Accordion margins for checkout -->*/
.accordion-checkout {
  margin: 0 -0.5rem;
}

.accordion-checkout .accordion-item {
  margin-bottom: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
}

.accordion-checkout .accordion-button {
  background: var(--bg-white);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
}

.accordion-checkout .accordion-button:not(.collapsed) {
  background: rgba(36, 135, 107, 0.08);
  color: var(--primary-color);
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.accordion-checkout .accordion-button:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: rgba(36, 135, 107, 0.08);
}

.accordion-checkout .accordion-body {
  background: rgba(36, 135, 107, 0.04);
  border-radius: 0 0 6px 6px;
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

/* Sandwich image in checkout -->*/
.checkout-sandwich-img {
  max-width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 2px solid var(--primary-color);
}

/* ============================================
   TABLET OPTIMIZATION
   ============================================ */

@media (max-width: 992px) {
  .wizard-step h1 {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .step-indicators {
    gap: 1rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
  }

  .step-number {
    font-size: 0.95rem;
  }

  .step-label {
    font-size: 0.8rem;
  }

  .step-connector {
    width: 30px;
  }
}

@media (max-width: 768px) {
  .wizard-header {
    padding: 0.75rem;
  }

  .step-indicators {
    gap: 0.75rem !important;
  }

  .step-indicator {
    gap: 0.5rem;
  }

  .step-circle {
    width: 32px;
    height: 32px;
  }

  .step-number {
    font-size: 0.85rem;
  }

  .step-label {
    display: none;
  }

  .step-connector {
    width: 20px;
  }

  .step-indicator-mobile span {
    font-size: 0.9rem;
  }

  .accordion-checkout .accordion-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .accordion-checkout .accordion-body {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .wizard-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .logo-nav {
    margin-bottom: 0.5rem;
  }

  .step-indicators-mobile {
    gap: 0.25rem;
  }

  .step-indicator-mobile {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .mobile-connector {
    width: 15px;
  }
}


#excludeList, #addList{
  margin-left: 1.5rem;
}


.mobile-price-view-screen-b{
  border: 1px solid grey;
    padding: 5px;
    border-radius: 12px;
}