/* =====================================================
    BRRRR Calculator
  ====================================================== 
*/

/* ---- Base ---- */
.brrrr-wrap {
  font-family: Gilroy;
  margin: 0 auto;
  padding: 50px 15px;
  background: linear-gradient(0deg, #fff 0%, #fff 100%), #fff;
}
.brrrr-title {
  margin-bottom: 26px;
  color: #0f172b;
  text-align: center;
  font-family: Gilroy;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
}
.brrrr-step-panel {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 32px;
  margin: 0 auto;
}
div#brrrr-panel-1,
div#brrrr-panel-2 {
  max-width: 750px;
}
div#brrrr-panel-3 {
  max-width: 930px;
}
div#brrrr-panel-4 {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
/* =====================================================
   STEPPER
   ===================================================== */
.brrrr-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 485px;
  margin: 0 auto 70px;
  gap: 60px;
}
.brrrr-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 110px;
}
.brrrr-stepper::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  top: 18px;
  pointer-events: none;
}
.brrrr-step-item.line-done::after {
  background: var(--brrrr-primary, #0d7377);
}

/* ---- circle ---- */
.brrrr-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #aab0b8;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
/* active step — hollow teal border with dot inside */
.brrrr-step-circle::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  position: absolute;
}
.brrrr-step-circle.active {
  border-color: #008080;
  background: #008080;
}
.brrrr-step-circle.active::after {
  background: #fff;
}
.brrrr-step-circle .step-num {
  display: none;
}

.brrrr-step-circle.done {
  background: var(--brrrr-primary, #0d7377);
  border-color: var(--brrrr-primary, #0d7377);
  color: #fff;
}
.brrrr-step-circle.done::after {
  content: "";
  font-size: 16px;
  color: #fff;
  position: static;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 0;
  background-image: url(../images/tick.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.brrrr-step-label {
  margin-top: 8px;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  color: #90a1b9;
}
.brrrr-step-label.active {
  color: #008080;
}

/* =====================================================
   CARD
   ===================================================== */

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.brrrr-section-title {
  padding-bottom: 6px;
  margin: 42px 0 24px;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  position: relative;
  color: #314158;
}
.item-center {
  align-items: center;
}
.brrrr-row.three-grid .brrrr-field {
  min-width: 120px;
}
.brrrr-row.three-grid .brrrr-field .brrrr-prefix-wrap {
  max-width: 116px;
}
.brrrr-section-title::before {
  position: absolute;
  content: "";
  width: 88px;
  height: 2px;
  background: #008080;
  bottom: 0;
  left: 0;
}
.brrrr-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.brrrr-field {
  flex: 1;
  min-width: 180px;
}
.brrrr-field label,
.brrrr-photo-section label {
  margin-bottom: 7px;
  color: var(--rpa-text);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
}
.rpa-required {
  color: #ff2056;
  font-weight: 500;
}
.brrrr-field input[type="text"],
.brrrr-field input[type="number"],
.brrrr-field input[type="email"],
.brrrr-field textarea,
.brrrr-field select {
  width: 100%;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 50px;
  color: var(--rpa-text);
  font-family: Gilroy;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.brrrr-field select {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  background-image: url(../images/select-arrow.svg);
  background-repeat: no-repeat;
  background-position: calc(100% - 12px);
  padding-right: 28px;
}
.brrrr-field textarea {
  min-height: 122px;
}
.brrrr-field input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #90a1b9;
}
.brrrr-field input::-moz-placeholder {
  /* Firefox 19+ */
  color: #90a1b9;
}
.brrrr-field input:-ms-input-placeholder {
  /* IE 10+ */
  color: #90a1b9;
}
.brrrr-field input:-moz-placeholder {
  /* Firefox 18- */
  color: #90a1b9;
}
.brrrr-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--rpa-text) !important;
}
.brrrr-field .brrrr-prefix-wrap input[type="text"],
.brrrr-field .brrrr-prefix-wrap input[type="number"],
.brrrr-field .brrrr-prefix-wrap input[type="email"],
.brrrr-field .brrrr-prefix-wrap textarea,
.brrrr-field .brrrr-prefix-wrap select {
  border: 0px solid #e2e8f0;
  padding-left: 5px;
}
.brrrr-prefix-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: border-color 0.2s;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.brrrr-prefix {
  padding: 9px 10px;
  font-size: 14px;
  white-space: nowrap;
  color: #4e5053;
}
.brrrr-prefix-wrap input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.brrrr-hint {
  margin-top: 6px;
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  width: 100%;
  display: inline-block;
  font-size: 14px;
}
button.link {
  color: #008080 !important;
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-color: transparent !important;
  font-size: 14px;
}
.text-quotes h6 {
  color: #0f172b;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
}
.brrrr-hint span,
.brrrr-hint button {
  color: #008080 !important;
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-color: transparent !important;
  font-size: 14px;
}
.brrrr-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.brrrr-radio-group input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #1297f7;
}
.brrrr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  cursor: pointer;
}

