.mc-wrapper{
    font-family: inherit;
    font-size: 14px;
}
.mc-wrapper label.error{
    color: #ff0000;
    margin-top: 5px;
    display: block;
}
.mc-wrapper label{
    color: inherit;
    margin-bottom: 5px;
    display: block;
}
.mc-wrapper input{
    width: 100%;
    padding: 19px 10px;
    height: 40px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.mc-wrapper input[type = "submit"]{
    width: auto;
    padding: 12px 20px;
    border: none;
    box-shadow: none;
    cursor: pointer;
}
.mc-wrapper input,
.mc-wrapper input:focus,
.mc-wrapper input:active{
    outline: none;
}
.mc-wrapper p{
    margin-bottom: 20px;
    line-height: 30px;
}
#mc-output{
    display: none;
}
#mc_chart_icon{
    cursor: default;
}

/* Amortization Schedule Modal */
#mc-amortization-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

#mc-amortization-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    overflow: hidden;
}

#mc-amortization-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
    transition: color 0.2s;
}

#mc-amortization-close:hover {
    color: #333;
}

#mc-amortization-content {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.mc-amortization-wrapper h2 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 24px;
    color: #333;
}

.mc-amortization-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.mc-amortization-summary p {
    margin: 5px 0;
    padding: 0;
}

.mc-amortization-table-wrapper {
    overflow-x: auto;
}

.mc-amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.mc-amortization-table thead {
    background: #333;
    color: #fff;
}

.mc-amortization-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
}

.mc-amortization-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ddd;
}

.mc-amortization-table tbody tr:hover {
    background: #f9f9f9;
}

.mc-amortization-table tbody tr:nth-child(12n+12) {
    background: #f0f0f0;
    font-weight: bold;
}

#mc-amortization-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#mc-amortization-link:hover {
    text-decoration: none;
}

/* Old MLCalc styles - removed, now using self-hosted amortization */
#MLCalcClose,
#MLCalcShader,
#MLCalcHolder {
    display: none;
}

/* Mortgage Widget System Styles */
.mc-widget-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mc-field-group {
    margin-bottom: 20px;
}

.mc-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.mc-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.mc-input:focus {
    outline: none;
    border-color: #0073aa;
}

.mc-button {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.mc-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mc-button:active {
    transform: translateY(0);
}

.mc-results {
    margin-top: 30px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.mc-results-title {
    margin: 0;
    padding: 15px 20px;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.mc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

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

.mc-result-main {
    background: #0073aa;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 20px;
}

.mc-result-main .mc-result-value {
    font-size: 28px;
}

.mc-result-label {
    font-weight: 500;
    color: #666;
}

.mc-result-main .mc-result-label {
    color: rgba(255,255,255,0.9);
}

.mc-result-value {
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

.mc-result-main .mc-result-value {
    color: #fff;
}

.mc-result-details {
    padding: 10px 0;
}

.mc-result-actions {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.mc-link {
    display: inline-block;
    padding: 10px 20px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.mc-link:hover {
    text-decoration: underline;
}

.mc-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mc-widget-container {
        padding: 15px;
    }
    
    .mc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .mc-result-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Amortization table styling for year-end rows */
.mc-amortization-table tbody tr.mc-year-end {
    background: #e8f4f8 !important;
    font-weight: bold;
    border-top: 2px solid #0073aa;
    border-bottom: 2px solid #0073aa;
}

