/* Maximum Borrowing Calculator Specific Styles */

/* Page Layout */
.calculator-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-header h1 i {
    color: #ff6b35;
    margin-right: 12px;
}

.page-header .lead {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Key Features */
.key-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: #333;
}

.feature i {
    color: #204080;
    font-size: 16px;
}

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: #204080;
    color: white;
    padding: 24px;
    text-align: center;
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-header h2 i {
    margin-right: 8px;
    color: #ff6b35;
}

.card-header p {
    opacity: 0.9;
    margin: 0;
}

/* Form Styles */
.calculator-form-inner {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    color: #ff6b35;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-label.required::after {
    content: " *";
    color: #e74c3c;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #204080;
    box-shadow: 0 0 0 2px rgba(32, 64, 128, 0.15);
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    font-weight: 700;
    color: #666;
    z-index: 2;
}

.percentage-symbol {
    position: absolute;
    right: 16px;
    font-weight: 700;
    color: #666;
    z-index: 2;
}

.input-with-symbol .input-field {
    padding-left: 40px;
}

.input-with-symbol .input-field:has(~ .percentage-symbol) {
    padding-right: 40px;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.calculate-button {
    flex: 1;
    background: #204080;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-button:hover {
    background: #1a3366;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 64, 128, 0.2);
}

.reset-button {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e5e5e5;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-button:hover {
    border-color: #204080;
    color: #204080;
}

/* Results Styles */
.results-content {
    padding: 32px;
}

.main-result {
    text-align: center;
    padding: 32px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 32px;
}

.result-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 48px;
    font-weight: 700;
    color: #204080;
    line-height: 1;
}

.secondary-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.result-item:hover {
    border-color: #204080;
    box-shadow: 0 4px 12px rgba(32, 64, 128, 0.1);
}

.result-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

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

/* Affordability Breakdown */
.affordability-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.affordability-breakdown h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

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

.breakdown-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.breakdown-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Next Steps */
.next-steps h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9ff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.action-button:hover {
    border-color: #204080;
    background: white;
    color: #204080;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-button i {
    color: #204080;
    font-size: 18px;
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 24px;
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 16px;
}

.faq-header p {
    font-size: 18px;
    color: #666;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.faq-item {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #204080;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 16px;
    line-height: 1.3;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header .lead {
        font-size: 18px;
    }
    
    .key-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .secondary-results {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-value {
        font-size: 36px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-item {
        padding: 24px;
    }
}
