/* ========================================================
   IAMFRESH.IN - MODERN DESIGN SYSTEM & PARTY PLANNER CSS
   Version: 4.0 (Production)
   ======================================================== */

:root {
  --if-primary: #0a4d3c;
  --if-primary-hover: #064e3b;
  --if-primary-light: #ecfdf5;
  --if-primary-border: #a7f3d0;
  
  --if-accent-emerald: #10b981;
  --if-accent-rose: #e11d48;
  --if-accent-amber: #f59e0b;
  --if-accent-blue: #2563eb;
  
  --if-bg-body: #f8fafc;
  --if-bg-surface: #ffffff;
  --if-border: #e2e8f0;
  --if-border-light: #f1f5f9;
  
  --if-heading: #0f172a;
  --if-body: #334155;
  --if-muted: #64748b;
  
  --if-radius-sm: 8px;
  --if-radius-md: 12px;
  --if-radius-lg: 16px;
  --if-radius-xl: 20px;
  --if-radius-full: 9999px;
  
  --if-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --if-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --if-shadow-hover: 0 12px 28px -6px rgba(10, 77, 60, 0.16);
}

.if-container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ========================================================
   PARTY PLANNER & BULK ENQUIRY STYLING (APP WIZARD)
   ======================================================== */
.if-party-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-bottom: 1px solid var(--if-border);
}

/* Stepper Progress Bar */
.if-wizard-stepper-wrap {
  background: #ffffff;
  border: 1px solid var(--if-border);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--if-shadow-sm);
}
.if-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.if-wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 2;
  background: #ffffff;
  padding: 4px 8px;
  transition: all 0.2s ease;
}
.if-wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  border: 2px solid #e2e8f0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.if-wizard-step-label {
  display: flex;
  flex-direction: column;
}
.if-wizard-step-label .step-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}
.if-wizard-step-label .step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #475569;
}
.if-wizard-step.active .if-wizard-step-circle {
  background: #0a4d3c;
  color: #ffffff;
  border-color: #0a4d3c;
  box-shadow: 0 0 0 4px rgba(10, 77, 60, 0.15);
}
.if-wizard-step.active .if-wizard-step-label .step-title {
  color: #0a4d3c;
}
.if-wizard-step.completed .if-wizard-step-circle {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.if-wizard-connector {
  flex-grow: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px;
}
@media (max-width: 640px) {
  .if-wizard-step-label .step-num {
    display: none;
  }
  .if-wizard-step-label .step-title {
    font-size: 11.5px;
  }
  .if-wizard-step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .if-wizard-connector {
    margin: 0 4px;
  }
}

/* Card Header & Tray Header Styles */
.if-step-header {
  width: 100% !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 14px !important;
  margin-bottom: 20px !important;
  display: block !important;
}

.if-tray-header {
  width: 100% !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 12px !important;
  margin-bottom: 14px !important;
  display: block !important;
}

/* Neutralize legacy .border-bottom overrides from style.css */
.if-party-hero .border-bottom,
.if-wizard-stepper-wrap .border-bottom,
.if-wizard-step-pane .border-bottom,
.if-party-tray-card .border-bottom,
.card .border-bottom {
  width: 100% !important;
  height: auto !important;
  margin: 0 0 12px 0 !important;
  background-color: transparent !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Category Selection Grid */
.if-party-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 991px) {
  .if-party-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .if-party-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
.if-party-cat-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  box-sizing: border-box;
}
.if-party-cat-card:hover {
  border-color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: var(--if-shadow-sm);
}
.if-party-cat-card.selected {
  border-color: #0a4d3c;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(10, 77, 60, 0.12);
}
.if-party-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.if-party-cat-icon .cat-img-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.if-party-cat-card.selected .if-party-cat-icon {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.if-party-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--if-heading);
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

/* Subcategory Cuts Chips */
.if-party-subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.if-party-subcat-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin: 0 6px 8px 0;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.if-party-subcat-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.if-party-subcat-chip.selected {
  border-color: #0a4d3c;
  background: #0a4d3c;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(10, 77, 60, 0.2);
}
.if-party-subcat-chip .chip-check {
  display: none;
}
.if-party-subcat-chip.selected .chip-check {
  display: inline-block;
  color: #10b981;
}

/* Slot Radio Cards */
.if-slot-card {
  display: block;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
}
.if-slot-card input[type="radio"] {
  display: none;
}
.if-slot-card:hover {
  border-color: #cbd5e1;
}
.if-slot-card.active {
  border-color: #0a4d3c;
  background: #f0fdf4;
  box-shadow: 0 4px 12px rgba(10, 77, 60, 0.1);
}
.if-slot-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.if-slot-time {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
.if-slot-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Occasion & Guest Pills with Single Line Layout */
#occasion-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 6px !important;
  margin-top: 6px !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important;  /* IE and Edge */
}
#occasion-chips::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari and Opera */
  width: 0 !important;
  height: 0 !important;
}

#guest-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 8px !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  scrollbar-width: none !important;
}
#guest-chips::-webkit-scrollbar {
  display: none !important;
}

.if-occasion-pill {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 6px 11px !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  line-height: 1.25 !important;
}

.if-occasion-pill .pill-emoji {
  display: inline-block !important;
  font-size: 13.5px !important;
  margin-right: 5px !important;
}

.if-occasion-pill .pill-text {
  display: inline-block !important;
  font-size: 12px !important;
  letter-spacing: 0.1px !important;
}

