/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-badge {
    text-align: center;
}

.trust-badge-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.trust-badge-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.calculator-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.calculator-card h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.calculator-card p {
    color: #666;
    margin-bottom: 1rem;
}

.calculator-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #2a5298;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Rate Banner */
.rate-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.rate-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rate-display {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.rate-updated {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* Educational Section */
.educational-section {
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    border-left: 4px solid #2a5298;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.content-card h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.content-card a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
}

.content-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 20px 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Disclaimer */
.disclaimer {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3c72;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .rate-display {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Calculator Page Styles */
.calculator-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.calculator-form {
    display: grid;
    gap: 1.5rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-section h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-box {
    background: #e8f4f8;
    border-left: 4px solid #2a5298;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box h4 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.calculate-btn:hover {
    transform: scale(1.02);
}

.results-container {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.results-container.active {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    align-items: center;
}

.result-label {
    font-weight: 600;
    color: #333;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2a5298;
}

.total-payment {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.total-payment .result-label {
    color: white;
    opacity: 0.9;
}

.total-payment .result-value {
    color: white;
    font-size: 2rem;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.3rem;
    color: #2a5298;
    cursor: help;
}

/* Affordability Calculator Specific Styles */
.result-highlight {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.result-highlight h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-highlight .amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.result-highlight p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.ratio-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ratio-bar {
    width: 100px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.ratio-fill.good {
    background: #4caf50;
}

.ratio-fill.warning {
    background: #ff9800;
}

.ratio-fill.danger {
    background: #f44336;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.good {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.warning {
    background: #fff3e0;
    color: #ff9800;
}

.status-badge.danger {
    background: #ffebee;
    color: #f44336;
}

.breakdown-section {
    margin-top: 1.5rem;
}

.breakdown-section h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Mortgage vs Rent Calculator Specific Styles */
.results-container {
    margin-top: 2rem;
    display: none;
}

.results-container.active {
    display: block;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid #2a5298;
}

.comparison-card.winner {
    border-top-color: #4caf50;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.comparison-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.winner-badge {
    background: #4caf50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.total-cost {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    margin: 1rem 0;
}

.comparison-card.winner .total-cost {
    color: #4caf50;
}

.cost-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.breakdown-list {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.breakdown-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breakdown-list li:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #666;
}

.breakdown-value {
    font-weight: 600;
    color: #333;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.chart-container h4 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    border-left: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem 0 0 0;
}

.bar {
    flex: 1;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #2a5298 0%, #1e3c72 100%);
    border-radius: 8px 8px 0 0;
    transition: height 0.8s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
}

.bar-fill.winner {
    background: linear-gradient(180deg, #66bb6a 0%, #4caf50 100%);
}

.bar-value {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.bar-label {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.summary-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-box .savings {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.summary-box p {
    opacity: 0.95;
    font-size: 1.1rem;
}

.assumptions-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.assumptions-box h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.assumptions-box ul {
    margin-left: 1.5rem;
    color: #666;
}

.assumptions-box ul li {
    margin-bottom: 0.5rem;
}

/* Calculator Pages Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .total-payment .result-value {
        font-size: 1.5rem;
    }
    
    .result-highlight .amount {
        font-size: 2rem;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .total-cost {
        font-size: 2rem;
    }
    
    .summary-box .savings {
        font-size: 2rem;
    }
}

/* Stress Test Calculator Specific Styles */
.stress-test-status {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.stress-test-status.pass {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.stress-test-status.fail {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
}

.stress-test-status .status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.stress-test-status.pass .status-icon {
    color: #4caf50;
}

.stress-test-status.fail .status-icon {
    color: #f44336;
}

.stress-test-status h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stress-test-status p {
    color: #666;
    font-size: 1.1rem;
}

/* Guide Pages Styles */
.guide-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-header h1 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guide-header .subtitle {
    color: #666;
    font-size: 1.2rem;
}

.guide-content h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #2a5298;
}

.guide-content h3 {
    color: #2a5298;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-content h4 {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guide-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.guide-content ul, .guide-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.guide-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
    border-left: 4px solid #2a5298;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin-left: 1.5rem;
}

.highlight-box a {
    color: #2a5298;
    font-weight: 600;
}

.warning-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.warning-box ol {
    margin-left: 1.5rem;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.success-box a {
    color: #2a5298;
    font-weight: 600;
}

.success-box ul {
    margin-left: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid #2a5298;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card a {
    text-decoration: none;
    color: inherit;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.checklist {
    background: white;
    border: 2px solid #2a5298;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.checklist h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.checklist-item:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

.checklist-icon {
    color: #4caf50;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.checklist-item p {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #1e3c72;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f8f9fa;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 0;
}

.cta-box .btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.cta-box .btn:hover {
    transform: scale(1.05);
}

.toc {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    text-decoration: underline;
}

/* Guide Pages Mobile Responsive */
@media (max-width: 768px) {
    .guide-container {
        padding: 1.5rem;
    }
    
    .guide-header h1 {
        font-size: 1.8rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Land Transfer Tax Calculator Specific Styles */
.province-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.province-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.province-btn:hover {
    border-color: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.province-btn.active {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-color: #2a5298;
}

.province-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.province-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.tax-breakdown {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tax-breakdown h4 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.tax-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.tax-tier:last-child {
    border-bottom: none;
}

.rebate-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.rebate-info h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.no-tax-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: #2e7d32;
}

.no-tax-message h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

/* GDS/TDS Ratios Page Styles */
.ratio-formula {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.formula-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.ratio-guideline {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2575fc;
    margin: 25px 0;
}

.ratio-guideline h3 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

.example-box {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.example-box h4 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

.example-box ul {
    margin-left: 20px;
}

.calculation-result {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2575fc;
    margin-top: 15px;
}

.warning-text {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #2575fc;
}

.tip-card h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.consideration-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.consideration-item h3 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* GDS/TDS Ratios Page Styles */
.ratio-formula {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.formula-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.ratio-guideline {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2575fc;
    margin: 25px 0;
}

.ratio-guideline h3 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

.example-box {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.example-box h4 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

.example-box ul {
    margin-left: 20px;
}

.calculation-result {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2575fc;
    margin-top: 15px;
}

.warning-text {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #ffc107;
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #2575fc;
}

.tip-card h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.consideration-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.consideration-item h3 {
    color: #2575fc;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Glossary Page Styles */
.glossary-intro {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #2575fc;
}

.glossary-intro p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.glossary-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.glossary-alphabet-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.glossary-alphabet-nav a:hover {
    background: linear-gradient(135deg, #2575fc 0%, #1e3c72 100%);
    color: white;
    border-color: #2575fc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.3);
}

.glossary-alphabet-nav a:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 117, 252, 0.3);
}

@media (max-width: 768px) {
    .glossary-alphabet-nav {
        gap: 8px;
        padding: 20px 15px;
    }
    
    .glossary-alphabet-nav a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

.glossary-letter {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2575fc;
}

.glossary-term {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s;
}

.glossary-term:hover {
    border-left-color: #2575fc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.glossary-term h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.glossary-term p {
    color: #333;
    line-height: 1.8;
    margin: 0;
}

/* Prepayment Calculator Specific Styles */
.prepayment-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.prepayment-stat {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.prepayment-stat:hover {
    transform: translateY(-5px);
}

.prepayment-stat .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.prepayment-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 10px;
}

.prepayment-stat .stat-label {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.prepayment-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.prepayment-type-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
    transition: all 0.3s;
}

.prepayment-type-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.prepayment-type-card h4 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.prepayment-type-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid #e0e0e0;
}

.info-section h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-section h3 {
    color: #2a5298;
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.info-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.info-section li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Rates Page Specific Styles */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.rate-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #2a5298;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.bank-logo h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.bank-name {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.rate-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2a5298;
    margin: 20px 0;
    line-height: 1;
}

.rate-type {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.rate-link {
    display: inline-block;
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #2a5298;
    border-radius: 25px;
    transition: all 0.3s;
}

.rate-link:hover {
    background: #2a5298;
    color: white;
}

@media (max-width: 768px) {
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .rate-value {
        font-size: 2.5rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
}




        /* Contact Page Specific Styles */
        .contact-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 3rem;
            margin-top: 2rem;
        }
        
        .contact-form-container {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .contact-form-container h2 {
            color: #1e3c72;
            margin-bottom: 0.5rem;
            font-size: 2rem;
        }
        
        .contact-form {
            margin-top: 1.5rem;
        }
        
        .success-message {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border: 2px solid #4caf50;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            color: #2e7d32;
        }
        
        .success-icon {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: #4caf50;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            font-size: 1.5rem;
            margin-right: 1rem;
            vertical-align: middle;
        }
        
        .success-message strong {
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .success-message p {
            margin: 0.5rem 0 0 0;
        }
        
        .error-message {
            background: #ffebee;
            border: 2px solid #f44336;
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 2rem;
            color: #c62828;
        }
        
        .error-icon {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: #f44336;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            font-size: 1.5rem;
            margin-right: 1rem;
            vertical-align: middle;
        }
        
        .error-message strong {
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .error-message ul {
            margin: 0.5rem 0 0 2rem;
            padding: 0;
        }
        
        .error-message li {
            margin-bottom: 0.3rem;
        }
        
        .contact-form .form-group {
            margin-bottom: 1.5rem;
        }
        
        .contact-form textarea {
            padding: 0.75rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            font-family: inherit;
            width: 100%;
            transition: border-color 0.3s;
            resize: vertical;
        }
        
        .contact-form textarea:focus {
            outline: none;
            border-color: #2a5298;
        }
        
        .submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s;
            width: 100%;
        }
        
        .submit-btn:hover {
            transform: scale(1.02);
        }
        
        .contact-info-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .contact-info-card {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .info-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .contact-info-card h3 {
            color: #1e3c72;
            margin-bottom: 0.75rem;
            font-size: 1.2rem;
        }
        
        .contact-info-card p {
            color: #333;
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }
        
        .contact-info-card a {
            color: #2a5298;
            text-decoration: none;
            font-weight: 600;
        }
        
        .contact-info-card a:hover {
            text-decoration: underline;
        }
        
        .info-detail {
            color: #666 !important;
            font-size: 0.9rem !important;
            margin-top: 0.5rem;
        }
        
        .quick-links {
            list-style: none;
            padding: 0;
            margin: 0;
            text-align: left;
        }
        
        .quick-links li {
            margin-bottom: 0.5rem;
        }
        
        .quick-links a {
            color: #2a5298;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: transform 0.2s;
        }
        
        .quick-links a:before {
            content: "→";
            margin-right: 0.5rem;
            color: #2a5298;
        }
        
        .quick-links a:hover {
            transform: translateX(5px);
        }
        
        .white-btn {
            display: inline-block;
            background: white;
            color: #667eea;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 1rem;
            transition: transform 0.3s;
        }
        
        .white-btn:hover {
            transform: scale(1.05);
        }
        
        .contact-faq-section {
            margin-top: 4rem;
            padding-top: 3rem;
            border-top: 3px solid #e0e0e0;
        }
        
        .faq-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        
        .faq-card {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            border-left: 4px solid #2a5298;
        }
        
        .faq-card h4 {
            color: #1e3c72;
            margin-bottom: 0.75rem;
            font-size: 1.1rem;
        }
        
        .faq-card p {
            color: #666;
            line-height: 1.7;
            margin: 0;
        }
        
        /* Mobile Responsive */
        @media (max-width: 968px) {
            .contact-layout {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .contact-form-container {
                padding: 1.5rem;
            }
            
            .contact-form-container h2 {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .faq-grid {
                grid-template-columns: 1fr;
            }
        }
