/* =====================================================
   Rental Property Analyzer – Plugin Styles
   Author: Yogesh Pandey (https://auspicioussoft.com/)
   ===================================================== */

/* ---------- Variables ---------- */
:root {
    --rpa-primary:    #008080;
    --rpa-primary-dk: #095e49;
    --rpa-primary-lt: #e6f5f1;
    --rpa-accent:     #1ab08a;
    --rpa-blue:       #2563eb;
    --rpa-text:       #314158;
    --rpa-text-light: #90A1B9;
    --rpa-border:     #e2e8f0;
    --rpa-bg:         #f8fafc;
    --rpa-card:       #ffffff;
    --rpa-danger:     #FF6B6B;
    --rpa-yelow:       #E8A317;
    --rpa-warn:       #f59e0b;
    --rpa-success:    #5ECC7B;
    --rpa-radius:     16px;
    --rpa-shadow:     0 2px 16px rgba(0,0,0,.08);
    --rpa-shadow-lg:  0 8px 32px rgba(0,0,0,.12);
    --rpa-font:       'Gilroy';
}

/* ---------- Outer Wrapper ----------
   Form on LEFT, sidebar on RIGHT
------------------------------------- */
.rpa-wrap {
    padding: 50px 0;
    font-family: var(--rpa-font);
    color: var(--rpa-text);

}
.rpa-container{
 max-width: 1308px;
 margin: 0 auto;
   padding: 0 15px;
       display: flex;
    flex-direction: row;
    gap: 30px;
        align-items: flex-start;
}


/* ---------- Main (left) ---------- */
.rpa-main {
    flex: 1;
    min-width: 0;
    order: 1;
    width: 100%;
}
/* ---------- Sidebar (right) ---------- */
.rpa-sidebar {
    width: 295px;
    flex-shrink: 0;
    order: 2;               /* always on RIGHT */
    position: sticky;
    top: 24px;
    align-self: flex-start;
}
.rpa-sidebar-inner {
    padding: 24px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.10), 0 0 2px 0 rgba(0, 0, 0, 0.10);
}
.rpa-sidebar-title {
    margin: 0 0 16px;
    color: #314158;
    font-family: Gilroy;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

/* ---------- Steps List ---------- */
.rpa-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpa-step {
    display: flex; 
    align-items: center;
    gap: 10px;
    padding: 3px 0px;
    font-size: 14px;
    border-radius: 7px;
    cursor: default;
    transition: background .15s;
    user-select: none;
    color: #314158;
}

/* ---- Step Icon: default = empty circle ---- */
.rpa-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #d1d5db;
    background: #fff;
    transition: border-color .2s, background .2s;
}
.rpa-step-icon svg {
    width: 12px;
    height: 12px;
    opacity: 0;                  /* tick hidden by default */
    transition: opacity .2s;
}

/* ---- Active step: teal ring, no tick ---- */
.rpa-step.active .rpa-step-icon {
    border-color: var(--rpa-primary);
}
.rpa-step.active .rpa-step-icon svg {
    opacity: 0;
}

/* ---- Completed step: filled green + white tick ---- */
.rpa-step.completed .rpa-step-icon {
    border-color: var(--rpa-primary);
    border-width: 2px;
}
.rpa-step.completed .rpa-step-icon svg {
    opacity: 1;
    color: #fff;
    stroke: #fff;
}
.rpa-step.completed {
    color: var(--rpa-text);
    font-weight: 500;
}

/* ---------- Form Card ---------- */
.rpa-form-card {
    padding: 32px;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.10), 0 0 2px 0 rgba(0, 0, 0, 0.10);
}
.rpa-page-title {
    margin: 0 0 34px;
    color: var(--rpa-text);
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 42px;
}

