﻿/**
 * Event Cost Estimator Styles
 * Ronnie's Catering & BBQ
 */

/* ── Variables ── */
.ece-wrap {
  --ece-white: #FFFFFF;
  --ece-blue: #2E7DB5;
  --ece-blue-dark: #1B5A82;
  --ece-blue-light: #E6F2FA;
  --ece-blue-mid: #6DB3D9;
  --ece-amber: #BA7517;
  --ece-amber-light: #FAEEDA;
  --ece-red-text: #854F0B;
  --ece-bg: #FAFAF8;
  --ece-card-bg: #FFFFFF;
  --ece-border: rgba(0,0,0,0.10);
  --ece-border-strong: rgba(0,0,0,0.18);
  --ece-text: #1C1C1A;
  --ece-text-mid: #4A4A46;
  --ece-text-muted: #888880;
  --ece-text-faint: #AEADA6;
  --ece-radius: 12px;
  --ece-radius-sm: 8px;
  --ece-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --ece-shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

.ece-wrap *, .ece-wrap *::before, .ece-wrap *::after {
  box-sizing: border-box;
}

/* ── Hero band ── */
.ece-hero {
  background: linear-gradient(135deg, #1C1C1A 0%, #2E2E2A 100%);
  padding: 40px 32px 36px;
  text-align: center;
  border-bottom: 3px solid var(--ece-blue);
}
.ece-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  color: white;
  line-height: 1.15;
  margin-bottom: 10px;
}
.ece-hero h1 span { color: var(--ece-blue-mid); }
.ece-hero p {
  font-size: 15px;
  color: rgba(255,255,255);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Disclaimer banner ── */
.ece-disclaimer-banner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px;
  background: var(--ece-amber-light);
  color: var(--ece-red-text);
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.5;
  border-bottom: 1px solid rgba(186,117,23,0.20);
}
.ece-disclaimer-banner strong {
  margin-right: 4px;
}
.ece-disclaimer-banner a {
  color: var(--ece-blue-dark);
  text-decoration: underline;
}

/* ── Category labels ── */
.ece-cat-label {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--ece-text);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ece-blue);
  display: inline-block;
}
.ece-cat-label:first-of-type {
  margin-top: 6px;
}

/* ── Main layout ── */
.ece-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ece-text);
  background: var(--ece-bg);
}

/* ── Section label ── */
.ece-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ece-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ece-section-label .ece-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ece-blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Package grid ── */
.ece-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.ece-pkg-card {
  background: var(--ece-card-bg);
  border: 1px solid var(--ece-border);
  border-radius: var(--ece-radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  position: relative;
}
.ece-pkg-card:hover {
  border-color: var(--ece-blue);
  box-shadow: var(--ece-shadow);
  transform: translateY(-1px);
}
.ece-pkg-card.selected {
  border: 2px solid var(--ece-blue);
  background: var(--ece-blue-light);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
.ece-pkg-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ece-blue);
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
}
.ece-pkg-card.selected .ece-pkg-badge { background: var(--ece-blue-dark); }
.ece-pkg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ece-text);
  margin-bottom: 5px;
  padding-right: 38px;
  line-height: 1.3;
}
.ece-pkg-card.selected .ece-pkg-name { color: var(--ece-blue-dark); }
.ece-pkg-price { font-size: 13px; color: var(--ece-blue); font-weight: 600; }
.ece-pkg-card.selected .ece-pkg-price { color: var(--ece-blue-dark); }
.ece-pkg-min { font-size: 11px; color: var(--ece-text-faint); margin-top: 3px; }
.ece-pkg-card.selected .ece-pkg-min { color: var(--ece-blue); }
.ece-pkg-sub { font-size: 11px; color: var(--ece-text-muted); margin-top: 3px; font-style: italic; }
.ece-pkg-card.selected .ece-pkg-sub { color: var(--ece-blue-dark); }

/* ── Warning ── */
.ece-warn-msg {
  display: none;
  font-size: 12px;
  color: var(--ece-red-text);
  background: var(--ece-amber-light);
  border: 1px solid rgba(186,117,23,0.25);
  border-radius: var(--ece-radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ── Divider ── */
.ece-divider {
  border: none;
  border-top: 1px solid var(--ece-border);
  margin: 28px 0;
}

/* ── Guest slider ── */
.ece-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ece-slider-row label {
  font-size: 14px;
  color: var(--ece-text-mid);
  min-width: 140px;
}
.ece-slider-wrap {
  flex: 1;
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}
.ece-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px 0 0 2px;
  background: var(--ece-blue);
  pointer-events: none;
  z-index: 0;
  width: 0;
}
.ece-slider-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: #D8D8D2;
  pointer-events: none;
  z-index: 0;
}
.ece-slider-row input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  position: relative;
  z-index: 1;
}
.ece-slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ece-blue);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.ece-slider-row input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ece-blue);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
.ece-slider-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--ece-text);
  min-width: 46px;
  text-align: right;
}

/* ── Service toggle ── */
.ece-service-toggle { display: flex; gap: 8px; }
.ece-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--ece-border-strong);
  border-radius: var(--ece-radius-sm);
  background: var(--ece-card-bg);
  color: var(--ece-text-mid);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.4;
}
.ece-toggle-btn:hover {
  border-color: var(--ece-blue);
  color: var(--ece-white);
}
.ece-wrap .ece-toggle-btn.active, .ece-wrap .ece-toggle-btn:focus {
  background: var(--ece-blue);
  border-color: var(--ece-blue);
  color: white;
  font-weight: 600;
}

