/* ============================================
   SNAP2QUOTE - Complete Stylesheet
   Font: Montserrat (Google Fonts)
   Framework: Vanilla CSS (replica of MUI-based original)
   ============================================ */

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.87);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
}

strong, b {
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

ul {
  padding-left: 20px;
}

/* --- APP BODY (background) --- */
.app-body {
  background-color: #fafafa;
  background-image: url('../assets/background.png');
  background-position: center top;
  background-repeat: repeat;
  background-size: 384px auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
.header {
  padding: 12px 0;
  box-shadow: none;
  background-color: transparent;
  position: relative;
  z-index: 1100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 56px;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
}

.header-logo {
  cursor: pointer;
  width: 320px;
  height: auto;
  max-height: 110px;
  display: block;
  object-fit: contain;
}

.login-button {
  color: #fff;
  background-color: #28a745;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s;
}

.login-button:hover {
  background-color: #218838;
}

/* --- MAIN --- */
main {
  padding: 2rem;
  flex: 1;
}

/* --- JUNK REMOVAL CONTAINER --- */
.junk-removal-container {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* --- MAIN PAPER (white card) --- */
.main-paper {
  text-align: center;
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* --- PAGE TITLE --- */
.page-title {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 11.9px;
  line-height: 1.235;
}

.page-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* --- UPLOAD BOX --- */
.upload-box {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

.upload-box.drag-over {
  background-color: #f0f9ff;
  border: 2px dashed #2887cc;
}

.upload-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.upload-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  margin-top: 1rem;
  line-height: 1.6;
}

.upload-description {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 0.25rem;
}

.choose-files-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #495057;
  background-color: transparent;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 5px 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-transform: none;
  transition: background-color 0.25s;
}

.choose-files-btn:hover {
  background-color: #f8f9fa;
}

.attach-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.upload-hint {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
}

/* --- IMAGE PREVIEWS --- */
.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1rem;
}

.image-preview-card {
  background: #f3f4f6;
  border-radius: 12px;
  width: 120px;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.image-preview-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.image-remove-btn {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: background-color 0.2s;
}

.image-remove-btn:hover {
  background: #d9363e;
}

/* --- PHOTO GUIDELINES BOX --- */
.guidelines-box {
  text-align: left;
  background-color: #e9f5fe;
  border: 1px solid #d0ebfb;
  border-radius: 24px;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.guidelines-title {
  font-family: "Montserrat", sans-serif;
  color: #2887cc;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.info-icon {
  width: 24px;
  height: 24px;
  fill: #2887cc;
  flex-shrink: 0;
}

.guidelines-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
}

.guidelines-section {
  flex: 1;
}

.guidelines-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.87);
}

.guidelines-list {
  margin: 0;
  padding-left: 20px;
}

.guidelines-list li {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 4px;
  line-height: 1.5;
}

/* --- ADDITIONAL INFORMATION DROPDOWN --- */
.additional-dropdown {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.additional-dropdown-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.additional-dropdown-header .title {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  text-align: left;
}

.additional-dropdown-header .subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
}

.arrow {
  font-size: 18px;
  transition: transform 0.25s;
  color: rgba(0, 0, 0, 0.6);
  user-select: none;
}

.arrow.open {
  transform: rotate(180deg);
}

.additional-dropdown-body {
  padding: 12px 16px 16px;
}

.additional-dropdown-body textarea {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid #c4c4c4;
  border-radius: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.additional-dropdown-body textarea:focus {
  border-color: #000;
  border-width: 2px;
}

.additional-dropdown-body textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* --- reCAPTCHA / Turnstile --- */
.recaptcha-wrapper,
.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* --- ANALYZE BUTTON --- */
.analyze-btn {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  background-color: #5cb85c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
  box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),
              0px 2px 2px 0px rgba(0,0,0,0.14),
              0px 1px 5px 0px rgba(0,0,0,0.12);
}

.analyze-btn:hover:not(:disabled) {
  background-color: #4cae4c;
  box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2),
              0px 4px 5px 0px rgba(0,0,0,0.14),
              0px 1px 10px 0px rgba(0,0,0,0.12);
}