/* ---------- Sections ---------- */
.rpa-section {
    margin-top: 26px;
}
.rpa-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.rpa-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--rpa-text);
    line-height: 27px;
}
.mt-4{
    margin-top: 16px;
}
.-mt-2{
    margin-top: -8px;
}
.-mt-3{
    margin-top: -12px;
}
div#rpa_itemized_repair_fields,
div#rpa_itemized_closing_fields,
div#rpa_income_breakdown_fields {
    border-radius: 10px;
    background: #F8FAFC;
    padding: 24px;
}
div#rpa_itemized_repair_fields .rpa-field,
div#rpa_itemized_closing_fields .rpa-field {
    flex: 1 1 180px;
}
div#rpa_itemized_repair_fields .rpa-field .rpa-input-prefix,
div#rpa_itemized_closing_fields .rpa-field .rpa-input-prefix {
    max-width: 160px;
    background-color: #fff;
}
div#rpa_itemized_repair_fields .rpa-field .rpa-input-prefix input,
div#rpa_itemized_closing_fields .rpa-field .rpa-input-prefix input {
 background-color: #fff;
}
.rpa-toggle-input-default {
    width: 18px;
    height: 18px;
    accent-color: #4285F4;
    cursor: pointer;
}
.rpa-optional-shaded input#rpa_prop_value_growth {
    background: #fff;
}
input[type="checkbox"]:checked ~ span.rpa-toggle-text {
    color: #008080;
}
/* ---------- Field Rows ---------- */
.rpa-field-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.rpa-field-row-4col .rpa-field { flex: 1 1 140px; }
.rpa-field-row-3col .rpa-field { flex: 1 1 160px; }
.rpa-field      { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.rpa-field-full { flex-basis: 100%; }
.rpa-field-grow { flex: 2 1 300px; }
.rpa-field-photo{ flex: 0 0 200px; }
.item-center{
        align-items: center;

}
/* ---------- Labels ---------- */
.rpa-label {
    color: var(--rpa-text);
    display: flex;
    align-items: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    gap: 5px;
}
.rpa-required  { color: var(--rpa-danger); font-weight: 700; }
.rpa-highlight { color: var(--rpa-primary);  }

/* ---------- Inputs ---------- */
.rpa-form-card input[type="text"], input[type="number"], 
.rpa-form-card input[type="email"], input[type="url"], 
.rpa-form-card input[type="password"], input[type="search"], 
.rpa-form-card input[type=reset], input[type=tel], 
.rpa-form-card input[type=date], 
.rpa-form-card select, 
.rpa-form-card textarea,
.ffc-adv-item-label {
    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; 
}
.rpa-form-card textarea {
    min-height: 122px;
}
.rpa-form-card input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
   color: #90A1B9;
}
.rpa-form-card input::-moz-placeholder { /* Firefox 19+ */
  color: #90A1B9;
}
.rpa-form-card input:-ms-input-placeholder { /* IE 10+ */
   color: #90A1B9;
}
.rpa-form-card input:-moz-placeholder { /* Firefox 18- */
   color: #90A1B9;
}
.rpa-form-card input:-webkit-autofill {
  -webkit-text-fill-color: #90A1B9 !important;
}
.rpa-input-pct { max-width: 100px; }
.rpa-textarea  { resize: vertical; }

/* ---------- Prefix / Suffix ---------- */
.rpa-input-prefix,
.rpa-input-suffix {
display: flex;
    align-items: stretch;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    overflow: hidden;
    background: #F8FAFC;
    transition: border-color .2s, box-shadow .2s;
}
.rpa-input-prefix:focus-within,
.rpa-input-suffix:focus-within,
.rpa-input-prefix-month:focus-within {
    border-color: var(--rpa-primary);
    box-shadow: 0 0 0 3px rgba(13,122,95,.12);
}
.rpa-input-prefix-month {
    display: flex;
    align-items: center;
}
div#expense-growth .rpa-field-row {
    margin: 0;
}
.rpa-input-prefix-month span.rpa-per-month {
    border: navajowhite;
}
.rpa-prefix, .rpa-suffix, .rpa-per-month {
    padding: 0 0px 0 10px;
    color: #314158;
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}
.rpa-suffix, .rpa-per-month {
    border-right: none;
    border-left: 1.5px solid var(--rpa-border);
}
.rpa-input-prefix .rpa-input,
.rpa-input-suffix .rpa-input,
.rpa-input-prefix-month .rpa-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    box-shadow: none;
    padding: 9px 11px 9px 11px;
}
.rpa-input-prefix .rpa-input:focus,
.rpa-input-suffix .rpa-input:focus,
.rpa-input-prefix-month .rpa-input:focus { box-shadow: none; }

