/* Joint Income Calculator Specific Styles */

/* Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.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;
    white-space: nowrap;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 250px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 15px;
    border-radius: 8px;
    margin: 2px 0;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #204080;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.breadcrumb nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumb nav li {
    display: flex;
    align-items: center;
}

.breadcrumb nav li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #666;
    font-size: 14px;
}

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

.breadcrumb nav a:hover {
    text-decoration: underline;
}

.breadcrumb nav span {
    color: #666;
    font-size: 14px;
}

/* Page Header */
.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-subtitle {
    font-size: 24px;
    color: #204080;
    margin-bottom: 16px;
    font-weight: 600;
}

.page-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.calculator-title i {
    color: #204080;
    font-size: 28px;
}

.calculator-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Form Sections */
.form-section {
    margin-bottom: 36px;
    padding: 28px;
    background: #f8f9ff;
    border-radius: 16px;
    border: 1px solid rgba(32, 64, 128, 0.1);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #204080;
    font-size: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

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

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

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

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

.currency-input {
    padding-left: 40px;
}

.percentage-input {
    padding-right: 40px;
}

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

select.form-input {
    cursor: pointer;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

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

.btn-primary {
    background: #204080;
    color: white;
    box-shadow: 0 4px 15px rgba(32, 64, 128, 0.3);
}

.btn-primary:hover {
    background: #1a3366;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(32, 64, 128, 0.4);
}

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

.btn-secondary:hover {
    background: #204080;
    color: white;
    transform: translateY(-2px);
}

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

.results-section.show {
    display: block;
}

.results-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

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

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

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

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

/* Income Breakdown & Analysis */
.income-breakdown,
.affordability-analysis {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.income-breakdown h4,
.affordability-analysis h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.breakdown-content,
.analysis-content {
    font-size: 16px;
    line-height: 1.6;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.breakdown-label {
    font-weight: 600;
    color: #333;
}

.breakdown-value {
    font-weight: 700;
    color: #204080;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3 i {
    color: #204080;
    font-size: 18px;
}

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

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: #204080;
    font-weight: 600;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #f8f9ff;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid rgba(32, 64, 128, 0.1);
    text-align: center;
}

.related-card:hover {
    background: rgba(32, 64, 128, 0.08);
    transform: translateY(-2px);
    color: #204080;
}

.related-card i {
    color: #204080;
    font-size: 24px;
    margin-bottom: 8px;
}

.related-card span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.faq-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.faq-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.faq-question:hover {
    background: rgba(32, 64, 128, 0.02);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.faq-question i {
    color: #204080;
    transition: transform 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 16px;
}

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

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

.faq-answer p {
    padding-bottom: 24px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.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;
    margin: 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 {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 16px;
    }

    .calculator-container {
        padding: 24px;
    }

    .page-title {
        font-size: 36px;
    }

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

    .button-group {
        flex-direction: column;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}