/* =====================================================
   PHOTO UPLOAD
   ===================================================== */
.brrrr-photo-section {
  margin-bottom: 16px;
}
.brrrr-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11.5px 24px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  background: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
}
.brrrr-photo-btn:hover {
  background: var(--rpa-text);
}
.brrrr-photo-input {
  display: none;
}
.brrrr-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.brrrr-photo-thumb {
  position: relative;
  width: 128px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.brrrr-photo-thumb img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.brrrr-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: #008080 !important;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

/* =====================================================
   OTHER PROPERTY FEATURES COLLAPSIBLE
   ===================================================== */
.brrrr-collapse-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent !important;
  outline: none;
  user-select: none;
  color: #008080 !important;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  padding: 0;
  border: none;
  box-shadow: none;
}
.brrrr-collapse-trigger svg {
  display: block;
  position: relative;
  top: 1px;
}
.brrrr-collapse-trigger.open svg {
  transform: rotate(180deg);
}
.brrrr-collapse-body {
  display: none;
  padding-top: 24px;
}
.brrrr-collapse-body.open {
  display: block;
}

/* checkboxes row for amenities */
.brrrr-check-row {
  display: grid;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  grid-template-columns: repeat(4, 1fr);
}
.brrrr-check-item {
  cursor: pointer;
  color: var(--rpa-text);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  gap: 8px;
}
.brrrr-step-panel input[type="checkbox"] {
  border: 1px solid;
  accent-color: #314158;
  width: 16px;
  height: 16px;
}
.brrrr-step-panel input[type="checkbox"]:checked {
  accent-color: #1297f7;
}

/* =====================================================
   INFO BOX
   ===================================================== */