.rpa-input-dual {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rpa-dual-sep { font-size: 12px; color: var(--rpa-text-light); white-space: nowrap; }

.rpa-input-with-period {
    display: flex;
    gap: 8px;
    align-items: center;
}
.rpa-select-sm {
    width: auto;
    flex-shrink: 0;
    padding: 9px 10px;
    font-size: 13px;
}

/* ---------- Toggle Switch ---------- */
.rpa-toggle-label { 
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    user-select: none;
    color: #314158;
}
.rpa-toggle-input { display: none; }
.rpa-toggle {
    width: 36px;
    height: 20px;
    border-radius: 12px;
    background: #CCC;
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}
.rpa-toggle::after {
    content: '';
    position: absolute;
    top: 2px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left .2s;
}
.rpa-toggle-input:checked + .rpa-toggle            { background: var(--rpa-primary); }
.rpa-toggle-input:checked + .rpa-toggle::after     { left: 18px; }

/* ---------- Sub Fields ---------- */
.rpa-sub-fields {
    margin: 16px 0 0px;
}
.mb-0 .rpa-field-row {
    margin-bottom: 8px;
}
/* ---------- Optional Toggles ---------- */
.rpa-optional-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    width: fit-content;
    flex-wrap: wrap;
}
.rpa-optional-tag {
    color: #90A1B9;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
}
.rpa-optional-label {
    color: var(--rpa-text);
    transition: color .15s;
    font-size: 14px;
    font-style: normal;
    font-weight: 500; 
    line-height: 21px;
}
.rpa-toggle-arrow {
    width: 16px; height: 16px;
    color: var(--rpa-text-light);
    transition: transform .2s;
}
.rpa-optional-toggle.open .rpa-toggle-arrow { transform: rotate(180deg); }
.rpa-optional-content                       { display: none; }
.rpa-optional-content.open                  { display: block; }
.rpa-optional-shaded {
    padding: 24px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #F8FAFC;
    margin-top: 16px;
}
.flex-row{
    flex-direction: row;
}
.rpa-field.rpa-field-full.flex-row span.rpa-suffix {
    border: none;
    padding: 0;
}
/* ---------- Photo Upload ---------- */
.rpa-photo-upload {
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    color: var(--rpa-text-light);
    font-size: 13px;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    border: 2px solid #90A1B9;
    height: 138px;
    justify-content: center;
}
div#rpa_photo_drop span {
    color: #1E90FF;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
}
.rpa-photo-icon svg {
    display: block;
}
/* ---------- Tooltip ---------- */
.rpa-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    color: #90A1B9;
}
.rpa-tip:hover {
    border-color: var(--rpa-primary);
    color: var(--rpa-primary);
}
.rpa-tooltip-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 13px;
    border-radius: 7px;
    max-width: 260px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    pointer-events: none;
}
.max-w-452{
    max-width: 452.5px;
    width: 100%;
}
/* ---------- Hint Text ---------- */
.rpa-hint {
    margin: -12px 0 24px;
    color: #90A1B9;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

/* ---------- Info Box ---------- */
.rpa-info-box {
    background: var(--rpa-primary-lt);
    border: 1px solid rgba(13,122,95,.2);
    border-radius: 7px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--rpa-primary-dk);
    margin-top: 10px;
}
.rpa-info-box strong { font-size: 16px; }

