/* ==========================================================================
   Ridge Water Harvesting - Master Calculator & Advisor Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --rwh-navy: #081d38;
  --rwh-navy-light: #0d284d;
  --rwh-cyan: #0077c8;
  --rwh-cyan-hover: #005fa3;
  --rwh-sky: #38bdf8;
  --rwh-border: #e2e8f0;
  --rwh-slate: #f8fafc;
  --rwh-text: #0f172a;
  --rwh-muted: #64748b;
  --rwh-success: #15803d;
  --rwh-success-bg: #dcfce7;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--rwh-text);
  background-color: #edf6fc;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.rwh-page-wrapper {
  padding: 40px 20px 80px;
  background: radial-gradient(circle at 50% 0%, #edf6fc 0%, #f8fafc 100%);
  min-height: 100vh;
  box-sizing: border-box;
}

/* ==========================================================================
   Main Frame (Set to visible so sticky left column functions properly)
   ========================================================================== */
.rwh-frame {
  max-width: 1260px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(8, 29, 56, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: visible !important; /* Required for position: sticky */
  border: 1px solid var(--rwh-border);
}

/* Header */
.rwh-titleblock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 36px;
  background: linear-gradient(135deg, var(--rwh-navy) 0%, #0c2b54 60%, var(--rwh-cyan) 100%);
  color: #ffffff;
  position: relative;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
}

.rwh-titleblock::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(circle at 80% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rwh-titlewrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.rwh-iconball {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rwh-iconball svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.rwh-trust-pill-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.rwh-trust-pill-top svg {
  width: 13px;
  height: 13px;
}

.rwh-h1 {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0;
}

.rwh-h2 {
  font-size: 14.5px;
  font-weight: 700;
  color: #bae6fd;
  margin-top: 4px;
}

.rwh-brand-tagline {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

.rwh-header-cta {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.45;
}

.rwh-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.rwh-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rwh-badge svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   2-Column Layout Grid (Locked Sticky Left Panel + Scrolling Right Panel)
   ========================================================================== */
.rwh-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  align-items: start !important;
  width: 100%;
}

.rwh-panel {
  padding: 34px;
  min-width: 0;
}

/* Locked Sticky Left Form Sidebar (No internal scrollbar) */
.rwh-panel:first-child {
  background: #f8fafc;
  border-right: 1.5px solid var(--rwh-border);
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
  overflow: visible !important;
}

/* Form Fields */
.rwh-field {
  margin-bottom: 22px;
}

.rwh-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--rwh-navy);
  margin-bottom: 8px;
}

.rwh-label svg {
  width: 15px;
  height: 15px;
  color: var(--rwh-cyan);
}

.rwh-select, 
.rwh-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  color: var(--rwh-text);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.rwh-select:focus, 
.rwh-input:focus {
  border-color: var(--rwh-cyan);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.12);
}

.rwh-row {
  display: flex;
  gap: 10px;
}

.rwh-row > * {
  flex: 1;
}