.brrrr-info-box {
  background: #e8f7f7;
  border-left: 4px solid var(--brrrr-primary, #0d7377);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #155e75;
  margin-bottom: 14px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.brrrr-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: solid 1px #e2e8f0;
  padding-top: 32px;
}
.brrrr-btn {
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  border-radius: 10px;
  display: flex;
  padding: 12px 23px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  gap: 5px;
  box-shadow: none;
}
.brrrr-btn-primary {
  background: linear-gradient(180deg, #008080 0%, #066 100%);
  box-shadow:
    0 10px 15px -3px rgba(0, 128, 128, 0.3),
    0 4px 6px -4px rgba(0, 128, 128, 0.3);
  padding: 10px 22px;
  color: #fff;
}
.brrrr-btn-outline {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #314158 !important;
}
.brrrr-notice-link {
  flex: 1;
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  width: 100%;
  display: inline-block;
  margin-top: 22px;
}
.brrrr-notice-link a {
  color: #008080;
  text-decoration: none;
  font-weight: 500;
}

/* =====================================================
   STEP PANELS
   ===================================================== */
.brrrr-step-panel {
  display: none;
}
.brrrr-step-panel.active {
  display: block;
}

/* =====================================================
   RESULTS PAGE
   ===================================================== */
.brrrr-result-address {
  margin-bottom: 16px;
  color: #6a7282;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.brrrr-action-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.brrrr-action-btn {
  padding: 6px 16px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  border-radius: 8px;
  background: #008080 !important;
  color: #fff !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Result layout */
.brrrr-result-layout {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.brrrr-result-left {
  flex: 1;
  width: 100%;
}
.brrrr-result-right {
  flex: 1.42;
  width: 100%;
}

/* Period tabs */
.brrrr-tabs,
.brrrr-result-period .brrrr-subtabs {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #008080;
  margin: 0 auto 40px;
  max-width: 425px;
  width: 100%;
}
.brrrr-result-period .brrrr-subtabs {
  margin-top: 50px;
}
.brrrr-tab,
.brrrr-result-period .brrrr-subtab {
  flex: 1;
  padding: 12px 12px;
  cursor: pointer;
  background: #fff;
  border: none;
  border-right: 2px solid #008080;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
  color: #008080;
  text-align: center;
  font-family: Gilroy;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  border-radius: 0;
}
.brrrr-tab:last-child {
  border-right: none;
}
.brrrr-tab.active,
.brrrr-result-period .brrrr-subtab.active {
  background: #008080;
  color: #fff;
}
.brrrr-tab:hover:not(.active) {
  background: #f3f4f6;
}

/* Metrics grid */
.brrrr-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.brrrr-metric-value,
.brrrr-fin-item-value,
.brrrr-growth-val {
  color: #101828;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
}
.brrrr-metric-label,
.brrrr-fin-item-label,
.brrrr-growth-label {
  margin-top: 2px;
  color: #99a1af;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.3px;
  font-size: 12px;
}

/* Sub-tabs (Expenses / Income / 50% Rule) */
.brrrr-subtabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #ddd;
  width: fit-content;
}
.brrrr-subtab {
  padding: 7px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #555;
  border: none;
  border-right: 1px solid #ddd;
  transition:
    background 0.2s,
    color 0.2s;
}
.brrrr-subtab:last-child {
  border-right: none;
}
.brrrr-subtab.active {
  background: var(--brrrr-primary, #0d7377);
  color: #fff;
}

/* Donut chart area */
.brrrr-donut-area {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.brrrr-donut-canvas-wrap {
  flex-shrink: 0;
}
.brrrr-donut-legend {
  font-size: 13px;
}
.brrrr-donut-legend-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}
.brrrr-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 13px;
}
.brrrr-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* subtab content panels */
.brrrr-subtab-panel {
  display: none;
}
.brrrr-subtab-panel.active {
  display: block;
}

/* Period panels */
.brrrr-result-period {
  display: none;
}
.brrrr-result-period.active {
  display: block;
}

/* Summary table */
.brrrr-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  color: #4a5565;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  border: none;
}

.brrrr-summary-table td {
  padding: 4px 0;
}
.brrrr-summary-table tr,
.brrrr-summary-table td {
  border: none;
}
.brrrr-summary-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: #0a0a0a;
}
.brrrr-summary-table .section-head td {
  font-weight: 700;
  font-size: 13px;
  color: #555;
  padding-top: 14px;
  border-bottom: none;
}
.brrrr-purchase-price-display {
  color: #0a0a0a;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px;
  margin-bottom: 6px;
}
.brrrr-summary-table tr:last-child td:last-child {
  font-weight: 700;
}
.brrrr-result-card-outer {
  margin-top: 24px;
}
.brrrr-result-card-outer p,
.brrrr-chart-title {
  color: #99a1af;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 12px;
}
.brrrr-chart-title {
  color: #4a5565;
  font-weight: 700;
}
.brrrr-purchase-price-label {
  margin-bottom: 0;
  color: #99a1af;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}
table.brrrr-year-table tr:nth-child(even) {
  background: #f7f7f7;
}
table.brrrr-year-table tr:hover {
  background: #e5e5e5;
}
table.brrrr-year-table tr.brrrr-highlight-row {
  background: #f7f7f7 !important;
}
table.brrrr-year-table tr.brrrr-highlight-row:hover,
table.brrrr-year-table tr.brrrr-highlight-row:hover ~ tr.brrrr-highlight-row,
table.brrrr-year-table
  tr.brrrr-highlight-row:has(~ tr.brrrr-highlight-row:hover) {
  background-color: #e5e5e5 !important;
}
table.brrrr-year-table
  tr.brrrr-highlight-row
  ~ tr.brrrr-highlight-row
  td:first-child {
  padding-left: 20px;
}
table.brrrr-year-table tr.brrrr-highlight-row ~ tr.brrrr-highlight-row td {
  padding: 4px 10px;
}
/* Financial Info bar */
.brrrr-fin-info {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: left;
}
/* Analysis over time */
.brrrr-analysis-growth {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.brrrr-growth-per {
  color: #99a1af;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}
.brrrr-year-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  display: table;
  overflow-x: auto;
  border: none;
  margin: 0;
}
.brrrr-year-table th {
  padding: 7px 10px;
  text-align: right;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}
.brrrr-year-table td,
.brrrr-year-table th {
  border: none;
  background: transparent;
  color: #0a0a0a;
}
.brrrr-year-table th:first-child {
  text-align: left;
}
.brrrr-year-table td {
  padding: 7px 10px;
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}
.brrrr-year-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #4a5565;
}
.brrrr-year-table th {
  color: #4a5565;
}
/* Charts */
.brrrr-charts-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.brrrr-chart-box {
  flex: 1;
  min-width: 280px;
}
.brrrr-chart-box canvas {
  width: 100% !important;
}
/* Disclaimer */
.brrrr-disclaimer {
  max-width: 750px;
  margin: 40px auto;
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.text-quotes {
  border-radius: 6px 0 0 6px;
  border-left: 4px solid #008080;
  background: rgba(206, 255, 255, 0.3);
  padding: 12px 16px;
}

.text-quotes p {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
  color: #314158;
}

.text-quotes span {
  color: #008080;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.max-w-280 .text-quotes {
  max-width: 280px;
  width: 100%;
}
.item-start {
  align-items: flex-start;
}
.brrrr-row.two-half-grid .brrrr-field:first-child {
  max-width: 100px;
  min-width: 120px;
}
.brrrr-row.two-half-grid .brrrr-field {
  max-width: 250px;
}
.text-quotes button {
  color: #008080 !important;
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background-color: transparent !important;
  font-size: 14px;
}
.item-start-end {
  flex-direction: column;
  justify-content: space-between;
}
.flex-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flex-text p {
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  margin: 0;
}

.max-w-126 input {
  max-width: 126px;
}
.max-w-126 input {
  max-width: 105px;
}
.brrrr-result-card {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 16px;
}
.brrrr-result-card .total-price {
  margin-bottom: 40px;
}
button#brrrr-btn-refi-mortgage {
  margin: 0 auto;
  max-width: 452px;
  width: 100%;
  box-shadow: none;
  background: #008080;
  padding: 6px 0;
  color: #fff;
}
.brrrr-result-right-card {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 24px;
}
.brrrr-disclaimer h6 {
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 17.875px;
  margin-bottom: 3px;
}

.brrrr-disclaimer,
.brrrr-disclaimer p {
  color: #90a1b9;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
div#brrrr-prop-info-card {
  padding: 0 0 24px 0;
}
.brrrr-wrap input[type="number"]::-webkit-inner-spin-button,
.brrrr-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 1025px) {
  .text-quotes.top-50 {
    position: relative;
    top: 70px;
  }
  .brrrr-row.fixed-row {
    display: grid;
    grid-template-columns: 1.34fr 1fr;
  }
}
@media (max-width: 1024px) {
  .brrrr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .brrrr-fin-info {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .brrrr-result-right-card {
    padding: 24px 16px;
  }
  .brrrr-result-layout {
    flex-direction: column;
  }
  .brrrr-breakdown-panel {
    padding: 24px 16px;
  }
  .brrrr-stepper {
    margin: 0 auto 40px;
    gap: 14px;
  }
  .brrrr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .brrrr-fin-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .brrrr-row {
    flex-direction: column;
  }
  .brrrr-step-label {
    font-size: 9px;
  }
  .brrrr-step-panel {
    padding: 24px 16px;
  }
  .brrrr-field input[type="text"],
  .brrrr-field input[type="number"],
  .brrrr-field input[type="email"],
  .brrrr-field textarea,
  .brrrr-field select {
    font-size: 14px;
  }
}

/* =====================================================
   EXPENSE SUMMARY (Rehab Period)
   ===================================================== */
.brrrr-expense-summary {
  font-size: 14px;
}
.brrrr-exp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 0px solid #f0f0f0;
}
.brrrr-exp-row:last-child {
  border-bottom: none;
}
.brrrr-exp-row span:last-child {
  margin-left: auto;
  font-weight: 600;
}
.brrrr-exp-dot {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* =====================================================
   DONUT AREA
   ===================================================== */
.brrrr-donut-area {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.brrrr-donut-legend {
  font-size: 13px;
}
.brrrr-legend-title {
  margin-bottom: 20px;
  color: #6a7282;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  flex-direction: column;
}
.brrrr-legend-title strong#donut-total-initial {
  color: #008080;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}
.brrrr-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.brrrr-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* =====================================================
   50% RULE PANEL
   ===================================================== */
.brrrr-rule50-info {
  padding: 14px;
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #166534;
  margin-top: 8px;
  line-height: 1.6;
}

/* =====================================================
   SUBTABS — scoped inside period panels
   ===================================================== */

.brrrr-result-period .brrrr-subtab:hover:not(.active) {
  background: #f3f4f6;
}

.brrrr-subtab-panel {
  display: none;
}
.brrrr-subtab-panel.active {
  display: block;
}

/* =====================================================
   INLINE VALIDATION ERRORS
   ===================================================== */
.brrrr-field.has-error > input,
.brrrr-field.has-error > textarea,
.brrrr-field.has-error > select {
  border: 1.5px solid #ef4444 !important;
  background-color: #fff8f8 !important;
  outline: none;
}
.brrrr-field.has-error > .brrrr-prefix-wrap {
  border: 1.5px solid #ef4444 !important;
  background-color: #fff8f8 !important;
}
.brrrr-field.has-error > .brrrr-prefix-wrap input {
  background: transparent !important;
}
.brrrr-error-msg {
  color: #ef4444;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}
.brrrr-error-msg::before {
  content: "⚠";
  font-size: 12px;
  flex-shrink: 0;
}

/* =====================================================
   50% RULE TABLE
   ===================================================== */
.brrrr-rule50-table {
  padding: 14px 0;
  font-size: 13px;
}
.brrrr-50-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0px solid #f0f0f0;
  gap: 16px;
}
.brrrr-50-row span:first-child {
  color: #555;
}
.brrrr-50-row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}
.brrrr-50-total {
  border-top: 2px solid #e5e7eb;
  border-bottom: none;
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 700;
}
.brrrr-50-total span:first-child {
  font-weight: 700;
  color: #222;
}

/* =====================================================
   BREAKDOWN PANELS  (cost breakdown / actual value)
   ===================================================== */
.brrrr-link-btn {
  background: none;
  cursor: pointer;
  text-decoration: underline !important;
  font-family: inherit;
  color: #008080 !important;
  padding: 0;
  border-radius: 0;
  border: 0;
  background-color: transparent !important;
  font-size: 14px;
}
div#bd-unit-rent,
div#bd-indiv-income,
div#bd-cost-break {
  padding: 16px !important;
}
.brrrr-breakdown-panel {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.brrrr-breakdown-panel.brrrr-bd-open {
  display: block;
}
.brrrr-breakdown-panel .brrrr-prefix-wrap {
  background: #ffffff;
}
.brrrr-breakdown-panel .brrrr-field input[type="text"],
.brrrr-breakdown-panel .brrrr-field input[type="number"],
.brrrr-breakdown-panel .brrrr-field input[type="email"],
.brrrr-breakdown-panel .brrrr-field textarea,
.brrrr-breakdown-panel .brrrr-field select {
  background: #ffffff;
}
.brrrr-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.brrrr-breakdown-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0px 16px;
  color: #0f172b;
}
.brrrr-breakdown-section-title:first-child {
  margin-top: 0;
}

@media (max-width: 540px) {
  .brrrr-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   DYNAMIC BREAKDOWN ROWS (unit / individual / cost)
   ===================================================== */
.brrrr-dyn-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.brrrr-dyn-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.brrrr-breakdown-panel input {
  background: #fff !important;
}
.brrrr-dyn-col input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 14px;
  font-family: Gilroy, sans-serif;
  outline: none;
  background: #fff;
}
.brrrr-dyn-col input:focus {
  border-color: var(--brrrr-primary, #0d7377);
  box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.12);
}
.brrrr-dyn-rm {
  flex-shrink: 0;
  background: transparent !important;
  border: none;
  color: #9ca3af !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-bottom: 17px;
}
div#bd-cost-break {
  max-width: 388px;
}
.brrrr-dyn-add-btn {
  display: inline-flex;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  border-radius: 8px;
  background: #008080 !important;
  color: #fff;
  text-align: center;
  font-family: Gilroy;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21px;
  padding: 10px 24px;
}
.brrrr-autofill-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
  margin-left: 4px;
}

