/* Current Rates Display */
.current-rates-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rate-info h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.rate-value {
    color: #007bff;
    font-weight: 700;
    font-size: 1.1rem;
}

.rate-update {
    color: #666;
    font-style: italic;
}

/* Refinance Calculator Styles */
.refinance-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.refinance-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.refinance-section .section-heading {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.estimate-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
}

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

.form-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.form-disclaimer {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffc107;
}

.form-disclaimer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.main-result {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    color: white;
}

.main-payment {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.results-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-item.savings {
    background: #e8f5e8;
    border: 2px solid #28a745;
}

.comparison-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.comparison-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.payment-breakdown, .loan-details {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-breakdown h5, .loan-details h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.breakdown-grid, .details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.breakdown-item, .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.breakdown-item.total, .detail-item.total {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    font-weight: 600;
}

.breakdown-label, .detail-label {
    color: #666;
    font-size: 0.9rem;
}

.breakdown-value, .detail-value {
    font-weight: 600;
    color: #333;
}

.refinance-notes {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.refinance-notes p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.disclosure-link {
    color: #007bff;
    text-decoration: none;
}

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


/* Amortization Calculator Styles */
.amortization-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.summary-value {
    color: #007bff;
    font-weight: 700;
    font-size: 1.1rem;
}

.amortization-schedule {
    margin: 2rem 0;
}

.schedule-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.schedule-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-btn:hover {
    background: #e9ecef;
    color: #333;
}

.schedule-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.schedule-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.schedule-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.schedule-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.schedule-table tr:hover {
    background: #f8f9fa;
}

.amortization-charts {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.chart-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    height: 400px;
    position: relative;
}

@media (max-width: 768px) {
    .refinance-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-comparison {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid, .details-grid {
        grid-template-columns: 1fr;
    }
    
    .main-payment {
        font-size: 2rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-controls {
        flex-direction: column;
    }
    
    .schedule-btn {
        text-align: center;
    }
}

/* Today's Mortgage Rate Styles */
.rate-history-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rate-information {
    margin: 2rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.info-card h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.rate-factors {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.factors-list {
    margin-top: 1rem;
}

.factor-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.factor-item strong {
    color: #333;
    font-weight: 600;
}

.factor-item {
    color: #666;
    line-height: 1.5;
}

.rate-contact {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 8px;
    color: white;
    text-align: center;
}

.rate-contact h4 {
    color: white;
    margin-bottom: 1rem;
}

.rate-contact p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #007bff;
    border: 2px solid white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #007bff;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .rate-grid {
        grid-template-columns: 1fr;
    }
}
