/* Buy-to-Let Calculator Styles - Complete Reset and Rebuild */

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

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

/* 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);
}

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

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

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

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

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f9ff;
    color: #204080;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 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: 32px;
    font-weight: 600;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Key Features */
.key-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    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: #333;
}

/* Calculator Layout */
.calculator-page {
    padding: 60px 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-header p {
    color: #666;
    margin-bottom: 32px;
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 24px;
}

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

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

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

.input-with-symbol {
    position: relative;
}

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

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

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
}

.percentage-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
}

.unit-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
}

.input-field:has(+ .currency-symbol) {
    padding-left: 48px;
}

.input-field:has(+ .percentage-symbol) {
    padding-right: 48px;
}

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

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #204080;
    border-color: #204080;
}

.checkbox-input:checked + .checkbox-custom:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

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

.calculate-button {
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

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

.reset-button {
    background: #f8f9fa;
    color: #666;
    padding: 16px 32px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Results */
.calculator-results {
    display: none;
}

.yield-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.yield-item {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

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

.yield-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.yield-value {
    font-size: 32px;
    font-weight: 700;
}

/* Cash Flow Table */
.cash-flow-table {
    margin-bottom: 32px;
}

.cash-flow-table h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 16px;
}

.cash-flow-table table {
    width: 100%;
    border-collapse: collapse;
}

.cash-flow-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cash-flow-table .total-row {
    border-top: 2px solid #204080;
    font-weight: 700;
}

/* Analysis Sections */
.tax-analysis,
.investment-summary {
    margin-bottom: 32px;
}

.tax-analysis h3,
.investment-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #204080;
    margin-bottom: 16px;
}

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

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

/* Recommendation */
.recommendation {
    background: #f0fdf4;
    border: 2px solid #059669;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.recommendation-positive {
    background: #f0fdf4;
    border: 2px solid #059669;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.recommendation-neutral {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.recommendation-negative {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.recommendation-positive i {
    color: #059669;
    font-size: 24px;
    margin-bottom: 12px;
}

.recommendation-neutral i {
    color: #f59e0b;
    font-size: 24px;
    margin-bottom: 12px;
}

.recommendation-negative i {
    color: #ef4444;
    font-size: 24px;
    margin-bottom: 12px;
}
.recommendation-positive { background: #f0fdf4; border: 2px solid #059669; border-radius: 12px; padding: 20px; margin-bottom: 32px; text-align: center; }
.recommendation-neutral { background: #fef3c7; border: 2px solid #f59e0b; border-radius: 12px; padding: 20px; margin-bottom: 32px; text-align: center; }
.recommendation-negative { background: #fef2f2; border: 2px solid #ef4444; border-radius: 12px; padding: 20px; margin-bottom: 32px; text-align: center; }
.recommendation-positive i { color: #059669; font-size: 24px; margin-bottom: 12px; }
.recommendation-neutral i { color: #f59e0b; font-size: 24px; margin-bottom: 12px; }
.recommendation-negative i { color: #ef4444; font-size: 24px; margin-bottom: 12px; }

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

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

.action-button {
    display: block;
    background: #f8f9ff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    text-align: center;
}

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

.action-button i {
    color: #204080;
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

/* Info Section */
.info-section {
    margin-top: 60px;
}

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

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

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

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

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

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

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.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;
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

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

.footer-section p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #204080;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .yield-summary {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .key-features {
        flex-direction: column;
        align-items: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card {
        padding: 24px;
    }

    .container {
        padding: 0 16px;
    }
}