.analyze-btn:disabled {
  background-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.26);
  cursor: default;
  box-shadow: none;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  border-top: 1px solid rgba(156, 151, 151, 0.6);
  padding: 2rem;
}

.footer-text {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
}

/* ============================================
   WELCOME DIALOG / MODAL
   ============================================ */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.dialog-paper {
  position: relative;
  z-index: 2;
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 11px 15px -7px,
              rgba(0, 0, 0, 0.14) 0px 24px 38px 3px,
              rgba(0, 0, 0, 0.12) 0px 9px 46px 8px;
}

.dialog-content {
  padding: 20px 24px;
  text-align: center;
}

.dialog-header {
  margin-bottom: 24px;
}

.dialog-title {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 8px;
  line-height: 1.235;
}

.dialog-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.75;
}

.dialog-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.dialog-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  flex: 1;
  max-width: 240px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.dialog-card:hover {
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
  background-color: #fafaff;
}

.card-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.card-icon {
  width: 32px;
  height: 32px;
  fill: #1a1a2e;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 8px;
}

.card-description {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.dialog-help-text {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #5cb85c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   COMMON FORM WRAPPER (used for Sign Up page)
   ============================================ */
.common_form_wrapper {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.common_form_wrapper .form-title {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.common_form_wrapper .form-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #6c757d;
  text-align: center;
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  text-align: left;
}

.form-group.full-width {
  flex: none;
  width: 100%;
}

.form-label {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.87);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background-color: #fff;
}

.form-input:focus {
  border-color: #000;
  border-width: 2px;
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Common Button (used for "Next", "Analyze", etc.) */
.common_button {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  background-color: #5cb85c;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.25s;
  margin-top: 1rem;
}

.common_button:hover {
  background-color: #4cae4c;
}

/* ============================================
   PAYMENT BUTTONS (Quote results page)
   ============================================ */
.paymentBtn-area {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  margin-top: 1.5rem;
}

.paymentBtn-area .whiteSubmit-btn {
  color: #363131;
  text-transform: capitalize;
  background-color: #fff;
  border: 1px solid #363131;
  width: 48%;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.6s;
}

.paymentBtn-area .whiteSubmit-btn:hover {
  background-color: #e6f9ec;
  border-color: #e6f9ec;
}

.paymentBtn-area .submit-btn {
  color: #fff;
  text-transform: capitalize;
  background-color: #58d382;
  border: 1px solid #58d382;
  width: 48%;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.6s;
}

.paymentBtn-area .submit-btn:hover {
  background-color: #15bd4e;
  border-color: #15bd4e;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease-out;
  max-width: 360px;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

.toast.loading {
  background-color: #6c757d;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  .header-container { padding: 0 16px; }
  .header-logo { width: 220px; max-height: 76px; }

  main { padding: 1rem; }
  .junk-removal-container { padding-top: 1rem; padding-bottom: 1rem; }
  .main-paper { padding: 1.25rem; border-radius: 14px; }

  .page-title,
  .dialog-title,
  .form-title,
  .verify-title { font-size: 22px !important; }
  .page-subtitle,
  .dialog-subtitle,
  .form-subtitle { font-size: 14px; }

  .guidelines-content { flex-direction: column; gap: 1rem; }
  .guidelines-box { padding: 1rem; border-radius: 16px; }
  .guidelines-title { font-size: 16px; }

  .dialog-cards { flex-direction: column; align-items: stretch; }
  .dialog-card { max-width: 100%; width: 100%; padding: 18px; }
  .dialog-paper { margin: 12px; padding: 16px; max-width: 100%; }
  .dialog-content { padding: 8px 4px; }

  .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .form-group { margin-bottom: 12px; }

  .upload-box { padding: 1.25rem; border-radius: 18px; }
  .upload-icon { width: 64px; height: 64px; }
  .upload-title { font-size: 17px; }

  .image-preview-card { width: 84px; height: 84px; }

  .additional-dropdown { border-radius: 18px; }

  .analyze-btn,
  .common_button { font-size: 1rem; padding: 0.85rem; min-height: 48px; }

  .recaptcha-wrapper { transform: scale(0.85); transform-origin: center; }

  /* Pricing tabs scroll horizontally on mobile */
  .pricing-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .pricing-tab { white-space: nowrap; padding: 12px 14px; font-size: 13px; }

  .options-pricing-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .option-pricing-row { padding: 10px 0; }

  .category-toggles { grid-template-columns: 1fr; }

  /* Quote/payment cards stack */
  .payment-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card { position: static; padding: 20px; }

  /* Step indicator wraps */
  .step-indicator { gap: 4px; font-size: 11px; padding: 0 8px; }
  .step-connector { flex: 0 0 16px; }
  .step .step-num { width: 22px; height: 22px; font-size: 11px; }

  /* Dashboard */
  .dashboard-container { padding: 1rem 16px 2rem; }
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .dashboard-title { font-size: 22px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .lead-card-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .info-row { flex-direction: column; gap: 2px; padding: 8px 0; }
  .info-row strong { text-align: left; }

  /* Verify page items */
  .item-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .item-actions { justify-content: space-between; }

  /* Waste questionnaire */
  .question-card { padding: 18px; border-radius: 14px; }
  .question-text { font-size: 17px; }
  .option-box { padding: 12px 14px; }
  .option-label { font-size: 14px; }

  /* Quote page */
  .quote-card { padding: 24px 18px; }
  .quote-price { font-size: 28px; }

  /* Quote banner stacks */
  .quote-banner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px; }
  .quote-banner-price { font-size: 20px; align-self: flex-end; }

  /* Payment buttons stack */
  .paymentBtn-area {
    flex-direction: column;
    gap: 10px;
  }
  .paymentBtn-area .submit-btn,
  .paymentBtn-area .whiteSubmit-btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  /* Trial banner */
  .trial-banner {
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
  }

  /* Touch targets — make buttons and clickable cards easier to tap */
  .choose-files-btn,
  .add-pill,
  .image-remove-btn,
  .trash-btn,
  .pricing-tab,
  .change-link {
    min-height: 36px;
  }
}

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

  .header { padding: 8px 0; }
  .header-container { padding: 0 12px; }
  .header-logo { width: 150px; max-height: 52px; }
  .header-toolbar { min-height: 52px; }

  .page-title,
  .dialog-title { font-size: 19px !important; }

  .upload-icon { width: 56px; height: 56px; }
  .image-preview-card { width: 72px; height: 72px; }

  .quote-price { font-size: 24px; }
  .stat-value { font-size: 18px; }

  .step-indicator .step:not(.active):not(.done) { display: none; }
  .step-indicator .step-connector:last-child,
  .step-indicator .step-connector { display: none; }
  .step-indicator .step.active + .step-connector,
  .step-indicator .step + .step-connector { display: block; flex: 1; min-width: 8px; }

  .dialog-card { padding: 14px; }
  .card-icon-circle { width: 56px; height: 56px; margin-bottom: 12px; }

  .footer { padding: 1.5rem 1rem; }
  .footer-text { font-size: 14px; }

  main { padding: 0.75rem; }
  .junk-removal-container { padding-top: 0.5rem; padding-bottom: 1rem; }
  .main-paper { padding: 1rem; border-radius: 12px; }

  /* Compact eco banner on tiny phones */
  .eco-banner { font-size: 12px; padding: 6px 12px; gap: 6px; }
  .eco-icon { width: 16px; height: 16px; }

  /* Tighter category cards on phone */
  .category-icon { width: 48px; height: 48px; margin-bottom: 8px; }
  .category-icon svg { width: 28px; height: 28px; }
  .category-title { font-size: 15px; }
  .category-description { font-size: 12px; }

  /* Compact analyzing modal */
  .analyzing-modal { padding: 28px 20px; }
  .analyzing-title { font-size: 18px; }
  .analyzing-subtitle { font-size: 13px; }

  /* Confirmation page */
  .confirmation-card,
  .error-card { padding: 28px 18px; }

  /* Quote price wraps cleanly */
  .quote-card { padding: 22px 14px; }

  /* Admin nav tabs full-width */
  .admin-nav { width: 100%; justify-content: stretch; }
  .admin-nav-btn { flex: 1; padding: 10px 8px; font-size: 13px; }
}

/* ============================================
   GLOBAL MOBILE QUALITY-OF-LIFE
   ============================================ */

/* Prevent iOS Safari from auto-zooming when focusing inputs.
   Any font-size < 16px on inputs triggers it. */
@media (max-width: 768px) {
  input.form-input,
  select.form-input,
  textarea,
  .additional-dropdown-body textarea {
    font-size: 16px !important;
  }

  /* Long customer URLs / emails / addresses wrap instead of overflowing */
  .info-row strong,
  .biz-meta-item a,
  .lead-row a,
  .lead-row.note em {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Lead cards: stat row gets tight on tiny screens */
  .dashboard-stats { grid-template-columns: 1fr 1fr; }

  /* Pricing-edit input stays usable */
  .option-pricing-input input { width: 80px; font-size: 14px; }

  /* Logo edit row in admin */
  .logo-edit-preview { width: 100px; height: 64px; }

  /* Trial banner Exit button doesn't get squished */
  .trial-exit { padding: 6px 12px; font-size: 12px; min-height: 32px; }

  /* Modals get a comfortable margin from screen edges */
  .dialog-paper,
  .analyzing-modal { margin-left: 12px; margin-right: 12px; }
}

/* Disable hover effects on touch devices (avoids "stuck hover" state) */
@media (hover: none) {
  .category-card:hover,
  .dialog-card:hover,
  .lead-card:hover,
  .stat-card:hover,
  .add-pill:hover,
  .pricing-tab:hover { transform: none !important; box-shadow: none; }
}

/* ============================================
   ANALYZING MODAL
   ============================================ */
.analyzing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analyzing-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14);
}

.analyzing-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e7ff;
  border-top-color: #2887cc;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}

.analyzing-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(0,0,0,0.87);
  margin-bottom: 6px;
}

.analyzing-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.analyzing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.analyzing-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #6b7280;
}