/* ---------- Buttons ---------- */
.rpa-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 24px;
}
.rpa-btn {
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    border-radius: 10px;
    display: flex;
    padding: 12px 22.5px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    gap: 5px;
}
.rpa-btn svg { width: 17px; height: 17px; }
.rpa-btn-primary {
background: linear-gradient(180deg, #008080 0%, #066 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 128, 128, 0.30), 0 4px 6px -4px rgba(0, 128, 128, 0.30);
    padding: 10px 22px;
}
.rpa-btn-secondary {
    background: #fff;
    color: var(--rpa-text);
    border: 1.5px solid var(--rpa-border);
}
.rpa-btn-secondary:hover {
    border-color: var(--rpa-primary);
    color: var(--rpa-primary);
    background: var(--rpa-primary-lt);
}

/* ---------- Results Panel ---------- */
.rpa-results-header      { margin-bottom: 24px; }
.rpa-results-header h2   { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.rpa-results-address     { font-size: 13.5px; color: var(--rpa-text-light); }

.rpa-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.rpa-metric-card {
    background: var(--rpa-bg);
    border: 1px solid var(--rpa-border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.rpa-metric-card.rpa-metric-highlight {
    background: var(--rpa-primary);
    border-color: var(--rpa-primary);
    color: #fff;
}
.rpa-metric-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .75;
    margin-bottom: 6px;
}
.rpa-metric-value { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.rpa-metric-sub   { font-size: 11px; opacity: .65; }

.rpa-results-section     { margin-bottom: 28px; }
.rpa-results-section h3  {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    border-bottom: 2px solid var(--rpa-border);
    padding-bottom: 8px;
}

.rpa-summary-table { display: flex; flex-direction: column; }
.rpa-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    font-size: 13.5px;
    border-radius: 5px;
}
.rpa-summary-row:nth-child(even) { background: var(--rpa-bg); }
.rpa-summary-indent  { padding-left: 28px; }
.rpa-summary-total   { font-weight: 700; border-top: 1px solid var(--rpa-border); margin-top: 4px; }
.rpa-summary-divider { height: 12px; }
.rpa-summary-noi     { color: var(--rpa-primary); font-weight: 700; }
.rpa-summary-cf      { color: var(--rpa-primary); }
.rpa-summary-cf span:last-child { font-size: 16px; }

.rpa-table-wrap { overflow-x: auto; }
.rpa-projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.rpa-projection-table th {
    background: var(--rpa-text);
    color: #fff;
    padding: 10px 14px;
    text-align: right;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .04em;
}
.rpa-projection-table th:first-child { text-align: left; border-radius: 7px 0 0 0; }
.rpa-projection-table th:last-child  { border-radius: 0 7px 0 0; }
.rpa-projection-table td {
    padding: 9px 14px;
    text-align: right;
    border-bottom: 1px solid var(--rpa-border);
}
.rpa-projection-table td:first-child { text-align: left; font-weight: 600; }
.rpa-projection-table tr:nth-child(even) td { background: var(--rpa-bg); }
.rpa-projection-table .positive { color: var(--rpa-success); font-weight: 600; }
.rpa-projection-table .negative { color: var(--rpa-danger);  font-weight: 600; }

.rpa-results-actions {
    border-top: 1px solid var(--rpa-border);
    padding-top: 20px;
}

/* ---------- Standalone page ---------- */
.rpa-standalone-body { background: var(--rpa-bg); }
.rpa-standalone-wrap { padding: 20px 0 60px; }
div#rpa_mortgage_fields {
    margin-top: 24px;
}
.rpa-field-row.custom-grid {
    flex: 1 1 200px;
    margin-bottom: 0;
}
.rpa-field-row.custom-grid .rpa-field.rpa-field-full.flex-row input {
    width: 64px;
    padding: 12px 8px;
}
.rpa-calc-monthly-payment.rpa-info-box {
    display: none;
}
div#rpa_mortgage_fields {
    margin-top: 24px;
}
.mt-6{
    margin-top: 24px;
}
.fields-white .rpa-input, .fields-white .rpa-input-prefix {
    background: #ffffff !important;
}
/* ---------- Print ---------- */
@media print {
    .rpa-sidebar, .rpa-form-card, .rpa-actions { display: none !important; }
    .rpa-wrap { padding: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .rpa-container {
        flex-direction: column;
    }
    .rpa-sidebar {
        width: 100%;
        order: -1;           /* sidebar on TOP on mobile */
        position: static;
    }
}
@media (max-width: 767px) {
    .rpa-form-card { padding: 30px 16px; }
    .rpa-metrics-grid { grid-template-columns: 1fr 1fr; }
    .rpa-field-row-4col .rpa-field,
    .rpa-field-row-3col .rpa-field { flex: 1 1 140px; }
}

/* ---------- Add Custom Field Button ---------- */
.rpa-btn-add-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: transparent !important;
    border-radius: 6px;
    color: var(--rpa-primary) !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s; 
    box-shadow: none;
}
.rpa-btn-add-field svg { width: 14px; height: 14px; }
.rpa-btn-add-field:hover { background: var(--rpa-primary); color: #fff; }

/* ---------- Custom Income Field Row ---------- */
.rpa-custom-field-row { margin-top: 10px; }
.rpa-custom-field-wrap { width: 100%; }
.rpa-custom-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.rpa-input-label {
    flex: 1;
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid var(--rpa-border);
    border-radius: 6px;
    background: #fff;
    color: var(--rpa-text);
}
.rpa-btn-remove-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: var(--rpa-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
    background: transparent !important;
    padding: 0 !important;
}
.rpa-btn-remove-field svg { width: 11px; height: 12px; }
.rpa-form-card .rpa-optional-shaded input[type="number"] {
    max-width: 80px;
    background: #ffffff;
}
.rpa-input-with-period select {
    width: auto;
}
.rpa-input-with-period .rpa-input-prefix {
    flex: 1;
}
.rpa-field-row-4col.flex-auto .rpa-field.rpa-field-full.flex-row {
    flex: initial;
}
/* ---------- Hidden utility ---------- */
.rpa-hidden { display: none !important; }


/* ============================================================
   RESULTS PAGE — matches screenshots exactly
   ============================================================ */
/* ---- Top Bar ---- */
.rpa-report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFF;
    margin-bottom: 44px;
}
.rpa-report-topbar-left { display: flex; align-items: center; gap: 12px; }
.rpa-report-title {
    font-size: 14px;
    color: var(--rpa-text);
}
.rpa-view-all-link { font-size: 12px; color: var(--rpa-primary); text-decoration: none; }
.rpa-view-all-link:hover { text-decoration: underline; }
.rpa-report-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rpa-last-updated {
    color: #90A1B9;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}
.rpa-topbar-btn, .rpa-edit-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    border: 1px solid #E2E8F0;
    color: #314158;
}
button.rpa-edit-details-btn {
    border: 1px solid #E2E8F0;
    color: #90A1B9;
}
.rpa-topbar-btn:hover,
.rpa-edit-details-btn:hover { 
    background: linear-gradient(180deg, #008080 0%, #066 100%);
color: #fff;
border-color: #008080;
 }
.rpa-topbar-btn-primary {
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(180deg, #008080 0%, #066 100%);
}
.rpa-topbar-btn-pdf {
    color: #008080;
    border-radius: 10px;
    border-color: #008080;
    background: #fff;
    font-weight: 600;
}
.rpa-topbar-btn-pdf:hover {
    background: linear-gradient(180deg, #008080 0%, #066 100%) !important;
    color: #fff !important;
    border-color: #008080 !important;
}
.rpa-topbar-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--rpa-text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    background: transparent !important;
    opacity: 1;
}
.rpa-topbar-close:hover { color: var(--rpa-text); }

/* ---- Hero Property Card ---- */
.rpa-hero-card {
    border-top: none;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #FFF;
}
.rpa-hero-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}
.rpa-hero-photo { width: 128px; height: 70px; object-fit: cover; border-radius: 8px; }
.rpa-hero-address {
    color: var(--rpa-text);
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}
.rpa-hero-sub {
    margin: 0px 0 6px;
    color: var(--rpa-text);
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}
.rpa-hero-cf-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: var(--rpa-text-light);
}
.rpa-hero-cf-tag span { color: #008080 !important; font-weight: 500; }

/* ---- Chart + Stats Row ---- */
.rpa-chart-stats-row {
    display: flex;
    gap: 0;
    background: #fff;
    border-top: none;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 16px;
    gap: 24px;
}
.rpa-chart-box { flex: 1; 
     min-width: 0; }
.rpa-stats-box {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rpa-stat-label {
    margin-bottom: 2px;
    color: #90A1B9;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}
div#res_hs_cf {
    color: #314158 !important;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 48px;
        word-wrap: break-word;
}
.rpa-stat-yelow{
   color: var(--rpa-yelow) !important; 
}
.rpa-stat-val { font-size: 18px; font-weight: 600; color: var(--rpa-text); }
.rpa-stat-xl { font-size: 24px; }
.rpa-stat-per { font-size: 12px; font-weight: 400; color: var(--rpa-text-light); }
.rpa-stat-green { color: var(--rpa-success) !important; }
.rpa-stat-red   { color: var(--rpa-danger)  !important; }

/* ---- Hero Bottom Bar ---- */
.rpa-hero-bottom-bar {
    display: flex;
    gap: 60px;
    margin-top: 24px;
    justify-content: space-around;
}
.rpa-hero-bottom-label { font-size: 12px; color: var(--rpa-text-light); margin-bottom: 4px; text-align: center; }
.rpa-hero-bottom-val { font-size: 24px; font-weight: 600; color: var(--rpa-text); text-align: center; }

/* ---- Three Cards ---- */
.rpa-three-cards {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 24px; margin: 0 0 20px;
}
.rpa-card3 {
    background: #fff;
    border-radius: var(--rpa-radius); padding: 24px;
}
.rpa-card3-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--rpa-text);
}
/* Donut */
.rpa-donut-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.rpa-donut-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 16px; font-weight: 700; color: var(--rpa-text); white-space: nowrap; pointer-events: none;
}

