/* Offset Mortgage Calculator - Dedicated Styles */

/* Base Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9ff;
}

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

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

.logo h1 a {
    font-size: 26px;
    font-weight: 700;
    color: #204080;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #204080;
    background: rgba(32, 64, 128, 0.08);
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9ff;
    padding: 12px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb a {
    color: #204080;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb li:not(:last-child):after {
    content: "›";
    margin-left: 8px;
    color: #666;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-header .lead {
    font-size: 20px;
    color: #204080;
    margin-bottom: 24px;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.key-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

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

.feature span {
    font-weight: 600;
    color: #666;
}

/* Main Layout */
.calculator-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Calculator Specific Styles */
.calculator-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    padding: 24px 32px;
    text-align: center;
}

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

.card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.calculator-form-inner {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

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

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

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

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

.input-field {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

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

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

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

.input-field[style*="padding-left"] {
    padding-left: 44px;
}

.input-field[style*="padding-right"] {
    padding-right: 44px;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 64, 128, 0.25);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 102, 102, 0.25);
}

/* Results Section */
.results-section {
    display: none;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: #204080;
    text-align: center;
    margin-bottom: 32px;
}

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

.result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.result-card h3 {
    color: #204080;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 8px;
}

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

/* Detailed Comparison Tables */
.comparison-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-section h3 {
    color: #204080;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9ff;
    color: #204080;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:hover {
    background: #f8f9ff;
}

.comparison-table .value {
    font-weight: 600;
    color: #204080;
}

.comparison-table .difference {
    color: #27ae60;
    font-weight: 600;
}

.comparison-table .negative {
    color: #e74c3c;
}

/* Key Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.benefit-card:hover {
    border-color: #204080;
    transform: translateY(-2px);
}

.benefit-card i {
    font-size: 32px;
    color: #204080;
    margin-bottom: 16px;
}

.benefit-card h4 {
    color: #204080;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Recommendation Section */
.recommendation {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recommendation-positive {
    border-left: 4px solid #27ae60;
    padding: 16px 20px;
    background: #f8fff9;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recommendation-neutral {
    border-left: 4px solid #f39c12;
    padding: 16px 20px;
    background: #fffdf8;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recommendation-negative {
    border-left: 4px solid #e74c3c;
    padding: 16px 20px;
    background: #fff8f8;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.recommendation-positive i {
    color: #27ae60;
    font-size: 24px;
    margin-top: 2px;
}

.recommendation-neutral i {
    color: #f39c12;
    font-size: 24px;
    margin-top: 2px;
}

.recommendation-negative i {
    color: #e74c3c;
    font-size: 24px;
    margin-top: 2px;
}

.recommendation p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.recommendation strong {
    color: #204080;
}

/* Premium Calculator */
.premium-calculator {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
}

.premium-calculator h4 {
    color: #204080;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.premium-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.premium-label {
    color: #666;
    font-size: 14px;
}

.premium-value {
    color: #204080;
    font-weight: 700;
    font-size: 16px;
}

/* How It Works Section */
.how-it-works {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 32px;
    margin-top: 40px;
}

.how-it-works h3 {
    color: #204080;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h4 {
    color: #204080;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-form-inner {
        padding: 24px;
    }
    
    .card-header {
        padding: 20px 24px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .results-section {
        padding: 20px;
    }
    
    .comparison-section {
        padding: 16px;
    }
    
    .how-it-works {
        padding: 24px;
    }
    
    .result-value {
        font-size: 24px;
    }
    
    .results-title {
        font-size: 24px;
    }
}

/* Footer Styles */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer-section h3 {
    color: #66b3ff;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #66b3ff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

/* Info Section Styles */
.info-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.col-md-6 {
    /* Grid item - no additional styles needed */
}

.info-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

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

.info-card h4 {
    color: #204080;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 6px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.info-card li:before {
    content: "•";
    color: #204080;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* FAQ Styles */
.faq-section {
    margin-top: 40px;
}

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

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

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

.faq-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item {
    border-bottom: 1px solid #eee;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #204080;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: #204080;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
} 