.rwh-hint {
  font-size: 11.5px;
  color: var(--rwh-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.rwh-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rwh-chip {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rwh-chip:hover {
  border-color: var(--rwh-cyan);
  color: var(--rwh-cyan);
  background: #f0f9ff;
}

.rwh-chip.active {
  background: var(--rwh-cyan);
  color: #ffffff;
  border-color: var(--rwh-cyan);
  box-shadow: 0 3px 8px rgba(0, 119, 200, 0.25);
}

.rwh-toggle {
  display: flex;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
}

.rwh-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rwh-toggle button.active {
  background: var(--rwh-cyan);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 119, 200, 0.2);
}

.rwh-yn {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rwh-yn button {
  flex: 1;
  min-width: 90px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rwh-yn button:hover {
  border-color: var(--rwh-cyan);
  color: var(--rwh-cyan);
}

.rwh-yn button.active {
  background: var(--rwh-cyan);
  color: #ffffff;
  border-color: var(--rwh-cyan);
  box-shadow: 0 3px 8px rgba(0, 119, 200, 0.25);
}

.rwh-slider {
  width: 100%;
  accent-color: var(--rwh-cyan);
  cursor: pointer;
  height: 6px;
  margin: 10px 0 4px;
}

.rwh-note {
  font-size: 12.5px;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rwh-note.warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.rwh-note.live {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rwh-note-highlight {
  background: #f0f7ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
  font-size: 13.5px;
  padding: 14px 16px;
  border-radius: 12px;
}

/* ==========================================================================
   Right Panel Results & Dashboard Cards
   ========================================================================== */
.rwh-sectiontitle {
  font-size: 16px;
  font-weight: 900;
  color: var(--rwh-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 14px;
  letter-spacing: -0.3px;
}

.rwh-sectiontitle svg {
  width: 18px;
  height: 18px;
  color: var(--rwh-cyan);
}

.rwh-goalgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rwh-goalcard {
  text-align: left;
  border: 1.5px solid var(--rwh-border);
  border-radius: 14px;
  padding: 16px 14px;
  background: #ffffff;
  cursor: pointer;
  color: var(--rwh-navy);
  transition: all 0.2s ease;
  position: relative;
}

.rwh-goalcard:hover {
  border-color: var(--rwh-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 200, 0.08);
}

.rwh-goalcard.active {
  background: linear-gradient(135deg, var(--rwh-cyan) 0%, var(--rwh-navy) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 119, 200, 0.28);
}

.rwh-goalcard svg {
  width: 20px;
  height: 20px;
  color: var(--rwh-cyan);
}

.rwh-goalcard.active svg {
  color: #38bdf8;
}

.rwh-goalcard .t {
  font-size: 13.5px;
  font-weight: 800;
  margin: 8px 0 4px;
  line-height: 1.25;
}

.rwh-goalcard .d {
  font-size: 11.5px;
  opacity: 0.85;
  line-height: 1.4;
}

.rwh-qcard {
  border: 1.5px solid var(--rwh-border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #f8fafc;
}

.rwh-qtext {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--rwh-navy);
  margin-bottom: 12px;
}

/* Gauge */
.rwh-gaugewrap {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--rwh-border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(8, 29, 56, 0.03);
}

.rwh-verdict {
  flex: 1;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.rwh-verdict .big {
  font-size: 38px;
  font-weight: 900;
  color: var(--rwh-cyan);
  letter-spacing: -1px;
  line-height: 1.1;
  display: block;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
}

.pill.green { background: #dcfce7; color: #15803d; }
.pill.amber { background: #fef3c7; color: #b45309; }
.pill.red   { background: #fee2e2; color: #b91c1c; }

/* 4-KPI Grid */
.rwh-statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.rwh-stat {
  border: 1.5px solid var(--rwh-border);
  border-left: 4px solid var(--rwh-cyan);
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.rwh-stat .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--rwh-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rwh-stat .k svg {
  width: 14px;
  height: 14px;
  color: var(--rwh-cyan);
}

.rwh-stat .v {
  font-size: 22px;
  font-weight: 900;
  color: var(--rwh-navy);
  letter-spacing: -0.4px;
  margin-top: 4px;
}

.rwh-stat .u {
  font-size: 12px;
  color: var(--rwh-muted);
  font-weight: 700;
  margin-left: 4px;
}

.rwh-chartwrap {
  background: #ffffff;
  border: 1.5px solid var(--rwh-border);
  border-radius: 16px;
  padding: 18px 14px;
  margin-bottom: 24px;
  width: 100%;
  overflow: hidden;
}

.rwh-reco {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.calc-proof-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.calc-proof-photos-row > div {
  border: 1.5px solid var(--rwh-border);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 29, 56, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-proof-photos-row > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 29, 56, 0.08);
}

.calc-proof-photos-row img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  display: block;
}

.calc-proof-photos-row div div {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rwh-navy);
}

/* Primary CTAs */
.rwh-btn {
  background: var(--rwh-cyan);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 119, 200, 0.25);
  transition: all 0.2s ease;
  flex: 1;
}

.rwh-btn:hover {
  background: var(--rwh-cyan-hover);
  transform: translateY(-1px);
}

/* Guarantee Strip */
.calc-trust-guarantee-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f7ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 16px;
  gap: 14px;
}

.calc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--rwh-navy);
}

.calc-trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--rwh-cyan);
  flex-shrink: 0;
}

.text-callback strong {
  color: #059669;
}

/* ==========================================================================
   Summary Report Action Row (Equal 50/50 Sizing & Primary Blue Print Button)
   ========================================================================== */
.rwh-reportbtns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.rwh-reportbtns .rwh-btn,
.rwh-reportbtns #btnToggleReport,
.rwh-reportbtns .rwh-btn-print {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

/* Left: View Summary Report (Outline Blue) */
.rwh-reportbtns .rwh-btn.outline,
.rwh-reportbtns #btnToggleReport {
  background: #ffffff !important;
  color: var(--rwh-cyan, #0077c8) !important;
  border: 1.5px solid var(--rwh-cyan, #0077c8) !important;
  box-shadow: 0 2px 6px rgba(0, 119, 200, 0.08) !important;
}

.rwh-reportbtns .rwh-btn.outline:hover,
.rwh-reportbtns #btnToggleReport:hover {
  background: var(--rwh-blue-light, #edf5fc) !important;
  border-color: #005fa3 !important;
  color: #005fa3 !important;
  transform: translateY(-1px) !important;
}

/* Right: Print / Save as PDF (Primary Solid Blue) */
.rwh-reportbtns .rwh-btn-print {
  background: var(--rwh-cyan, #0077c8) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--rwh-cyan, #0077c8) !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(0, 119, 200, 0.25) !important;
}

.rwh-reportbtns .rwh-btn-print:hover {
  background: var(--rwh-cyan-hover, #005fa3) !important;
  border-color: var(--rwh-cyan-hover, #005fa3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.rwh-reportbtns svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2px !important;
  flex-shrink: 0 !important;
}

.rwh-reportbtns .rwh-btn-print svg {
  stroke: #ffffff !important;
}

.rwh-reportbtns .rwh-btn.outline svg,
.rwh-reportbtns #btnToggleReport svg {
  stroke: var(--rwh-cyan, #0077c8) !important;
}

/* Modals */
.assessment-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(8, 29, 56, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.assessment-modal-overlay.active {
  display: flex !important;
}

.assessment-modal-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  max-width: 620px !important;
  width: 100% !important;
  padding: 34px !important;
  position: relative !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  background: #f1f5f9 !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: var(--rwh-muted) !important;
  transition: all 0.2s ease !important;
}

.modal-close-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.modal-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #e0f2fe !important;
  color: var(--rwh-cyan) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  margin-bottom: 8px !important;
}

.modal-title {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: var(--rwh-navy) !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.4px !important;
}

.modal-subtitle {
  font-size: 13px !important;
  color: var(--rwh-muted) !important;
  line-height: 1.5 !important;
  margin: 0 0 20px 0 !important;
}

.modal-trust-callout {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-trust-callout svg {
  width: 18px;
  height: 18px;
  color: #059669;
  flex-shrink: 0;
}

.modal-form-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.modal-form-grid .full-width {
  grid-column: span 2;
}

.form-group-field {
  display: flex !important;
  flex-direction: column !important;
}

.modal-label {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--rwh-navy) !important;
  margin-bottom: 6px !important;
}

.modal-input {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: var(--rwh-text) !important;
  background: #ffffff !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.modal-input:focus {
  border-color: var(--rwh-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1) !important;
}

.btn-modal-submit {
  width: 100% !important;
  background: var(--rwh-cyan) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 18px rgba(0, 119, 200, 0.28) !important;
  margin-top: 18px !important;
  transition: all 0.2s ease !important;
}

.btn-modal-submit:hover {
  background: var(--rwh-cyan-hover) !important;
  transform: translateY(-1px) !important;
}

/* DIY Cart Modal Styling */
.diy-cart-modal {
  max-width: 600px !important;
  padding: 32px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(8, 29, 56, 0.2) !important;
}

.diy-items-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 20px 0 !important;
}

.diy-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  transition: all 0.2s ease !important;
}

.diy-item-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.diy-item-info strong {
  display: inline-block !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  letter-spacing: 0.2px !important;
}

.diy-item-info span {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.diy-item-right {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-align: right !important;
}

.diy-item-price {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #081d38 !important;
  white-space: nowrap !important;
}

.diy-remove-btn {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 4px !important;
  transition: all 0.15s ease !important;
}

.diy-remove-btn:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.diy-cart-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 18px !important;
  border-top: 1.5px dashed #cbd5e1 !important;
  margin-top: 16px !important;
}

.diy-sum-left .diy-sum-label {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 2px !important;
}

.diy-sum-prices {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}

.diy-deal-price {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: var(--rwh-cyan) !important;
  line-height: 1 !important;
}

.diy-orig-price {
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 600 !important;
}

.diy-sum-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.diy-browse-more {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.diy-browse-more:hover {
  color: var(--rwh-cyan) !important;
}

.btn-diy-add-cart {
  background: var(--rwh-cyan) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 11px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 119, 200, 0.25) !important;
  transition: all 0.2s ease !important;
  margin-top: 0 !important;
}

.btn-diy-add-cart:hover {
  background: var(--rwh-cyan-hover) !important;
  transform: translateY(-1px) !important;
}

/* Printable Report */
.rwh-report {
  display: none;
  border: 1.5px solid var(--rwh-border);
  border-radius: 16px;
  padding: 24px;
  background: #ffffff;
  margin-top: 16px;
}

.rwh-report.open {
  display: block;
}

.rwh-report-head {
  border-bottom: 2px solid var(--rwh-navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.rwh-report-head h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--rwh-navy);
  margin: 0;
}

.rwh-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rwh-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.rwh-report table td {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.rwh-report table td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--rwh-navy);
}

/* ==========================================================================
   Responsive Adaptability
   ========================================================================== */
@media (max-width: 1024px) {
  .rwh-page-wrapper {
    padding: 20px 14px 60px;
  }
  .rwh-grid {
    grid-template-columns: 1fr;
  }
  .rwh-panel:first-child {
    border-right: none;
    border-bottom: 1.5px solid var(--rwh-border);
    position: static !important;
    overflow-y: visible;
  }
  .rwh-goalgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .rwh-titleblock {
    padding: 24px 20px;
  }
  .rwh-titlewrap {
    flex-direction: column;
    gap: 14px;
  }
  .rwh-h1 {
    font-size: 22px;
  }
  .rwh-panel {
    padding: 24px 18px;
  }
  .rwh-goalgrid {
    grid-template-columns: 1fr;
  }
  .rwh-gaugewrap {
    flex-direction: column;
    text-align: center;
  }
  .rwh-statgrid {
    grid-template-columns: 1fr;
  }
  .rwh-reco {
    grid-template-columns: 1fr 1fr;
  }
  .calc-proof-photos-row {
    grid-template-columns: 1fr;
  }
  .calc-trust-guarantee-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .rwh-reportbtns {
    grid-template-columns: 1fr !important;
  }
  .rwh-btn {
    width: 100%;
  }
  .modal-form-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-form-grid .full-width {
    grid-column: span 1;
  }
  .diy-cart-summary {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .diy-sum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .rwh-report-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STRICT PRINT-TO-PDF ISOLATION (Only Summary Report & Suggested Hardware)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden !important;
  }

  header, 
  footer, 
  nav,
  .rwh-titleblock,
  .rwh-panel:first-child,
  .rwh-goalgrid,
  .rwh-qcard,
  .rwh-gaugewrap,
  .rwh-statgrid,
  .rwh-chartwrap,
  #tankRecommendationSection,
  .rwh-sectiontitle,
  .calc-proof-photos-row,
  .calc-trust-guarantee-strip,
  .rwh-reportbtns,
  .rwh-btn,
  .assessment-modal-overlay,
  .ridge-expert-floating,
  #subGoalMaximize,
  #subGoalShortfall,
  #subGoalExistingTank {
    display: none !important;
  }

  html, body {
    background: #ffffff !important;
    color: #081d38 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: auto !important;
  }

  .rwh-page-wrapper,
  .rwh-frame,
  .rwh-grid,
  .rwh-panel {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }

  #reportContainer, 
  #reportContainer * {
    visibility: visible !important;
  }

  #reportContainer {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    padding: 24px 30px !important;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
  }

  .rwh-report-head {
    border-bottom: 2px solid #081d38 !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
  }

  .rwh-report-head h2 {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #081d38 !important;
    margin: 0 0 4px 0 !important;
  }

  .rwh-report-head .sub {
    font-size: 11px !important;
    color: #475569 !important;
    line-height: 1.4 !important;
  }

  .rwh-report-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin-bottom: 20px !important;
  }

  .rwh-report-grid h3 {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #081d38 !important;
    margin: 0 0 10px 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 4px !important;
  }

  .rwh-report table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12px !important;
  }

  .rwh-report table td {
    padding: 6px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
  }

  .rwh-report table td:last-child {
    text-align: right !important;
    font-weight: 800 !important;
    color: #081d38 !important;
  }

  .pdf-product-breakdown {
    display: block !important;
    margin-top: 20px !important;
    border-top: 1.5px solid #081d38 !important;
    padding-top: 14px !important;
    page-break-inside: avoid !important;
  }

  #pdfHardwareList {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  #pdfHardwareList > div {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }

  #pdfHardwareList a {
    color: #0066cc !important;
    text-decoration: underline !important;
    font-size: 10.5px !important;
  }
}