.step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: inline-block;
  flex-shrink: 0;
  background: #fff;
}

.analyzing-steps li.done {
  color: rgba(0,0,0,0.87);
  font-weight: 500;
}

.analyzing-steps li.done .step-icon {
  background: #22c55e url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/12px no-repeat;
  border-color: #22c55e;
}

.rolling-statement {
  margin-top: 18px;
  height: 22px;
  line-height: 22px;
  font-size: 14px;
  font-weight: 500;
  color: #16a34a;
  text-align: center;
  font-style: italic;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  overflow: hidden;
}

.rolling-statement.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   VERIFY ITEMS PAGE
   ============================================ */
.verify-title {
  font-size: 22px;
  font-weight: 600;
  color: rgba(0,0,0,0.87);
  margin-bottom: 1rem;
  text-align: left;
}

.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.photo-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.item-row {
  background: #f5f9fc;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 600; font-size: 15px; color: rgba(0,0,0,0.87); }
.item-caption { font-size: 13px; color: #6b7280; margin-top: 2px; }

.item-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trash-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.trash-btn:hover { background: #fee2e2; }

.add-missing { margin-bottom: 1.5rem; }

.add-missing-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(0,0,0,0.87);
}

.add-missing-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.add-pill {
  background: transparent;
  border: 1px solid #5cb85c;
  color: #16a34a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: background-color 0.2s;
}
.add-pill:hover { background: #f0fdf4; }

.access-info-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 1.5rem;
  background: #fff;
}

.access-info-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(0,0,0,0.87);
}

.access-info-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
}

