body {
    font-family: 'Montserrat', sans-serif;
    /* Use a very light pink to match the provided design */
    background-color: #ffffff;
    color: #333;
}
.logo{
    max-width:420px;
}
#intro-section, #saiba-mais{
    background: #f6f0f2;
}
.pt-10{
    margin-top: 100px;
}
.navbar-brand {
    font-weight: 700;
    color: #ed4b5f;
}
.remove{
    display: none !important;
}
.card-sim {
    background-color: #fff;
    padding: 1rem 1.5rem;
}
.btn-primary {
    background-color: #ef4036;
    border-color: #ef4036;
}
.btn-primary:hover {
    background-color: #d23e3b;
    border-color: #d23e3b;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ed4b5f;
    margin-bottom: 1rem;
}
.cost-summary h5 {
    font-weight: 600;
    color: #555;
}
.cost-summary .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ed4b5f;
}
.stage-item {
    margin-bottom: 1rem;
}
.stage-item .stage-title {
    font-weight: 600;
    color: #ed4b5f;
}
.table thead th {
    background-color: #fbeeee;
    color: #ed4b5f;
    border: none;
}
.table tbody td, .table tbody th {
    border: none;
}
.line-chart {
    width: 100%;
    max-width: 70%;
    margin: auto;
}
/* Toggle details */
.details-section {
    display: none;
}
.toggle-link {
    cursor: pointer;
    color: #ed4b5f;
    display: inline-block;
    margin-top: 1rem;
}
.footer {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f5dede;
}
.footer .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #ed4b5f;
}
.btn-whatsapp img{
    max-width: 40px;
}
.footer input, .footer button {
    border-radius: 8px;
    border: 1px solid #ccc;
}
.form-check-input:checked {
    background-color: #ed4b5f;
    border-color: #ed4b5f;
}

/* Custom input rows for landing page */
.input-row {
    /* lightly outlined input with thicker red accent on the right */
    border: 1px solid #f5dede;
    /* The right-hand accent line is drawn using a pseudo-element instead of border */
    background-color: #fff;
    border-radius: 8px;
    padding: 0 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    height: 60px;
    position: relative;
}
.input-row .form-control {
    border: none;
    box-shadow: none;
    padding-left: 0;
    flex: 1;
    font-size: 1rem;
    background-color: transparent;
    /* Remove default Bootstrap border and focus styling */
    border: none !important;
    outline: none;
}
.unit-label {
    border-left: 1px solid #f5dede;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    color: #777;
}
.btn-large {
    height: 50px;
    font-size: 1rem;
    border-radius: 8px;
    width: 40%
}

/* Draw the red accent line on the right side of each input row */
.input-row::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background-color: #ef4036;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Styles for results header */
.results-header h4 {
    font-weight: 100;
    color: #ef4036;
}

.summary-box {
    background-color: #fff;
    border: 1px solid #f5dede;
    border-radius: 8px;
    color: #333;
}
.btn-outline-danger {
    color: #fff;
    background-color: #ef4036;
    border-color: #ef4036;
}
.btn-outline-danger:hover {
    color: #fff;
    background-color: #ef4036;
    border-color: #ef4036;
}

/* Summary redesigned styles */
#summary-content .summary-total-box {
    background-color: #ffffff;
    border: 1px solid #f5dede;
    border-radius: 8px;
    /* Constrain the width of the total box to more closely match the reference design */
    max-width: 250px;
    display: inline-block;
}
#summary-content .summary-total-box .text-success,
#summary-content .summary-item .text-success {
    /* dark green for monetary values */
    color: #1f4232 !important;
}
#summary-content .summary-item .underline-red {
    width: 50px;
    height: 2px;
    background-color: #ef4036;
}
#summary-content .summary-item .underline-green {
    width: 50px;
    height: 2px;
    background-color: #005a4a;
}
#summary-content .summary-note small {
    font-size: 0.7rem;
}

/* Legend styles */
#legend-items .legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
#legend-items .legend-color-box {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}
#legend-items .legend-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
#legend-items .stage-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
#legend-items .stage-value {
    font-size: 0.8rem;
    color: #333;
}

/* Scale bar styles */
#etapas-scale {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#etapas-scale .scale-segment {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
#etapas-scale .scale-bar {
    width: 16px;
    border-radius: 0;
}
#etapas-scale .scale-label {
    margin-left: 6px;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

/* Ensure donut container retains its size within flex layouts */
.donut-container {
    width: 60%;
    height: auto;
    position: relative;
    flex: 0 0 auto;
}

/* Remove debug border around donut canvas now that layout is finalized */
#summary-chart-row canvas#donutChart {
    border: none;
}

/* Styles for stage details */
#stages-container .stage-item {
    border-radius: 8px;
    padding: 0.75rem;
    /* Use flex column to stack elements nicely */
    display: flex;
    flex-direction: column;
    height: 100%;
}
#stages-container .stage-title {
    font-weight: 600;
    color: #ef4036;
}
#stages-container .stage-panel {
    margin-top: 0.5rem;
    border-top: 1px solid #f5dede;
    padding-top: 0.5rem;
}
#stages-container .stage-panel .mb-2 {
    /* Container for each sub-item; header and panel nested inside */
    border: none;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
