@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@media print {
  body { background: white; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .estimate-card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
.print-only { display: none; }

@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100% { transform:scale(1); } 50% { transform:scale(1.03); } }
@keyframes spin   { to { transform:rotate(360deg); } }
@keyframes shimmer { 0% { background-position:-400px 0; } 100% { background-position:400px 0; } }

.fade-up { animation: fadeUp 0.35s ease both; }

/* ── LOADING ── */
.msnq-loading-wrap {
  width: 100%; max-width: 860px; margin-top: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.msnq-spinner {
  width: 40px; height: 40px;
  border: 3px solid #EEECEA;
  border-top-color: #C8392B;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-bottom: 16px;
}
.msnq-loading-text { font-size: 14px; color: #9E9D97; font-family: 'Outfit', sans-serif; }

/* Skeleton shimmer for initial load */
.msnq-skeleton {
  width: 100%; max-width: 860px; background: white;
  border-radius: 20px; padding: 40px 44px; margin-top: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.msnq-skel-line {
  height: 20px; border-radius: 6px; margin-bottom: 12px;
  background: linear-gradient(90deg, #F0EFEB 25%, #E8E7E3 50%, #F0EFEB 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
}

/* ── LAYOUT ── */
.page-shell {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 0 16px 80px;
  font-family: 'Outfit', sans-serif; background: #ffffff; color: #1A1917;
}
.top-bar {
  width: 100%; max-width: 860px; padding: 28px 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; color: #1A1917; }
.logo-text span { color: #C8392B; }
.quote-id-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  color: #9E9D97; background: #EEECEA;
  padding: 5px 10px; border-radius: 20px; text-transform: uppercase;
}

/* ── PROGRESS BAR ── */
.progress-wrap { width: 100%; max-width: 860px; margin-top: 32px; }
.progress-track { display: flex; align-items: center; position: relative; }
.progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; position: relative; z-index: 2;
  border: 2px solid #E0DED8; background: #F7F6F2; color: #B0AFA8;
  transition: all 0.25s ease;
}
.step-circle.done  { background: #C8392B; border-color: #C8392B; color: white; }
.step-circle.active { background: white; border-color: #C8392B; color: #C8392B; box-shadow: 0 0 0 4px rgba(200,57,43,0.12); }
.step-label { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; margin-top: 6px; color: #B0AFA8; text-transform: uppercase; text-align: center; }
.step-label.active { color: #C8392B; }
.step-label.done   { color: #1A1917; }
.progress-line { position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: #E0DED8; z-index: 1; }
.progress-line-fill { height: 100%; background: #C8392B; transition: width 0.4s ease; }

/* ── CARD ── */
.step-card {
  width: 100%; max-width: 860px; background: white;
  border-radius: 20px; padding: 40px 44px; margin-top: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.step-title { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #1A1917; margin-bottom: 6px; }
.step-subtitle { font-size: 14px; color: #8A8980; margin-bottom: 32px; font-weight: 400; }
.step-subtitle.accent { color: #C8392B; font-weight: 600; }

/* ── SPORT GRID ── */
.sport-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sport-card {
  padding: 16px 8px 14px; border-radius: 12px;
  border: 1.5px solid #EEECEA; background: #FAFAF8;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 8px; transition: all 0.18s ease; user-select: none;
}
.sport-card:hover { border-color: #C8392B; background: #FFF8F7; }
.sport-card.selected { border-color: #C8392B; background: #FFF5F3; }
.sport-abbr {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #8A8980; background: #EEECEA; transition: all 0.18s ease;
  padding: 8px;
}
.sport-abbr svg { width: 100%; height: 100%; display: block; }
.sport-card.selected .sport-abbr { background: #C8392B; color: white; }
.sport-card:hover:not(.selected) .sport-abbr { background: #FADCD9; color: #C8392B; }
.sport-name { font-size: 11px; font-weight: 600; text-align: center; color: #6B6960; letter-spacing: 0.1px; line-height: 1.3; }
.sport-card.selected .sport-name { color: #C8392B; }

/* ── UNIFORM TYPE GRID ── */
.uniform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.uniform-card { padding: 18px 16px; border-radius: 12px; border: 1.5px solid #EEECEA; background: #FAFAF8; cursor: pointer; transition: all 0.18s ease; user-select: none; }
.uniform-card:hover { border-color: #C8392B; background: #FFF8F7; }
.uniform-card.selected { border-color: #C8392B; background: #FFF5F3; }
.uniform-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #D0CFC8; margin-bottom: 10px; transition: all 0.18s ease; }
.uniform-card.selected .uniform-dot { background: #C8392B; border-color: #C8392B; }
.uniform-label { font-size: 14px; font-weight: 600; color: #1A1917; }
.uniform-card.selected .uniform-label { color: #C8392B; }

/* ── INPUTS ── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #8A8980; margin-bottom: 8px; }
.form-input {
  width: 100% !important; padding: 13px 16px !important;
  border: 1.5px solid #E0DED8 !important; border-radius: 10px !important;
  font-size: 15px !important; font-family: 'Outfit', sans-serif !important;
  color: #1A1917 !important; background: white !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  outline: none !important; -webkit-appearance: none !important;
  box-shadow: none !important; height: auto !important;
}
.form-input:focus { border-color: #C8392B !important; box-shadow: 0 0 0 3px rgba(200,57,43,0.1) !important; }
.form-input:read-only { background: #F7F6F2 !important; color: #8A8980 !important; cursor: default !important; }
.form-input.syncing { border-color: #C8AA3B !important; }
.form-input.synced  { border-color: #4CAF50 !important; }
.form-input.error   { border-color: #E53935 !important; box-shadow: 0 0 0 3px rgba(229,57,53,0.1) !important; }
.form-error { font-size: 12px; color: #E53935; margin-top: 6px; font-weight: 500; }
.form-select {
  width: 100% !important; padding: 13px 16px !important;
  border: 1.5px solid #E0DED8 !important; border-radius: 10px !important;
  font-size: 15px !important; font-family: 'Outfit', sans-serif !important;
  color: #1A1917 !important; background: white !important; outline: none !important;
  cursor: pointer !important; transition: border-color 0.18s ease !important;
  -webkit-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 16px center !important;
  height: auto !important; box-shadow: none !important;
}
.form-select:focus { border-color: #C8392B !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── QUANTITY ── */
.qty-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #E0DED8; border-radius: 10px;
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 44px !important; height: 48px !important; border: none !important;
  background: #F7F6F2 !important; font-size: 20px !important; cursor: pointer !important;
  color: #1A1917 !important; transition: background 0.15s !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
  min-width: unset !important; text-transform: none !important;
}
.qty-btn:hover { background: #EEECEA !important; }
.qty-num {
  width: 70px !important; text-align: center !important; font-size: 20px !important;
  font-weight: 700 !important; border: none !important; outline: none !important;
  background: white !important; font-family: 'Outfit', sans-serif !important;
  color: #1A1917 !important; padding: 0 !important; height: 48px !important;
  -moz-appearance: textfield !important;
}
.qty-num::-webkit-outer-spin-button,
.qty-num::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.sizes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 8px; }
.size-box label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #8A8980; margin-bottom: 6px; text-align: center; }
.size-box input {
  width: 100% !important; padding: 10px 8px !important; border: 1.5px solid #E0DED8 !important;
  border-radius: 8px !important; font-size: 15px !important; font-family: 'Outfit', sans-serif !important;
  text-align: center !important; color: #1A1917 !important; background: white !important;
  outline: none !important; transition: border-color 0.18s !important; -moz-appearance: textfield !important;
}
.size-box input::-webkit-outer-spin-button,
.size-box input::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.size-box input:focus { border-color: #C8392B !important; }
.qty-hint { font-size: 12px; color: #9E9D97; margin-top: 12px; }
.qty-discount-badge { display: inline-block; padding: 4px 10px; background: #FFF5F3; color: #C8392B; border-radius: 20px; font-size: 12px; font-weight: 600; margin-left: 10px; }

/* ── CUSTOMIZATION PACKAGES ── */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.pkg-card {
  border: 2px solid #EEECEA; border-radius: 14px; padding: 20px 16px 16px;
  cursor: pointer; background: #FAFAF8; transition: all 0.2s ease;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: 0; word-wrap: break-word;
}
.pkg-card:hover { border-color: #C8C7C0; background: white; }
.pkg-card.selected { border-color: #C8392B; background: white; box-shadow: 0 4px 16px rgba(200,57,43,0.1); }
.pkg-card.popular::before {
  content: 'POPULAR'; position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%); background: #C8392B; color: white;
  font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.pkg-name { font-size: 15px; font-weight: 800; color: #1A1917; letter-spacing: -0.2px; }
.pkg-card.selected .pkg-name { color: #C8392B; }
.pkg-price { font-size: 12px; font-weight: 600; color: #8A8980; padding: 4px 8px; background: #F0EFEB; border-radius: 6px; width: fit-content; }
.pkg-card.selected .pkg-price { background: #FADCD9; color: #C8392B; }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pkg-features li { font-size: 12px; color: #6B6960; display: flex; align-items: flex-start; gap: 6px; line-height: 1.4; }
.pkg-features li .chk { width: 14px; height: 14px; border-radius: 50%; background: #E8E7E3; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pkg-card.selected .pkg-features li .chk { background: #C8392B; }
.pkg-card.selected .pkg-features li { color: #1A1917; }
.pkg-inherited { opacity: 0.55; }
.pkg-selector { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #D0CFC8; margin-top: auto; transition: all 0.18s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pkg-card.selected .pkg-selector { border-color: #C8392B; background: #C8392B; }

/* ── CUSTOMIZATION ── */
.custom-section { margin-bottom: 28px; }
.custom-section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #8A8980; margin-bottom: 12px; }
.color-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.color-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.color-swatch label { font-size: 11px; color: #8A8980; font-weight: 500; }
.color-swatch input[type="color"] { width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid #E0DED8; cursor: pointer; padding: 3px; background: white; }

/* ── BUTTONS — all with !important to override theme ── */
.btn-primary {
  padding: 14px 32px !important;
  background: #C8392B !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Outfit', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  letter-spacing: 0.2px !important;
  text-transform: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
}
.btn-primary:hover {
  background: #A82E23 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(200,57,43,0.3) !important;
}
.btn-primary:disabled {
  background: #D0CFC8 !important;
  color: #9E9D97 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.btn-secondary {
  padding: 14px 24px !important;
  background: transparent !important;
  color: #6B6960 !important;
  border: 1.5px solid #E0DED8 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Outfit', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  text-transform: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
  -webkit-appearance: none !important;
}
.btn-secondary:hover { border-color: #B0AFA8 !important; color: #1A1917 !important; background: transparent !important; }
.btn-wa {
  padding: 14px 24px !important; background: #25D366 !important; color: white !important;
  border: none !important; border-radius: 10px !important; font-size: 15px !important;
  font-weight: 700 !important; font-family: 'Outfit', sans-serif !important;
  cursor: pointer !important; transition: all 0.18s ease !important;
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  text-transform: none !important; text-decoration: none !important; line-height: 1.4 !important;
}
.btn-wa:hover { background: #1EB85A !important; transform: translateY(-1px) !important; color: white !important; }
.btn-pdf {
  padding: 14px 24px !important; background: #1A1917 !important; color: white !important;
  border: none !important; border-radius: 10px !important; font-size: 15px !important;
  font-weight: 700 !important; font-family: 'Outfit', sans-serif !important;
  cursor: pointer !important; transition: all 0.18s ease !important;
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  text-transform: none !important; text-decoration: none !important; line-height: 1.4 !important;
}
.btn-pdf:hover { background: #333 !important; transform: translateY(-1px) !important; color: white !important; }

.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid #F0EFEB; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ESTIMATE ── */
.estimate-card { width: 100%; max-width: 860px; background: white; border-radius: 20px; padding: 40px 44px; margin-top: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.estimate-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid #F0EFEB; }
.estimate-badge { display: inline-block; padding: 5px 12px; background: #E8F5E9; color: #2E7D32; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.estimate-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.price-range-box { text-align: right; }
.price-label { font-size: 12px; font-weight: 600; color: #8A8980; letter-spacing: 0.5px; text-transform: uppercase; }
.price-range { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: #C8392B; margin-top: 4px; }
.price-note { font-size: 12px; color: #9E9D97; margin-top: 4px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.summary-item { padding: 14px 16px; background: #FAFAF8; border-radius: 10px; border: 1px solid #F0EFEB; }
.summary-key { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #9E9D97; margin-bottom: 4px; }
.summary-val { font-size: 14px; font-weight: 600; color: #1A1917; }
.breakdown-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.breakdown-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #9E9D97; text-align: left; padding: 8px 12px; border-bottom: 1px solid #F0EFEB; }
.breakdown-table td { font-size: 14px; color: #1A1917; padding: 12px 12px; border-bottom: 1px solid #F8F7F4; }
.breakdown-table tr:last-child td { border-bottom: none; font-weight: 700; font-size: 15px; }
.locked-notice { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #FAFAF8; border-radius: 10px; border: 1px solid #F0EFEB; margin-bottom: 28px; font-size: 13px; color: #8A8980; }

/* ── SYNC STATUS ── */
.sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9E9D97; margin-top: 24px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #9E9D97; }
.sync-dot.active { background: #4CAF50; animation: pulse 1.5s infinite; }

/* ── FOOTER ── */
.footer-note { font-size: 12px; color: #B0AFA8; text-align: center; margin-top: 32px; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 700px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 12px 60px !important; }
  .top-bar { padding: 20px 0 0 !important; }
  .step-card, .estimate-card { padding: 24px 18px !important; margin-top: 20px !important; border-radius: 14px !important; }
  .step-title { font-size: 20px !important; }
  .step-subtitle { font-size: 13px !important; margin-bottom: 20px !important; }
  .sport-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
  .sport-abbr { width: 36px !important; height: 36px !important; font-size: 12px !important; }
  .sport-name { font-size: 10px !important; }
  .sport-card { padding: 12px 4px 10px !important; gap: 6px !important; }
  .uniform-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .sizes-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .summary-grid { grid-template-columns: 1fr !important; }
  .progress-wrap .step-label { display: none !important; }
  .price-range { font-size: 24px !important; }
  .estimate-header { flex-direction: column !important; gap: 16px !important; }
  .price-range-box { text-align: left !important; }
  .action-row { flex-direction: column !important; }
  .action-row button { width: 100% !important; justify-content: center !important; }
  .btn-primary, .btn-secondary { padding: 12px 20px !important; font-size: 14px !important; }
  .nav-row { margin-top: 24px !important; padding-top: 20px !important; }
  .pkg-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .pkg-card { padding: 16px 12px 12px !important; }
  .pkg-name { font-size: 14px !important; }
  .pkg-features li { font-size: 11px !important; }
  .color-row { gap: 8px !important; }
  .color-swatch input[type="color"] { width: 40px !important; height: 40px !important; }
  .qty-num { width: 60px !important; font-size: 18px !important; }
  .breakdown-table { font-size: 12px !important; }
  .breakdown-table td, .breakdown-table th { padding: 8px 8px !important; }
  .logo-text { font-size: 15px !important; }
  .quote-id-badge { font-size: 10px !important; padding: 4px 8px !important; }
  .step-circle { width: 28px !important; height: 28px !important; font-size: 11px !important; }
}

@media (max-width: 420px) {
  .sport-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .pkg-grid   { grid-template-columns: 1fr !important; }
}