/* =====================================================
   DONUT LEGEND — expense items two-column grid
   ===================================================== */
#donut-items-initial-exp,
#donut-items-refi-exp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 6px;
}
.brrrr-legend-exp-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.brrrr-legend-exp-label {
  color: #555;
}

/* =====================================================
   PROPERTY INFO CARD — Result Page (Step 4)
   ===================================================== */
.brrrr-prop-info-card {
  padding: 20px 24px;
}
.brrrr-prop-info-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.brrrr-prop-info-details {
  flex: 1;
  min-width: 0;
}
.brrrr-result-report-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}
.brrrr-result-full-address {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
.brrrr-result-prop-meta {
  font-size: 12px;
  color: #444;
  background: #f4f7fb;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 10px;
  line-height: 1.7;
  word-break: break-word;
}
.brrrr-result-description {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  white-space: pre-wrap;
}
.brrrr-result-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  max-width: 340px;
}
.brrrr-result-photo-thumb {
  width: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}
.brrrr-result-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .brrrr-prop-info-inner {
    flex-direction: column-reverse;
  }
  .brrrr-result-photos {
    max-width: 100%;
    width: 100%;
  }
  .brrrr-result-photo-thumb {
    width: calc(50% - 4px);
    height: 90px;
  }
}

/* Lead modal: visibility toggled in JS (display none / flex); layout only here */
#post-20548 .entry-header h1{display: none;}
#brrrr_calc_leadModal.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
}