/* Card rows + sliders */
.rpa-card3-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: var(--rpa-text); margin-bottom: 3px;
}
.rpa-card3-row span:last-child {
    color: #00D4D4;
}
.rpa-card3 .rpa-loan-label {
    text-align: center;
}
.rpa-val-teal { color: #00D4D4; font-weight: 500; font-size: 14px; }
.rpa-slider-wrap { margin: 3px 0 16px; }
.rpa-live-slider {
    width: 100%; -webkit-appearance: none; height: 4px;
    background: #E2E8F0; border-radius: 10px; outline: none; cursor: pointer;
}
.rpa-live-slider::-webkit-slider-thumb {
-webkit-appearance: none !important;
  appearance: none !important; 
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: transform 0.15s !important;
  margin-top: -5px !important;
  border: solid 3px #008080 !important;
}
.rpa-live-slider::-moz-range-thumb {
-webkit-appearance: none !important;
  appearance: none !important; 
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: transform 0.15s !important;
  margin-top: -5px !important;
  border: solid 3px #008080 !important;
}
input[type=range]::-webkit-slider-runnable-track{
  box-shadow: unset !important;
}
/* Loan card */
.rpa-loan-label { font-size: 11px; color: var(--rpa-text-light); margin-bottom: 4px; }
.rpa-loan-amount {
    margin-bottom: 14px;
    color: #90A1B9;
    text-align: center;
    font-family: Gilroy;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
}

/* ---- Section Cards ---- */
.rpa-section-card {
    background: #fff;
    border-radius: var(--rpa-radius); padding: 24px;
    margin-bottom: 24px;
}
.rpa-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.rpa-help-link { font-size: 13px; color: var(--rpa-text-light); }
.rpa-help-link a { color: var(--rpa-primary); text-decoration: none; }
.rpa-info-icon { font-size: 12px; color: var(--rpa-text-light); margin-left: 5px; cursor: help; }

/* ---- Expense Breakdown ---- */
.rpa-breakdown-title { font-size: 14px; font-weight: 600; text-align: center; margin-bottom: 20px; color: var(--rpa-text); }
.rpa-breakdown-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
.rpa-breakdown-donut { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.rpa-donut-center-lg { font-size: 19px !important; }
.rpa-breakdown-cols { display: flex; flex: 1; gap: 28px; }
.rpa-breakdown-col { flex: 1; min-width: 0; }
.rpa-bcol-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--rpa-text);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;
}
.rpa-bcol-row {
    display: flex; align-items: center; font-size: 12px;
    color: var(--rpa-text); padding: 4px 0;
    border-bottom: 1px solid #f8fafc; gap: 6px;
}
.rpa-bcol-row span:last-child {
    margin-left: auto;
    text-align: left;
    min-width: 50px;
}
.rpa-bcol-head span {
    text-align: left;
    min-width: 50px;
}
.rpa-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---- Returns / 50% Rule ---- */
.rpa-returns-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.rpa-ret-label { font-size: 14px; color: var(--rpa-text-light); margin-bottom: 2px; }
.rpa-ret-val { font-size: 24px; font-weight: 600; color: var(--rpa-text); }

