body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.calculator-container h3 {
    color: #084288;
    font-size: 14px;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.input-container label {
    width: 55%;
    text-align: right;
    margin-right: 5%;
    font-size: 14px;
}

.input-container input, .input-container select {
    width: 30%;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
}

.input-container input::placeholder {
    font-size: 0.8em;
    color: #999;
}

#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    padding: 10px 20px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
}

#button-container button:hover {
    background-color: #434c6d;
}

#result {
    text-align: left;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

#result.show {
    display: block;
}

#result h3 {
    color: #084288;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 15px;
}

#result .total-cost-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #084288, #17a2b8);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

#result .total-cost-box .big-number {
    font-size: 36px;
    font-weight: bold;
}

#result .total-cost-box .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

#result .total-cost-box .multiplier {
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

#result .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

#result .metric-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid #084288;
}

#result .metric-card .metric-value {
    font-size: 20px;
    font-weight: bold;
    color: #084288;
}

#result .metric-card .metric-label {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

#result .breakdown-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#result .breakdown-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #084288;
}

#result .breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

#result .breakdown-item:last-child {
    border-bottom: none;
}

#result .breakdown-item .item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
}

#result .breakdown-item .item-value {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

#result .breakdown-item .item-percent {
    font-size: 11px;
    color: #666;
    margin-left: 5px;
}

#result .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#result .cost-chart {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}

#result .cost-chart-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
}

#result .comparison-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

#result .comparison-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

#result .comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 8px;
}

#result .comparison-label {
    font-size: 13px;
    color: #666;
}

#result .comparison-value {
    font-weight: bold;
    font-size: 16px;
}

#result .comparison-value.employee {
    color: #084288;
}

#result .comparison-value.contractor {
    color: #28a745;
}

#result .comparison-value.savings {
    color: #dc3545;
}

#result .verdict-box {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

#result .verdict-box.employee-better {
    background: #e3f2fd;
    color: #084288;
    border: 2px solid #084288;
}

#result .verdict-box.contractor-better {
    background: #e8f5e9;
    color: #28a745;
    border: 2px solid #28a745;
}

.help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    cursor: help;
    color: #084288;
    font-size: 14px;
    position: relative;
}

.help-icon:hover .disclaimer {
    display: block;
}

.disclaimer {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    width: 300px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 13px;
}

.disclaimer p {
    margin: 5px 0;
}
