/* ========================================================
   FLORAL ESTIMATE PRICING CALCULATOR - LUXURY PUBLIC STYLES
   Ultra-Responsive, Mobile-First & Touch-Optimized
   ======================================================== */
#hb-pr-calculator {
  --hb-ivory: #FCFAF6;
  --hb-petal: #F8F5F0;
  --hb-card-bg: #FFFFFF;
  --hb-peri: #8391C4;
  --hb-peri-deep: #5E6D9E;
  --hb-gold: #C5A880;
  --hb-champagne: #B39973;
  --hb-ink: #2C2F34;
  --hb-ink-light: #5A5E66;
  --hb-line: #E8E3D8;
  --hb-line-soft: rgba(232, 227, 216, 0.6);
  --hb-radius: 10px;
  
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--hb-ink);
  box-sizing: border-box;
  max-width: 780px;
  margin: 25px auto;
  padding: 10px;
  position: relative;
}

#hb-pr-calculator *,
#hb-pr-calculator *::before,
#hb-pr-calculator *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#hb-pr-calculator .calcsec {
  text-align: center;
}

#hb-pr-calculator .calc-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--hb-petal);
  border: 1px solid var(--hb-line);
  border-radius: 14px;
  padding: clamp(1.4rem, 4.5vw, 3rem);
  text-align: left;
  box-shadow: 0 15px 45px -12px rgba(179, 153, 115, 0.12);
  transition: all 0.2s ease;
}

/* Category Groups */
#hb-pr-calculator .c-group {
  margin-bottom: 2.2rem;
}

#hb-pr-calculator .c-group:last-child {
  margin-bottom: 1.5rem;
}

#hb-pr-calculator .c-group-label {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hb-champagne);
  border-bottom: 1px solid var(--hb-line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Item Rows */
#hb-pr-calculator .c-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--hb-line-soft);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

#hb-pr-calculator .c-row:last-child {
  border-bottom: none;
}

#hb-pr-calculator .c-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

#hb-pr-calculator .c-row.is-active {
  background: #FFFFFF;
  border-left: 3px solid var(--hb-champagne);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
  padding-left: 0.95rem;
}

#hb-pr-calculator .c-info {
  flex: 1;
  min-width: 0;
}

#hb-pr-calculator .c-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--hb-ink);
}

#hb-pr-calculator .c-price {
  font-size: 0.84rem;
  color: var(--hb-ink-light);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
  font-weight: 400;
}

#hb-pr-calculator .c-rowtotal {
  font-size: 0.85rem;
  color: var(--hb-peri-deep);
  margin-top: 0.25rem;
  font-weight: 600;
  min-height: 1.1em;
}

/* Stepper Buttons (Touch Optimized) */
#hb-pr-calculator .c-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

#hb-pr-calculator .c-btn {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hb-champagne);
  background: #FFFFFF;
  color: var(--hb-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#hb-pr-calculator .c-btn:hover {
  background: var(--hb-champagne);
  color: #fff;
  border-color: var(--hb-champagne);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(179, 153, 115, 0.25);
}

#hb-pr-calculator .c-btn:active {
  transform: scale(0.92);
  background: var(--hb-champagne);
  color: #fff;
}

#hb-pr-calculator .c-btn:focus-visible {
  outline: 2px solid var(--hb-peri-deep);
  outline-offset: 2px;
}

#hb-pr-calculator .c-qty {
  width: 2.2rem;
  text-align: center;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  border: none;
  background: transparent;
  color: var(--hb-ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}

/* Summary Totals Box */
#hb-pr-calculator .c-totals {
  margin-top: 2.5rem;
  background: var(--hb-card-bg);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 2rem clamp(1.2rem, 3.5vw, 2.4rem);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

#hb-pr-calculator .c-tline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.94rem;
  font-weight: 400;
  padding: 0.55rem 0;
  color: var(--hb-ink);
}

#hb-pr-calculator .c-tline span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--hb-ink);
}

#hb-pr-calculator .c-grand {
  margin-top: 1.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--hb-line);
  text-align: center;
}

#hb-pr-calculator .c-grand-label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hb-champagne);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#hb-pr-calculator .c-grand-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  color: var(--hb-peri-deep);
  line-height: 1.15;
}

#hb-pr-calculator .c-note {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  margin-top: 1.2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--hb-ink-light);
}

/* ---- LEAD CAPTURE: WANT THIS SAVED? ---- */
#hb-pr-calculator .lead {
  margin-top: 1.8rem;
  background: var(--hb-card-bg);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  padding: 2rem clamp(1.2rem, 3.5vw, 2.2rem);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

#hb-pr-calculator .lead h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--hb-ink);
}

#hb-pr-calculator .lead .ld-sub {
  font-size: 0.86rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  color: var(--hb-ink-light);
}