.lead-modal-content {
  background: #fff;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

#brrrr_calc_leadModal .form-group {
  margin-bottom: 15px;
}

#brrrr_calc_leadModal input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #d45151;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.privacy {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
  color: teal;
}
.privacy a {
  color: teal !important;
}
.error-message {
  color: #e53935;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}


/* Field help tooltips (info icon → grey bubble) */
.brrrr-field > label,
.brrrr-photo-section > label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 100%;
}

.brrrr-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.brrrr-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  cursor: help;
  user-select: none;
}

.brrrr-tooltip-trigger-img {
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

.brrrr-tooltip-trigger:hover .brrrr-tooltip-trigger-img,
.brrrr-tooltip-trigger:focus .brrrr-tooltip-trigger-img {
  opacity: 0.88;
}

.brrrr-tooltip-trigger:hover,
.brrrr-tooltip-trigger:focus {
  outline: none;
}

.brrrr-tooltip-trigger:focus-visible {
  outline: 2px solid rgba(13, 115, 119, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

.brrrr-tooltip-bubble {
    display: none;
    position: absolute;
    z-index: 100080;
    left: 0;
    bottom: calc(100% + 8px);
    width: min(229px, calc(100vw - 32px));
    max-height: 280px;
    overflow-y: auto;
    padding: 9px 15px;
    background: #EDF0F0;
    color: #515151;
    font-size: 10px;
    font-weight: 500;
    line-height: normal;
    text-align: left;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid #d0d0d0;
}

.brrrr-tooltip-wrap:hover .brrrr-tooltip-bubble,
.brrrr-tooltip-wrap:focus-within .brrrr-tooltip-bubble {
  display: block;
}

@media (max-width: 520px) {
  .brrrr-tooltip-bubble {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 24px));
  }
}