#stages-container .stage-panel .mb-2 > .d-flex {
    background-color: #ef4036;
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#stages-container .stage-panel .mb-2 > .d-flex svg {
    fill: #fff;
    transition: transform 0.3s ease;
}
/* rotate arrow when sub-item is open */
#stages-container .stage-panel .mb-2.open > .d-flex svg {
    transform: rotate(180deg);
}
#stages-container .stage-panel .mb-2 .ms-3 {
    margin-left: 0.75rem !important;
    margin-top: 0.5rem;
}
#stages-container .stage-panel .mb-2 .ms-3 ul {
    margin: 0;
    padding-left: 0.5rem;
    list-style: none;
}
#stages-container .stage-panel .mb-2 ul li {
    font-size: 0.8rem;
    color: #555;
}

/* Stage header styling */
#stages-container .stage-item > .d-flex {
    /* Stage titles are decorative labels, not inputs */
    border: 1px solid #ef4036;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    color: #ef4036;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* match the light pink background seen in the reference */
    background-color: #ffffff;
    cursor: default;
}
#stages-container .stage-item > .d-flex svg {
    /* hide any leftover SVG icons within stage titles */
    display: none;
}
#stages-container .stage-item > .d-flex::after {
    /* Ensure no pseudo-element arrow appears on stage titles */
    display: none !important;
}

/* optional note and total styling */
#stages-container .stage-total {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-weight: 500;
    padding: 5px 10px;
    background: #ffffff;
}
#stages-container .stage-total .total-label {
    color: #ef4036;
}
#stages-container .stage-total .total-value {
    color: #2d6a4f;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-weight: 500;
    font-size: 0.8rem;
}
#stages-container .stage-note {
    color: #ef4036;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Placeholder styling for inputs */
.input-row .form-control::placeholder {
    color: #b7b7b7;
    font-weight: 400;
}

/* Style for the link to site */
#link-to-site {
    color: #ef4036;
    text-decoration: underline;
    font-weight: 500;
}

/* Investment title styling for the line chart section */
#invest-title {
    color: #ef4036;
    font-weight: 100;
    font-size: 2rem;
    margin-bottom: 90px;
    line-height: 1.2;
    width: 50%;
}
/* Make the user's name bold within the investment title */
#invest-title strong {
    font-weight: 700;
}

/* Styling for the investment line chart. Do not set a background on the canvas so it blends seamlessly with the page. */
#lineChart {
    width: 100%;
    height: 400px !important;
}

/* ======================================================================
 *  Layout styles for the investment tables section
 *  These classes reproduce the visual layout shown in the provided design:
 *  - A heading row with small colored squares before each column title
 *  - Each semester displayed in its own row with a bold title on the left
 *    and a vertical red divider separating the title from the data table
 *  - Alternating row colors for readability
 ====================================================================== */
.tables-section {
    margin-top: 2rem;
}
.tables-section .header-row {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}
.tables-section .header-row .header-col {
    display: block;
    align-items: center;
    white-space: nowrap;
}
.tables-section .header-row .header-col .bullet {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 0.4rem;
    display: inline-block;
}
.bullet-period {
    background-color: #ed4b5f;
}
.bullet-percent {
    background-color: #ed4b5f;
}
.bullet-value {
    background-color: #ed4b5f;
}
.semester-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00272d;
    margin-bottom: 0.5rem;
}
.semester-wrapper {
    border-left: 2px solid #ed4b5f;
    padding-left: 1rem;
}
.schedule-table {
    width: 100%;
}
.schedule-table thead {
    display: none;
}
/*    .schedule-table tbody tr:nth-child(odd) {
       subtle gray stripe for alternating rows; contrasts against the white table background 
      background-color: #ccc;
    }
    .schedule-table tbody tr:nth-child(even) {
      background-color: #ffffff;
    }*/
.schedule-table th b,
.schedule-table td b{
    font-weight: 500;
}
.schedule-table th,
.schedule-table td {
    border: none;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    vertical-align: middle;
}
.schedule-table td:nth-child(2),
.schedule-table th:nth-child(2) {
    text-align: right;
}
.schedule-table td:nth-child(3),
.schedule-table th:nth-child(3) {
    text-align: right;
}
.schedule-table th {
    font-weight: 600;
    color: #333;
}
.schedule-table td {
    color: #004a3f;
}
.schedule-table td.total-label {
    font-weight: 600;
    color: #333;
}
.schedule-table td.total-value {
    font-weight: 600;
    color: #004a3f;
}
/* Ensure totals on the percentage and value columns adopt the same green tone as regular cells */
.schedule-table th:nth-child(2), .schedule-table th:nth-child(3) {
    color: #004a3f;
}

/* Explicit column widths for the tables so the percentages and values align cleanly */
.schedule-table td:nth-child(1), .schedule-table th:nth-child(1) {
    width: 55%;
}
.schedule-table td:nth-child(2), .schedule-table th:nth-child(2) {
    width: 20%;
}
.schedule-table td:nth-child(3), .schedule-table th:nth-child(3) {
    width: 25%;
}

.bto-contact{
    width: 50%;
}
#menu{
    position: fixed;
    background: #ffffff;
    width: 100%;
    padding: 10px;
    z-index: 9999;
    top: 0;
}

@media only screen and (max-width: 1024px) {
    .logo{
        max-width: 100%;
    }
    #invest-title {
        color: #ef4036;
        font-weight: 100;
        font-size: 1rem;
        margin-bottom: 90px;
        line-height: 1.2;
        width: 100%;
    }

    #lineChart {
        width: 100%;
        height: 250px !important;
    }

    .line-chart {
        width: 100%;
        max-width: 100%;
        margin: auto;
    }

    .header-col {
        font-size: 8px;
    }
    .mm-5{
        margin-top: 30px;
    }
    #results-section{
        padding-top: 120px !important;
    }
}
#summary-chart-row{
	padding-top: 60px;
}
.input-row p {
	margin-bottom: 0 !important;
}