/* ==============================
   Shared FinQnA Calculator Styles
   ============================== */

.finqna-calculator {
    padding: 10px 15px 30px;
}

.finqna-calculator.is-faq {
    padding: 0;
}

.finqna-calculator .fi-box {
    background-color: #f3f3f3; 
    border: 1px solid #dddddd;
    border-left: 9px solid #3c9294;
    border-radius: 8px; 
    padding: 21px 25px 5px; 
    margin: 10px 0 25px;
}

.finqna-calculator .fi-box.is-faq  {
    margin: 0 1px 12px;
    padding: 1.2em 1.6em;
    border: 1px solid #b3d6d6;
    border-left: 9px solid #3c9294;
    border-radius: 8px;
    background-color: #eaf6f6;
}

.wp-block-column .finqna-calculator-desc {
    margin-bottom: -15px;
}

/* ===== LABEL STYLES ===== */

.finqna-calculator .fi-label {
    font-size: 1.1em;
    font-weight: bold;
    display: block;
}

.finqna-calculator .fi-label2 {
    font-size: 1.0em;
    font-style: italic;
    display: block;
}

.finqna-calculator .fi-label-large {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

.finqna-calculator .fi-label-small {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* ===== INPUTS ===== */

.finqna-calculator input,
.finqna-calculator select,
.finqna-calculator .fi-input {
    width: 95%;
    max-width: 220px;
    padding: 4px 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* ===== BUTTON ===== */

.finqna-calculator button {
    background: #16425B;
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin: 6px 0 10px;
}

.finqna-calculator button:hover {
    background: #005177;
}

/* ===== RESULT / CHART ===== */

.finqna-calculator .fi-result {
    margin-top: 10px;
    font-size: 1.25em;
    line-height: 1.5em;
}

canvas {
    margin-top: 15px;
    margin-bottom: 15px;
}

:root {
  /* FinQnA Chart Color Tokens */
  --fi-chart-1: #5a8cc1; /* blue */
  --fi-chart-2: #f28e2b; /* orange */
  --fi-chart-3: #edc949; /* gold */
  --fi-chart-4: #e15759; /* red */
  --fi-chart-5: #6dd1c9; /* teal */
  --fi-chart-6: #439963; /* green */
  --fi-chart-7: #af7aa1; /* purple */
  --fi-chart-8: #ff9da7; /* pink */
}

/* ===== TABLE ===== */

.fi-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #074149;
    padding: 8px 10px !important;
    margin: 10px 0;
}

.fi-table th,
.fi-table td {
    padding: 5px 10px;
}

.fi-table th {
    background-color: #3c9294;
    color: #fff;
    text-align: left;
}

/* ===== FAQ ACCORDION ===== */

.calculator-accordion {
    margin: 0;
    padding: 1.4em 1.5em 1.5em;
    background-color: #f0f0f0;
    border: 2px solid #dddddd;
}

.calculator-accordion .calculator-accordion-content {
    display: none;
    padding: 0.5em 0.9em;
    background-color: #f9f9f9;
    margin-bottom: 0.5em;
    border-left: 4px solid #dddddd;
}

.calculator-accordion .calculator-accordion-title {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.75em 0.15em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

/* Mobile: stack input below label, full width */
@media (max-width: 767px) {
    .calculator-accordion .calculator-accordion-title {
    font-size: 1.05em; }
}

.calculator-accordion .calculator-accordion-title:after {
    content: "➕";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.calculator-accordion .calculator-accordion-title.active:after {
    content: "➖";
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ===== PROGRESS BAR ===== */

.fi-progress-wrap {
    margin-bottom: 25px;
}

.fi-progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 50px;
    overflow: hidden;
}

.fi-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--fi-primary, #3c9294);
    transition: width 0.4s ease;
    border-radius: 50px;
}

.fi-progress-text {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
}

