/* Mortgage Calculator Stylesheet */
.mc-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.mc-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 320px; /* Kept narrow for AdSense space */
    box-sizing: border-box;
}

.mc-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #0f172a; /* Navy Blue */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.mc-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.mc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

/* Wrapper for Inputs with Currency/Percentage symbols */
.mc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mc-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.mc-input-wrapper input {
    padding-left: 30px; /* Space for currency symbol */
}

.mc-input-wrapper #mcRate {
    padding-left: 12px;
    padding-right: 35px; /* Space for percentage symbol */
}

.mc-currency {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #64748b;
}

.mc-symbol {
    position: absolute;
    right: 12px;
    font-weight: 600;
    color: #64748b;
}

.mc-input-group input:focus {
    outline: none;
    border-color: #059669; /* Emerald Green */
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    background: #ffffff;
}

.mc-btn {
    width: 100%;
    background: #059669; /* Financial Emerald Green */
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

.mc-btn:hover {
    background: #047857;
}

.mc-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: none; /* Hidden until calculated */
}

.mc-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #166534;
    letter-spacing: 0.05em;
}

.mc-result-main {
    margin: 10px 0 15px 0;
    font-size: 2.2rem;
    font-weight: 900;
    color: #15803d;
}

.mc-breakdown {
    border-top: 1px solid #dcfce7;
    padding-top: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #166534;
}

.mc-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mc-breakdown-row:last-child {
    margin-bottom: 0;
}