.if-guest-pill {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 7px 14px !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  line-height: 1.25 !important;
}

.if-guest-pill .pill-emoji {
  display: inline-block !important;
  font-size: 13px !important;
  margin-right: 5px !important;
}

.if-guest-pill .pill-text {
  display: inline-block !important;
  font-size: 12.5px !important;
  letter-spacing: 0.1px !important;
}

.if-occasion-pill:hover, .if-guest-pill:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

.if-occasion-pill.active, .if-guest-pill.active {
  background: #0a4d3c !important;
  color: #ffffff !important;
  border-color: #0a4d3c !important;
  box-shadow: 0 3px 10px rgba(10, 77, 60, 0.25) !important;
}

/* Area / Neighborhood Custom Select & Options */
select#area.custom-area-select,
select#area.form-control,
select#area.form-select {
  height: 46px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  cursor: pointer !important;
}

select#area.custom-area-select:focus,
select#area.form-control:focus {
  border-color: #0a4d3c !important;
  box-shadow: 0 0 0 3px rgba(10, 77, 60, 0.15) !important;
}

select#area option {
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  text-transform: capitalize !important;
}

/* Header One-Line Layout & Buttons */
.header-nav-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.header-left-brand {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex-shrink: 0 !important;
}

.header-right-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.header-right-nav .padding-top,
.header-right-nav .pull-right {
  padding-top: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.navbar1 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

.navbar1 > * {
  float: none !important;
  margin: 0 !important;
}

.btn-header-party-plan,
.btn-header-party-order {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 13px !important;
  border-radius: 9999px !important;
  background: #f0fdf4 !important;
  border: 1.5px solid #0a4d3c !important;
  color: #0a4d3c !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-header-party-plan:hover,
.btn-header-party-order:hover {
  background: #0a4d3c !important;
  color: #ffffff !important;
}

.btn-header-party-plan:hover i,
.btn-header-party-order:hover i {
  color: #ffffff !important;
}

.navbar1 .userloginbutton {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 8px 10px !important;
}

.navbar1 .dropdown1 {
  display: inline-block !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.navbar1 .dropdown1 .dropbtn {
  white-space: nowrap !important;
  padding: 8px 12px !important;
}

.navbar1 .opencart {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
}

/* Form Controls inside Wizard Step 3 */
.if-wizard-step-pane .form-control:not(select) {
  height: 46px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  box-shadow: none !important;
}
.if-wizard-step-pane textarea.form-control {
  height: auto !important;
  min-height: 80px !important;
  padding: 10px 14px !important;
}
.if-wizard-step-pane .input-group {
  display: flex !important;
  align-items: stretch !important;
}
.if-wizard-step-pane .input-group-text {
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid #cbd5e1 !important;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  background: #f1f5f9 !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #475569 !important;
}
.if-wizard-step-pane .input-group .form-control {
  border-radius: 0 8px 8px 0 !important;
}
.if-wizard-step-pane .form-control:focus {
  border-color: #0a4d3c !important;
  box-shadow: 0 0 0 3px rgba(10, 77, 60, 0.15) !important;
}

/* ========================================================
   Modern Corporate Party Tray Side Menu (.if-party-tray-card)
   ======================================================== */
.if-party-tray-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}

.if-tray-header {
  width: 100% !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  display: block !important;
}

.if-tray-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.if-tray-count-badge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
}

/* Empty State */
.if-tray-empty-box {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 24px 16px !important;
  text-align: center !important;
  margin-bottom: 14px !important;
}

.if-tray-empty-icon {
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #10b981 !important;
  font-size: 18px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

.if-tray-empty-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin-bottom: 4px !important;
}

.if-tray-empty-desc {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  max-width: 260px !important;
  margin: 0 auto !important;
}

/* Item Rows when added */
.if-tray-items-list {
  max-height: 280px !important;
  overflow-y: auto !important;
}

.if-tray-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease !important;
}

.if-tray-item-row:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

.if-tray-item-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Totals Strip */
.if-tray-totals-strip {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

.if-tray-total-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.if-tray-total-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.if-tray-total-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.if-tray-total-divider {
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 8px 0 !important;
}

.if-tray-pricing-badge {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
}

/* Event & Delivery Review Box */
.if-tray-event-box {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  transition: all 0.2s ease !important;
}

.if-tray-event-box:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.if-tray-event-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding-bottom: 9px !important;
  margin-bottom: 12px !important;
}

.if-tray-event-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.btn-tray-edit {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.btn-tray-edit:hover {
  background: #0a4d3c !important;
  color: #ffffff !important;
  border-color: #0a4d3c !important;
  text-decoration: none !important;
}

.btn-tray-edit i {
  font-size: 10px !important;
}

.if-tray-event-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 14px !important;
}

.if-tray-event-cell {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.if-tray-event-cell-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  color: #64748b !important;
  margin-bottom: 2px !important;
  display: block !important;
}

.if-tray-event-cell-val {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Assurance Strip */
.if-tray-assurance-box {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.if-tray-assurance-icon {
  color: #16a34a !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.if-tray-assurance-text {
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #166534 !important;
}

/* Assistance Helpline */
.if-tray-helpline-box {
  text-align: center !important;
  padding-top: 4px !important;
}

.if-tray-helpline-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.if-tray-helpline-link:hover {
  color: #0a4d3c !important;
  text-decoration: none !important;
}

.if-tray-helpline-link strong {
  color: #0a4d3c !important;
  font-weight: 800 !important;
}
