/* breadcrumb Styles */
.breadcrumb {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
}
.breadcrumb li::after {
    content: " > ";
    margin-left: 5px;
}
.breadcrumb li:last-child::after {
    content: "";
}
.breadcrumb a {
    text-decoration: none;
    color: blue;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: white;
}

/* Header */
header {
    background: #333;
    padding: 15px 0;
width: 100%;
}
.container_faqs {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
}

.container_box {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
}
.container_header {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
width: 100%;
}
.footer {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
width: 100%;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}


/* Calculator Links Section */
.calculator-links {
    padding: 50px 0;
    text-align: center;
}

/* Default Box Styling */
.box {
    background: white;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

/* Hover Effect */
.box:hover {
    transform: translateY(-5px);
}

/* Heading & Text Styling */
.box h2 {
    color: #333;
}

.box p {
    color: #666;
}

/* Links Styling */
.box a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

/* Initially Hide All Boxes */
.box {
    display: yes;
width: 50%;
}

/* Show Active Box */
.box.active {
    display: block;  /* Show only the active box */
    width: 90%;
    max-width: 800px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .box {
        width: 90%; /* Full width on small screens */
    }
.logo {
display: none
}
}


/* Services Section */
.our-services {
    width: 100%;
    padding: 80px 20px;
    background: white;
    text-align: left;
    display: flex;
    flex-direction: column; /* Ensures elements are stacked vertically */
    justify-content: center;
}

/* Ensure h2 and p appear on separate lines */
.our-services h2, .our-services p {
    display: block; /* Forces them to appear on new lines */
    width: 100%;
    max-width: 800px; /* Keeps content centered */
    margin: 0 auto;
}

.our-services h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}
.our-services p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
text-align: justify;
}
/* About Us Section */
.about-us {
    width: 100%;
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensures elements are stacked vertically */
    align-items: center;
    justify-content: center;
}

/* Ensure h2 and p appear on separate lines */
.about-us h2, .about-us p {
    display: block; /* Forces them to appear on new lines */
    width: 100%;
    max-width: 800px; /* Keeps content centered */
    margin: 0 auto;
}

.about-us h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-us p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
text-align: justify;
}

/* Terms of Use Section */
.terms-of-use {
    width: 100%;
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensures elements are stacked vertically */
    align-items: center;
    justify-content: center;
}

/* Ensure h2 and p appear on separate lines */
.terms-of-use h2, .terms-of-use p {
    display: block; /* Forces them to appear on new lines */
    width: 100%;
    max-width: 800px; /* Keeps content centered */
    margin: 0 auto;
}

.terms-of-use h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.terms-of-use p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
text-align: justify;
}
/* Privacy Policy Section */
.privacy-policy {
    width: 100%;
    padding: 80px 20px;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensures elements are stacked vertically */
    align-items: center;
    justify-content: center;
}

/* Ensure h2 and p appear on separate lines */
.privacy-policy h2, .privacy-policy p {
    display: block; /* Forces them to appear on new lines */
    width: 100%;
    max-width: 800px; /* Keeps content centered */
    margin: 0 auto;
}

.privacy-policy h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.privacy-policy p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
text-align: justify;
}
/* FAQ Section Styles */
#faqs {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

/* Title Styling */
#faqs h2 {
    font-size: 30px;
    margin-bottom: 30px;
}

/* FAQ Items Layout */
.faq-item {
    display: block; /* Make sure the items are stacked vertically */
    margin-bottom: 20px; /* Spacing between items */
    text-align: left;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Question Styling */
.faq-question {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
}

/* Answer Styling */
.faq-answer {
    font-size: 16px;
    color: #555;
    display: none; /* Initially hidden */
}

/* Toggle FAQ Answer */
.faq-item.active .faq-answer {
    display: block; /* Show answer when item is active */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #faqs h2 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 20px;
    }

    .faq-answer {
        font-size: 16px;
    }
}



/* Contact Form Section */
.contact-form {
    width: 100%;
    padding: 80px 20px;
    background: #f0f8ff;
    text-align: center;
}

.contact-form h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-form p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0056b3;
}

.form-status {
    margin-top: 15px;
    font-size: 16px;
}


/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
}
/* Ensure the page takes full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Make the main content expand to push the footer down */
main {
    flex: 1;
}

/* Footer Styles */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px 0;
    width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container_header {
        flex-direction: column;
        text-align: center;
    }
  .footer {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        padding-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .box {
        width: 100%;
        margin-left: 0px;
    }
}
/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 1000; /* Make sure the menu toggle is above other content */
}

#nav-menu.active {
    display: flex;
    z-index: 1000; /* Ensure the menu is on top */
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9); /* Solid background for better visibility */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        text-align: center;
        z-index: 1000; /* Ensure the menu appears above other sections */
    }

    #nav-menu.active {
        display: flex; /* Show the menu when 'active' class is added */
    }

    #nav-menu li {
        margin: 10px 0;
    }
}


/* Back to Top Button Styles */
.back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ffcc00;
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it's above other elements */
}

.back-to-top:hover {
    background-color: #ff9900;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
    }
}
/* mortgage calculator */
calculator-body {
            font-family: Arial, sans-serif;
            background-color: #f7f7f7;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }
        .calculator-container {
            background: none;
            padding: 30px;
            border-radius: 10px;
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            gap: 20px;
 	    margin: auto;
            margin-top: 30px;
        }
  h1 {
            text-align: center;
}
        h2, h3 {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
        }
        form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        label {
            font-size: 16px;
            color: #333;
        }
        input[type="number"] {
            padding: 12px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 100%;
            box-sizing: border-box;
        }
        button {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 15px;
            cursor: pointer;
            border-radius: 5px;
            font-size: 16px;
        }
        button:hover {
            background-color: #218838;
        }
        .extra-costs {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            background: #f4f4f4;
            border-radius: 10px;
            margin-top: 10px;
        }
        table {
            width: 100%;
            margin-top: 20px;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: center;
            font-size: 16px;
        }
        th {
            background-color: #f1f1f1;
        }
        .results-section {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        .chart-container {
            display: flex;
            justify-content: center;
            width: 100%;
            max-width: 400px; /* Limit chart width */
            margin: 0 auto;
        }
        canvas {
            width: 100% !important;
            height: auto !important;
        }
        #extraCostsToggle {
            margin-top: 10px;
        }
        .hide {
            display: none;
        }
        .footer-text {
            margin-top: 30px;
            font-size: 16px;
            color: #333;
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #ddd;
            padding-bottom: 10px;
        }