#hb-pr-calculator .ld-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

#hb-pr-calculator .lead label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--hb-ink-light);
}

#hb-pr-calculator .lead input[type="text"],
#hb-pr-calculator .lead input[type="email"] {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* Prevents auto-zoom on mobile browsers */
  font-weight: 400;
  color: var(--hb-ink);
  background: #FCFAF7;
  border: 1px solid var(--hb-line);
  padding: 0.85rem 0.95rem;
  border-radius: 6px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#hb-pr-calculator .lead input:focus {
  background: #FFFFFF;
  border-color: var(--hb-peri);
  outline: none;
  box-shadow: 0 0 0 3px rgba(133, 147, 199, 0.15);
}

#hb-pr-calculator .ld-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

#hb-pr-calculator .ld-actions {
  text-align: center;
  margin-top: 1.4rem;
}

#hb-pr-calculator .lead button.ld-btn-send {
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
  background: var(--hb-ink);
  color: #fff !important;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.1rem 2.6rem;
  transition: all 0.25s ease;
  border-radius: 6px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

#hb-pr-calculator .lead button.ld-btn-send:hover {
  background: var(--hb-peri-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(94, 109, 158, 0.3);
}

#hb-pr-calculator .lead button.ld-btn-send[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

#hb-pr-calculator .ld-fine {
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.65;
  color: var(--hb-ink-light);
}

#hb-pr-calculator .ld-msg {
  font-size: 0.86rem;
  text-align: center;
  margin-top: 0.9rem;
  line-height: 1.6;
}

#hb-pr-calculator .ld-err {
  color: #B91C1C;
}

#hb-pr-calculator .ld-done {
  text-align: center;
  padding: 1.2rem 0;
}

#hb-pr-calculator .ld-done .tick {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  color: var(--hb-champagne);
  margin-bottom: 0.5rem;
}

#hb-pr-calculator .ld-done h3 {
  margin-bottom: 0.4rem;
}

#hb-pr-calculator .ld-powered {
  text-align: right;
  font-size: 0.76rem;
  color: #9CA3AF;
  margin-top: 18px;
  border-top: 1px solid var(--hb-line-soft);
  padding-top: 10px;
}

#hb-pr-calculator .ld-powered a {
  color: var(--hb-champagne);
  text-decoration: none;
  font-weight: 600;
}

#hb-pr-calculator .ld-powered a:hover {
  color: var(--hb-peri-deep);
  text-decoration: underline;
}

/* Bottom Inquire CTA */
#hb-pr-calculator .c-cta {
  text-align: center;
  margin-top: 2.2rem;
}

#hb-pr-calculator .btn {
  display: inline-block;
  background: var(--hb-ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.15rem 2.8rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

#hb-pr-calculator .btn:hover {
  background: var(--hb-peri-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(94, 109, 158, 0.3);
}

/* ========================================================
   MOBILE & TABLET RESPONSIVENESS ENHANCEMENTS
   ======================================================== */



@media (max-width: 768px) {
  #hb-pr-calculator {
    padding: 6px;
    margin: 15px auto 40px auto;
  }

  #hb-pr-calculator .calc-box {
    padding: 1.4rem 1rem;
    border-radius: 12px;
  }

  #hb-pr-calculator .c-row {
    padding: 0.95rem 0.55rem;
    gap: 0.8rem;
  }

  #hb-pr-calculator .c-name {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  #hb-pr-calculator .c-price {
    font-size: 0.8rem;
  }

  #hb-pr-calculator .c-stepper {
    gap: 0.3rem;
  }

  #hb-pr-calculator .c-btn {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 42px;
    min-height: 42px;
    font-size: 1.25rem;
  }

  #hb-pr-calculator .c-qty {
    width: 1.9rem;
    font-size: 1rem;
  }

  #hb-pr-calculator .ld-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #hb-pr-calculator .lead {
    padding: 1.6rem 1rem;
  }

  #hb-pr-calculator .lead button.ld-btn-send {
    width: 100%;
    max-width: 100%;
    padding: 1.15rem 1.2rem;
    font-size: 0.8rem;
  }

  #hb-pr-calculator .btn {
    width: 100%;
    max-width: 100%;
    padding: 1.15rem 1.2rem;
    font-size: 0.8rem;
    text-align: center;
  }

  #hb-pr-calculator .c-totals {
    padding: 1.5rem 1rem;
  }


}

@media (max-width: 420px) {
  #hb-pr-calculator .c-row {
    padding: 0.85rem 0.4rem;
  }
  #hb-pr-calculator .c-name {
    font-size: 1.05rem;
  }
  #hb-pr-calculator .c-btn {
    width: 2.3rem;
    height: 2.3rem;
    min-width: 38px;
    min-height: 38px;
    font-size: 1.15rem;
  }
}