.access-info-card .form-group { margin-bottom: 12px; }
.access-info-card .form-input { max-width: 200px; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.87);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}

.checkbox-label input:checked + .checkbox-custom {
  background: #22c55e;
  border-color: #22c55e;
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-custom.heavy {
  border-color: #f59e0b;
}
.checkbox-label input:checked + .checkbox-custom.heavy {
  background: #f59e0b;
  border-color: #f59e0b;
}

.heavy-label {
  color: #f59e0b;
  font-weight: 600;
}

.summary-box {
  background: #eef7fb;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.summary-item { text-align: left; }
.summary-caption { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-value { font-size: 22px; font-weight: 700; color: rgba(0,0,0,0.87); margin-top: 2px; }

/* ============================================
   WASTE QUESTIONNAIRE PAGE
   ============================================ */
.waste-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.waste-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.waste-step-title {
  font-size: 28px;
  font-weight: 800;
  color: rgba(0,0,0,0.87);
  margin-bottom: 6px;
}

.waste-step-subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #22c55e;
  transition: width 0.3s ease;
}

.question-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  color: rgba(0,0,0,0.87);
  margin-bottom: 6px;
}

.question-subtext {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-box {
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.option-box:hover { border-color: #cbd5e1; }

.option-box.selected {
  border-color: #22c55e;
  background: #f0fdf4;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-checkbox,
.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  background: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.option-checkbox { border-radius: 4px; }
.option-radio { border-radius: 50%; }

.option-checkbox.checked,
.option-radio.checked {
  background: #22c55e;
  border-color: #22c55e;
}

.option-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.87);
}

.option-chip {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.option-chip.chip-selected {
  background: #dcfce7;
  color: #16a34a;
}

.error-alert {
  margin-top: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* ============================================
   QUOTE PAGE
   ============================================ */
.quote-container-wrap {
  max-width: 560px;
}

.quote-card {
  background: #F0F8FF;
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.quote-check-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5ED47C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.quote-title {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin-bottom: 12px;
}

.quote-price {
  font-size: 36px;
  font-weight: 700;
  color: #28A745;
  margin-bottom: 8px;
  line-height: 1.2;
}

.quote-subtitle {
  font-size: 14px;
  color: #475467;
  margin-bottom: 16px;
}

.quote-footer {
  font-size: 12px;
  color: #28A745;
  font-weight: 500;
}

/* ============================================
   USER DETAILS / SCHEDULE
   ============================================ */
.schedule-card {
  background: #f0f9ff;
  border: 1px solid #d0ebfb;
  border-radius: 12px;
  padding: 18px;
  margin-top: 8px;
  margin-bottom: 1rem;
}

.schedule-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(0,0,0,0.87);
  margin-bottom: 12px;
}

.schedule-card .form-row { margin-bottom: 0; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================
   BUSINESS SIGN-UP / STEP INDICATOR
   ============================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 4px;
}

.step .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step.active { color: #16a34a; }
.step.active .step-num { background: #16a34a; color: #fff; }

.step.done { color: #16a34a; }
.step.done .step-num { background: #16a34a; color: #fff; }

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: #e2e8f0;
}

.step-connector.done { background: #16a34a; }

.field-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

/* ============================================
   PRICING FORM SECTIONS
   ============================================ */
.pricing-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-section:last-of-type { border-bottom: none; }

.pricing-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35);
}

.success-url-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.success-url-label {
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 10px;
}

.success-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.success-url-row input {
  flex: 1;
  font-family: monospace;
  font-size: 14px;
  background: #fff;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 24px 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 14px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leads-section, .dashboard-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.leads-list { display: flex; flex-direction: column; gap: 12px; }

.leads-empty {
  padding: 32px;
  text-align: center;
  color: #9ca3af;
  background: #f9fafb;
  border-radius: 12px;
}

.lead-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}

.lead-card:hover { border-color: #22c55e; }

.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.lead-name {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.lead-when {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.lead-quote {
  font-weight: 700;
  font-size: 18px;
  color: #16a34a;
}

.lead-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-row {
  font-size: 13px;
  color: #374151;
}

.lead-row span {
  font-weight: 600;
  color: #6b7280;
  display: inline-block;
  min-width: 70px;
}

.lead-row a { color: #16a34a; text-decoration: none; }
.lead-row a:hover { text-decoration: underline; }

.lead-row.note {
  background: #fffbeb;
  border-left: 3px solid #fbbf24;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 6px;
}
.lead-row.note span { color: #b45309; }
.lead-row.note em { color: #78350f; font-style: italic; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  gap: 16px;
}

.info-row:last-child { border-bottom: none; }
.info-row span { color: #6b7280; }
.info-row strong { color: #111827; word-break: break-all; text-align: right; }

/* ============================================
   TRIAL MODE BANNER
   ============================================ */
.trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #1f2937;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.trial-banner strong { color: #fbbf24; }

.trial-icon {
  background: #fbbf24;
  color: #1f2937;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.trial-exit {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: background 0.2s;
}
.trial-exit:hover { background: #fff; color: #1f2937; }

body:has(.trial-banner) .header { top: 44px; }
body:has(.trial-banner) main { padding-top: 56px; }

/* ============================================
   PAYMENT PAGE
   ============================================ */
.payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .payment-grid { grid-template-columns: 1fr; }
}

.plan-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid #22c55e;
  position: sticky;
  top: 80px;
}

.plan-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.plan-title {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.plan-features li {
  font-size: 13px;
  color: #374151;
  padding: 6px 0 6px 24px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.plan-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 16px 0;
}

.plan-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: #111827;
}

.plan-summary-row strong { font-size: 18px; color: #16a34a; }
.plan-summary-row.faint { color: #6b7280; font-size: 12px; }

.card-number-wrap {
  position: relative;
}

.card-brand {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 1px;
}

.lock-icon { margin-right: 8px; }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

#payBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   ECO BANNER (above category picker)
   ============================================ */
.eco-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(34,197,94,0.18);
  animation: eco-pulse 3.5s ease-in-out infinite;
}

.eco-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(20,83,45,0.25));
  animation: eco-spin 8s linear infinite;
}

.eco-tagline { line-height: 1.3; }

@keyframes eco-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(34,197,94,0.12); }
  50%      { box-shadow: 0 2px 14px rgba(34,197,94,0.25); }
}

@keyframes eco-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .eco-banner { font-size: 15px; padding: 10px 18px; gap: 10px; }
  .eco-icon { width: 28px; height: 28px; }
}

/* ============================================
   CATEGORY SELECTION
   ============================================ */
.category-container { max-width: 900px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 1.5rem;
}

.category-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.category-card:hover {
  border-color: #22c55e;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34,197,94,0.15);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #1a1a2e;
}
.category-icon svg { fill: currentColor; }

.category-title {
  font-size: 17px;
  font-weight: 700;
  color: rgba(0,0,0,0.87);
  margin-bottom: 6px;
}

.category-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}

.category-pill {
  display: inline-block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

.change-link {
  font-size: 12px;
  color: #2887cc;
  margin-left: 8px;
  text-decoration: none;
}
.change-link:hover { text-decoration: underline; }

/* ============================================
   PRICING SETUP - CATEGORY TOGGLES & TABS
   ============================================ */
.category-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.cat-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.cat-toggle.on { border-color: #22c55e; background: #f0fdf4; }
.cat-toggle input { margin-top: 3px; accent-color: #22c55e; cursor: pointer; }
.cat-toggle-title { font-weight: 700; font-size: 14px; color: #111827; margin-bottom: 2px; }
.cat-toggle-desc { font-size: 12px; color: #6b7280; line-height: 1.4; }

.pricing-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pricing-tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.pricing-tab:hover { color: #111827; }
.pricing-tab.active {
  color: #22c55e;
  border-bottom-color: #22c55e;
}

.format-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.options-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 20px;
  margin-top: 8px;
}

.option-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.option-pricing-label {
  font-size: 14px;
  color: #374151;
  flex: 1;
  min-width: 0;
}

.option-pricing-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.option-pricing-input .prefix {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.option-pricing-input input {
  width: 90px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: right;
}

.option-pricing-input input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.15);
}

.empty-pane {
  padding: 40px;
  text-align: center;
  color: #9ca3af;
  background: #f9fafb;
  border-radius: 12px;
  font-size: 14px;
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
}

.admin-nav-btn {
  background: transparent;
  border: none;
  color: #475569;
  padding: 10px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-nav-btn:hover { color: #111827; }
.admin-nav-btn.active {
  background: #fff;
  color: #16a34a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.lead-biz-tag {
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.add-biz-btn {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.add-biz-btn:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

.biz-selector {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.biz-selector .form-label {
  font-size: 13px;
  margin-bottom: 6px;
}

.logo-edit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}

.logo-edit-preview {
  width: 120px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  flex-shrink: 0;
}

.biz-meta-row {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.biz-meta-item {
  font-size: 13px;
  color: #0c4a6e;
}
.biz-meta-item span {
  font-weight: 600;
  color: #0369a1;
  display: inline-block;
  min-width: 130px;
}
.biz-meta-item a {
  color: #0369a1;
  text-decoration: none;
  font-family: monospace;
}
.biz-meta-item a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .logo-edit-row { flex-direction: column; align-items: flex-start; }
  .logo-edit-preview { width: 100%; max-width: 200px; }
  .admin-header-row { flex-direction: column; align-items: stretch; }
  .add-biz-btn { text-align: center; }
}

/* ============================================
   PEEKING ROBOT MASCOTS
   ============================================ */
.peek-robot {
  position: fixed;
  z-index: 10;               /* in front of the card so the hand reads as "gripping" */
  pointer-events: none;
  user-select: none;
  width: 155px;              /* 30% smaller than the previous 221px */
  height: auto;
  opacity: 1;
  filter: drop-shadow(-6px 10px 18px rgba(0,0,0,0.16));
  animation: peek-bob 4s ease-in-out infinite;
}

/* Align robot's "wall" edge with the main card's left edge.
   Default --card-half = 450px (for 900px-wide pages). Override per page.
   --peek-overlap = how far past the card edge the image extends so its
   internal "wall line" lands exactly on the visible card edge. */
.app-body {
  --card-half: 450px;
  --peek-overlap: 17px;
}

.peek-robot.left {
  right: calc(50% + var(--card-half) - var(--peek-overlap));
  left: auto;
  top: 210px;             /* sit near the top of the page */
  bottom: auto;
  transform-origin: left top;
}

.peek-robot.left.top {
  top: 187px;
}

@keyframes peek-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Hide on smaller screens — no room next to the main card */
@media (max-width: 1200px) {
  .peek-robot { display: none; }
}

/* ============================================
   CONFIRMATION + ERROR (404) PAGES
   ============================================ */
.confirmation-card,
.error-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 560px;
  margin: 0 auto;
}

.confirmation-mascot,
.error-mascot {
  width: 340px;
  max-width: 90%;
  height: auto;
  margin: 0 auto 24px;
  display: block;
}

.confirmation-title,
.error-title {
  font-size: 26px;
  font-weight: 700;
  color: rgba(0,0,0,0.87);
  margin-bottom: 8px;
}

.confirmation-subtitle,
.error-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirmation-details {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}

.conf-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #d1fae5;
  gap: 12px;
}
.conf-row:last-child { border-bottom: none; }
.conf-row span { color: #15803d; font-weight: 500; }
.conf-row strong { color: #111827; word-break: break-word; text-align: right; }

@media (max-width: 480px) {
  .confirmation-mascot,
  .error-mascot { width: 240px; }
  .confirmation-title,
  .error-title { font-size: 22px; }
}

/* ============================================
   QUOTE BANNER (shown on userdetails page)
   ============================================ */
.quote-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(34,197,94,0.08);
}

.quote-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote-banner-label {
  font-size: 14px;
  font-weight: 600;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-banner-price {
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
}
