.lonestar-calculator {
    max-width: 800px;
    margin: 20px auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px 0px rgba(25, 41, 86, 0.07);
}

.calculator-section {
    margin-bottom: 40px;
}

.calculator-section h2 {
    color: #333;
    margin: 4rem 0 20px 0;
    font-size: 1.7rem;
}

.calculator-section h1 {
    color: #333;
    margin: 0rem 0 20px 0;
    font-size: 2rem;
}

.calculator-section h3 {
  font-size: 22px;
}

/* Form Styles */
#calculatorForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#calculatorForm label {
    font-weight: 500;
}

#calculatorForm input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#calculatorForm button {
    background: #35A448;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

#calculatorForm button:hover {
    background: #2d8a3c;
}

/* Background color if not home or pricing */
body.non-pricing-page .lonestar-calculator {
    background-color: #B6DF47;
}

/* Cumulative Costs Table */
.cumulative-costs {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.cumulative-costs td {
    padding: 10px;
    border: none;
}

.cumulative-costs td:last-child {
    text-align: right;
}

/* Alert Messages */
.yearly-budget-alert {
    background-color: #ffebe9;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #24292f;
}

.yearly-budget-alert i {
    color: #cf222e;
    margin-right: 8px;
}

/* Cost Range Alert */
.cost-range-alert {
    background-color: #e6f6ed;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #24292f;
}

.cost-range-alert i {
    color: #1a7f37;
    margin-right: 8px;
}

/* Cost Breakdown */
.cost-breakdown {
    width: 100%;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.expense-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tooltip */
.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #FFEBE9;
    color: #cf222e;
    border-radius: 50%;
    font-size: 16px;
    cursor: help;
    position: relative;
    margin-top: -10px;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%) translateY(-100%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 100;
}

/* Investment Comparison */
.investment-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.investment-col {
    background: #fff;
    padding: 1.75rem;
    border-radius: 8px;
}

.investment-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.investment-col ul li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-item {
	margin-bottom: .5rem;
}

.detail-item.note {
    font-size: 15px; 
}

.investment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.icon-circle-success {
    background-color: #e6f6ed;
    color: #1a7f37;
}

.icon-circle-danger {
    background-color: #ffebe9;
    color: #cf222e;
}

.investment-col h3 {
    margin: 0;
}

.calculator-divider {
  background-color: #eee;
  border: 0;
  height: 1px;
  margin-top: 4rem;
  margin-bottom: -1rem;
}


input, textarea {
    font-family: "DM Sans", sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .investment-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tooltip:hover::after {
        width: 200px;
        white-space: normal;
        text-align: center;
    }
}