/* ── Add-ons ── */
.ece-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ece-border);
}
.ece-addon-row:last-child { border-bottom: none; }
.ece-addon-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--ece-blue);
  flex-shrink: 0;
}
.ece-addon-label-wrap { flex: 1; }
.ece-addon-name { font-size: 13px; color: var(--ece-text); line-height: 1.3; }
.ece-addon-note { font-size: 11px; color: var(--ece-text-faint); margin-top: 1px; }
.ece-addon-price {
  font-size: 13px;
  color: var(--ece-text-muted);
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}

/* ── Summary ── */
.ece-summary-card {
  background: #1C1C1A;
  border-radius: var(--ece-radius);
  padding: 24px 28px;
  margin-top: 8px;
  box-shadow: var(--ece-shadow-lg);
}
.ece-summary-empty {
  font-size: 14px;
  color: rgba(255,255,255);
  font-style: italic;
}
.ece-summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: white;
  margin-bottom: 16px;
}
.ece-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: rgba(255,255,255);
  padding: 5px 0;
  gap: 12px;
}
.ece-summary-line .ece-amt {
  white-space: nowrap;
  color: rgba(255,255,255);
}
.ece-summary-subtotals {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  padding-top: 8px;
}
.ece-summary-subtotals .ece-summary-line { font-size: 12px; }
.ece-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 10px;
  padding-top: 14px;
}
.ece-summary-total .ece-label {
  font-size: 13px;
  color: rgba(255,255,255);
}
.ece-summary-total .ece-amount {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255);
  font-family: 'Playfair Display', serif;
}
.ece-summary-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255);
  margin-top: 12px;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

/* ── CTA ── */
.ece-cta-wrap {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ece-cta-btn {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  background: var(--ece-blue);
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: var(--ece-radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
}
.ece-cta-btn:hover { background: var(--ece-blue-dark); }
.ece-cta-btn.ece-secondary {
  background: transparent;
  border: 1px solid var(--ece-border-strong);
  color: var(--ece-text-mid);
  font-size: 18px;
}
.ece-cta-btn.ece-secondary:hover {
  border-color: var(--ece-blue);
  color: var(--ece-blue);
  background: var(--ece-blue-light);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .ece-hero { padding: 28px 16px 24px; }
  .ece-main { padding: 24px 14px 48px; }
  .ece-slider-row { flex-wrap: wrap; }
  .ece-slider-row label { min-width: unset; width: 100%; }
  .ece-service-toggle { flex-direction: column; }
  .ece-summary-card { padding: 18px 18px; }
}


/* ── Embedded mode (package pages) ── */
/* Override ECE color variables to match the site's navy/blue palette */
.ece-embedded {
  --ece-blue:           #0057a8;
  --ece-blue-dark:      #003a71;
  --ece-blue-light:     #dce8f5;
  --ece-blue-mid:       #448dbe;
  --ece-bg:             #f4f8fd;
  --ece-border:         rgba(0,87,168,0.12);
  --ece-border-strong:  rgba(0,87,168,0.28);
  background: var(--ece-bg);
  border: 1px solid var(--ece-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0 20px;
}
.ece-embedded .ece-disclaimer-banner {
  max-width: none;
  background: var(--ece-blue-light);
  color: var(--ece-blue-dark);
  border: none;
  border-bottom: 1px solid rgba(0,87,168,0.15);
  border-radius: 0;
  font-size: 13px;
}
.ece-embedded .ece-disclaimer-banner a {
  color: var(--ece-blue);
}
.ece-embedded .ece-main {
  max-width: none;
  padding-top: 20px;
  padding-bottom: 32px;
  background: transparent;
}
.ece-embedded .ece-summary-card {
  background: var(--ece-blue-dark);
}
.ece-embedded .ece-summary-total .ece-amount {
  color: rgba(255,255,255);
}
.ece-embedded .ece-cta-btn {
  min-width: 160px;
  background: var(--ece-blue);
}
.ece-embedded .ece-cta-btn:hover {
  background: var(--ece-blue-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}
.ece-embedded .ece-cta-btn.ece-secondary {
  background: transparent;
  border-color: rgba(0,87,168,0.35);
  color: var(--ece-blue-dark);
}
.ece-embedded .ece-cta-btn.ece-secondary:hover {
  background: var(--ece-blue-light);
  border-color: var(--ece-blue);
  color: var(--ece-blue);
}

/* ── Embedded package page header ── */
.ece-pkg-header {
  background: linear-gradient(to bottom, #1a4a8a 0%, #003a71 100%);
  padding: 20px 28px 18px;
  border-bottom: 3px solid #bd0000;
}
.ece-pkg-header h3 {
  font-family: Cambria, Georgia, Times, "Times New Roman", serif;
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
  padding: 0;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.ece-pkg-header p {
  font-size: 13px;
  color: rgba(255,255,255);
  margin: 0;
}
@media (max-width: 560px) {
  .ece-pkg-header { padding: 16px 16px 14px; }
  .ece-embedded .ece-main { padding: 18px 16px 24px; }
}