/* ── Mortgage Calculator ─────────────────────────────────────────────────── */

.mc-page {
    min-height: 100vh;
    background: transparent;
    padding: 106px 16px 64px; /* 82px navbar + 24px breathing room */
}

.mc-wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* Heading */
.mc-heading { margin-bottom: 28px; }
.mc-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.mc-subtitle {
    font-size: 0.875rem;
    color: #888;
    margin: 0;
}

/* Grid */
.mc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 700px) {
    .mc-grid { grid-template-columns: 1fr; }
}

/* Panel */
.mc-panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
}

.mc-panel-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 20px;
}

/* Field */
.mc-field { margin-bottom: 20px; }
.mc-field:last-child { margin-bottom: 0; }
.mc-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 8px;
}
.mc-label-val {
    font-weight: 600;
    color: #c87941;
}

.mc-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s;
}
.mc-input:focus { border-color: #c87941; }
.mc-input-prefix-wrap {
    position: relative;
}
.mc-input-prefix-wrap .mc-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9rem;
    pointer-events: none;
}
.mc-input-prefix-wrap .mc-input { padding-left: 52px; }

/* Slider */
.mc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.12);
    outline: none;
    cursor: pointer;
}
.mc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c87941;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(200,121,65,.2);
}
.mc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c87941;
    cursor: pointer;
    border: none;
}
.mc-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #666;
    margin-top: 4px;
}

/* Select */
.mc-select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.mc-select:focus { border-color: #c87941; }
.mc-select option { background: #1a1a1a; }

/* Insurance toggle */
.mc-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    user-select: none;
}
.mc-toggle-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #c87941;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Results panel ─────────────────────────────────────────────────────── */

.mc-result-main {
    text-align: center;
    padding: 20px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}
.mc-result-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 6px;
}
.mc-result-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #c87941;
    letter-spacing: -.02em;
}
.mc-result-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    margin-left: 4px;
}

/* Breakdown rows */
.mc-breakdown { margin-bottom: 24px; }
.mc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.875rem;
}
.mc-breakdown-row:last-child { border-bottom: none; }
.mc-breakdown-key { color: #aaa; }
.mc-breakdown-val { font-weight: 600; color: #fff; }
.mc-breakdown-val.accent { color: #c87941; }

/* Bar chart */
.mc-bar-wrap { margin-bottom: 24px; }
.mc-bar-label {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 8px;
}
.mc-bar-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}
.mc-bar-principal { background: #c87941; transition: width .4s ease; }
.mc-bar-interest  { background: #5a8ccc; transition: width .4s ease; }
.mc-bar-insurance { background: #6dbf67; transition: width .4s ease; }
.mc-bar-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.mc-bar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #888;
}
.mc-bar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Disclaimer */
.mc-disclaimer {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.55;
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mc-disclaimer i { color: #555; flex-shrink: 0; margin-top: 1px; }