/* ---- Projection Table ---- */
.rpa-proj-table-card { overflow-x: auto; padding: 0; }
.rpa-proj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 700px;
    border: none;
    margin-top: 24px;
}
.rpa-proj-table th {
    padding: 12px 12px;
    color: var(--rpa-text-light);
    font-weight: 500;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
    border-left: 0;
    border-right: 0;
    text-align: left;
}
.rpa-proj-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #E2E8F0;
    color: var(--rpa-text);
    white-space: nowrap;
    border-left: 0;
    border-right: 0;
     text-align: left;
}
.rpa-proj-table td:first-child {
    display: flex; align-items: center; gap: 6px;
}
.agreement-section h6 {
    color: #90A1B9;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 17.875px;
    margin-bottom: 3px;
}
.agreement-section p {
    color: #90A1B9;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}
.agreement-section {
    margin-top: 40px;
}
/* .rpa-proj-table .positive { color: var(--rpa-success); font-weight: 600; }
.rpa-proj-table .negative { color: var(--rpa-danger);  font-weight: 600; } */
.rpa-proj-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.rpa-wrap input[type=number]::-webkit-inner-spin-button, 
.rpa-wrap input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .rpa-three-cards { grid-template-columns: 1fr 1fr; }
    .rpa-returns-grid4 { grid-template-columns: 1fr 1fr; gap: 16px; }
    .rpa-chart-stats-row { flex-direction: column; }
   .rpa-stats-box {
    width: 100%;
    border-left: none;
    flex-direction: column;
    flex-wrap: wrap;
}
    .rpa-hero-bottom-bar { gap: 24px; }
}
@media (max-width: 767px) {
    .rpa-hero-photo {
    width: 88px;
}
    .rpa-three-cards { grid-template-columns: 1fr; }
    .rpa-breakdown-body { flex-direction: column; }
    .rpa-breakdown-cols { flex-direction: column; }
    .rpa-page-title {
    margin: 0 0 24px;
    font-size: 22px;
    line-height: 32px;
}
    .rpa-returns-grid4 { grid-template-columns: 1fr 1fr; }
    .rpa-hero-card {
    padding: 24px 16px;
}
.rpa-hero-address {
    font-size: 24px;
    line-height: 28px;
}
.rpa-hero-sub {
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
}
.rpa-hero-cf-tag {
    font-size: 13px;
}
.rpa-chart-stats-row,
.rpa-card3,
.rpa-section-card {
    padding: 24px 16px;
}
}


#post-20543 .entry-header .entry-title{display: none !important;}
.lead-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.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;
}

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

#leadForm_rentalpropertycalculator 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;
}
