.mortgage-calculator {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.calculator-header {
    background: #ffd700;
    color: white;
    padding: 18px 25px;
    text-align: center;
}
.calculator-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: black;
}
.calculator-header p {
    opacity: 0.9;
    font-size: 14px;
    color: black;
}
.calculator-content {
    display: flex;
    flex-wrap: wrap;
    padding: 1vh;
}
.input-section {
    flex: 1;
    min-width: 300px;
    padding: 15px;
}
.result-section {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 10px;
}
.bank-section {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 10px; 
}
.section-title {
    font-size: 18px;
    margin-bottom: 18px;
    color: #1a3a6c;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.form-group {
    margin-bottom: 16px;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}
.input-with-icon {
    position: relative;
}
.input-with-icon input, 
.input-with-icon select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}
.input-with-icon input:focus, 
.input-with-icon select:focus {
    border-color: #1a3a6c;
    box-shadow: 0 0 0 3px rgba(26, 58, 108, 0.1);
    outline: none;
}
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}
.range-container {
    padding: 0 10px;
    margin-top: 5px;
}
.range-value {
    font-weight: 600;
    color: black;
    margin-top: 4px;
    font-size: 14px;
}
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
}
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 6px;
}
.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.radio-option input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.bank-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.bank-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.bank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.bank-card.selected {
    border-color: #ffd700;
    background: rgba(26, 58, 108, 0.05);
}
.bank-logo {
    height: 24px;
    margin-bottom: 8px;
    object-fit: contain;
}
.bank-rate {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a6c;
}
.bank-name {
    color: #6c757d;
    margin-top: 4px;
}
.calculate-btn {
    width: 100%;
    padding: 14px;
    background: #ffd700;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.calculate-btn:hover {
    background: #ffdd24;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.result-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.result-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}
.result-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a6c;
}
.payment-breakdown {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.breakdown-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1a3a6c;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.progress-container {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}
.progress-bar {
    height: 100%;
    display: flex;
}
.principal {
    background: #ffd700;
}
.interest {
    background: #a9a9a9;
}
.breakdown-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.breakdown-value {
    font-weight: 600;
    color: #1a3a6c;
}
.disclaimer {
    margin-top: 20px;
    padding: 12px;
    background: #fff8e6;
    border-radius: 8px;
    color: #856404;
    border-left: 3px solid #ffc107;
    display: flex;
    gap: 8px;
}
@media (max-width: 1124px) {
.bank-section {
    flex: 1;
    min-width: 300px;
    padding: 5px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 10px;
}
}
@media (max-width: 768px) {
    .calculator-content {
        flex-direction: column;
        align-content: center;
        align-items: center;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
    .bank-cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}