
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    word-break: break-word;
}

body {
    /* background: linear-gradient(180deg, #FFFFFF 0%, #009DDA 100%); */
    font-family: Manrope;
    margin: 0;
}

h1, h2 {
    color: var(--Text, #545863);
    font-size: 32px;
    font-weight: 700;
    word-wrap: break-word;
}

h2 {
    color: var(--Primary, #009DDA) !important;
}

p {
    color: var(--Text, #545863);
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
}

.cta-button,
button {
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    word-wrap: break-word;
    background: var(--Primary, #009DDA);
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
    padding: 12px 16px;
    border: none;
    text-decoration: none;
}

.cta-button:hover,
button:hover {
    cursor: pointer;
}

input, select {
    margin-bottom: 10px;
    border-radius: 6px;
    outline-offset: -1px;
    line-height: 19px;
    font-size: 14px;
    height: 36px;
    width: 100%;
}

select, input[type=text] {
    border: 1px var(--Text, #545863) solid;
    padding: 8px;
    height: 48px;
}

label {
    color: #545863;
    font-size: 16px;
    font-weight: 400;
    word-wrap: break-word;
}

textarea {
    border: 1px #545863 solid;
    margin-bottom: 10px;
    border-radius: 6px;
    width: 100%;
}

a {
    color: var(--Primary, #009DDA);
}

.content {
    max-width: 1000px;
    margin: auto;
    padding: 0 16px;
}

.spacer {
    height: 200px;
}

.green-text {
    color: #338132 !important;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}
#nav-left {
    display: flex;
    align-items: center;
}

#nav-right {
    display: flex;
    gap: 16px;
}

#logo {
    margin-right: 8px;
}

#logo-text {
    font-size: 20px;
}

/* Hero Section */
#hero-section {
    display: flex;
    justify-content: space-between;
    column-gap: 16px;
}

#hero-right-alt {
    display: none;
}

#hero-left {}

#hero-right {
    max-width: 50%;
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
}

/* Debt Calculator Section */
#debt-calculator-section {}

#debt-calc-heading {
    text-align: center;
}

#debt-calc-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
}

#debt-calc-total-debt-input {}

#debt-calc-interest-rate-input {}

#debt-calc-monthly-payment-select {}

#debt-calc-results {
    background: var(--Primary, #009DDA);
    padding: 24px;
    border-radius: 16px;
    margin-top: 48px;
}

#debt-calc-table {
    background: white;
    width: 100%;
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
}

#debt-calc-table tr:nth-child(even) {
    background-color: #F5F5F5;
}

#debt-calc-table thead th {
    padding: 10px;
}

#debt-calc-table thead {
    background-color: #F5F5F5;
}

#debt-calc-table tbody th {
    text-align: right;
    padding: 10px;
}

#debt-calc-table tbody td {
    text-align: center;
    padding: 10px;
    border: none;
}

#debt-calc-res-time-saved-b,
#debt-calc-res-savings-b {
    color: #338132;
}

#debt-calc-res-total-b {
    color: #338132;
    font-size: 20px;
    font-weight: 600;
}

#debt-calc-res-total-a {
    color: #D91919;
    font-size: 20px;
    font-weight: 600;
}

#debt-calc-caption p {
    color: white !important;
}

/* CTA Banner Section */
#cta-banner {
    margin-top: 48px;
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cta-banner-amount {
    color: #338132;
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
}

/* Debt Consolidation Section */
#debt-cons-section {
    /* color: white; */
    max-width: 75%;
    margin: auto;
}

#debt-cons-stats img {
    height: 48px;
}

#debt-cons-heading {
    text-align: center;
}

#debt-cons-heading h1 {
    color: #009DDA !important;
}

#debt-cons-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    width: 100%;
}

.debt-cons-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 16px;
}

.debt-cons-stat-value {
    font-size: 36px;
    font-weight: 500;
    line-height: 22px;
}

/* 30k Debt Payoff Section */

#debt-payoff-section {
    display: flex;
}

#debt-payoff-left {
    margin-right: 48px;
}

#debt-payoff-section h1 {
    color: #009DDA !important;
}

#debt-payoff-section table {
    background: white;
    width: 100%;
    border-radius: 16px;
    border-collapse: collapse;
    overflow: hidden;
}

#debt-payoff-section td, th {
    padding: 16px;
}

#debt-payoff-section tr {
    border-bottom: 1px solid #009DDA;
}

/* About Us Section */
#about-us-section p {
    padding-left: 16px;
}

/* Contact Us Section */
#contact-us-section {
    display: flex;
    justify-content: space-between;
}

#contact-us-section h1 {
    color: #009DDA !important;
}

#contact-form {
    width: 50%;
}

#contact-form form {
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* FAQ Section */
#faq-section {

}



#faq-details {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
}

#faq-details summary {
    display: flex;
    justify-content: space-between;
    color: var(--Primary, #009DDA);
    font-size: 20px;
    font-weight: 600;
}

#faq-details summary:hover {
    cursor: pointer;
}

#faq-details details {
    margin-top: 16px;
}

/* Footer */
footer {
    background-color: #009DDA;
    padding: 24px;
}

footer .content {
    max-width: 1000px;
    margin: auto;
}

footer p,
footer a,
footer h3 {
    color: white !important;
}

#footer-links {
    display: flex;
    justify-content: space-between;
}

#footer-legal {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 16px;
}

/* Misc */
.inverted-button {
    background-color: white;
    color:#009DDA !important;
    border: 2px solid #009DDA;

    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    word-wrap: break-word;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
    padding: 12px 16px;
    text-decoration: none;
}

.disclosure-button {
    background-color: white;
    border: none;
    color: #009DDA !important;
    font-size: 24px;
}

.green-text {
    color: #338132 !important;
}

/* ====== Mobile nav (hamburger) ====== */

#menu-toggle {
    display: none;
    background: none;
    border: 1px solid transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
    color: #009DDA;
}

#menu-toggle:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#menu-toggle:hover {
    background-color: #f5f5f5;
}

#mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    /* roughly nav height */
    right: 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    min-width: 220px;
}

#mobile-menu a {
    display: block;
    margin: 6px 0;
    text-align: center;
}

#mobile-menu[data-open="true"] {
    display: block;
}

/* =====================================================
RESPONSIVE ENHANCEMENTS
===================================================== */


/* Large tablets / small desktops */
@media (max-width: 1200px) {
    #debt-cons-section {
        max-width: 90%;
    }
}


/* Tablets and below */
@media (max-width: 992px) {

    /* Hero becomes single column */
    #hero-section {
        flex-direction: column;
        text-align: center;
    }

    #hero-left,
    #hero-right {
        width: 100%;
    }


    /* Calculator inputs stack */
    #debt-calc-inputs {
        flex-direction: column;
    }


    /* CTA banner stacks */
    #cta-banner {
        flex-direction: column;
        align-items: stretch;
    }

    #cta-banner .cta-button,
    #cta-banner button,
    #cta-banner a {
        width: 100%;
        text-align: center;
        margin: 16px 0px;
    }


    /* Stats wrap to 2-up */
    #debt-cons-stats {
        flex-wrap: wrap;
    }

    .debt-cons-stat {
        flex: 1 1 45%;
        min-width: 260px;
    }


    /* Payoff section stacks */
    #debt-payoff-section {
        flex-direction: column;
    }


    /* Contact section stacks */
    #contact-us-section {
        flex-direction: column;
    }

    #contact-form {
        width: 100%;
    }


    /* Footer links wrap */
    #footer-links {
        flex-wrap: wrap;
    }

    #footer-legal {
        width: 100%;
    }
}


/* Phablets and large phones */
@media (max-width: 768px) {
    .content {
        padding: 0 12px;
    }

    h1,
    h2 {
        font-size: 28px;
    }

    p {
        font-size: 15px;
    }


    /* Tables become scrollable */
    .table-scroll,
    #debt-calc-table,
    #debt-payoff-section table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    #debt-calc-table thead,
    #debt-payoff-section thead {
        white-space: nowrap;
    }

    /* anchor dropdown to the nav */
    nav {
        position: relative;
    }

    #nav-right {
        display: none;
    }

    #menu-toggle {
        display: inline-flex;
    }
}


/* Small phones */
@media (max-width: 600px) {

    h1,
    h2 {
        font-size: 24px;
    }

    p,
    label {
        font-size: 14px;
    }


    /* Tighten spacing a bit */
    #debt-calc-results,
    #faq-details,
    #cta-banner {
        padding: 20px;
    }


    /* Make buttons full-width by default in constrained layouts */
    .cta-button,
    .inverted-button {
        width: 100%;
    }


    /* Footer spacing */
    footer {
        padding: 20px;
    }

    .spacer {
        height: 100px;
    }


}


/* Very small devices */
@media (max-width: 450px) {

    #hero-right-alt {
        display: block;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 16px;
    }

    #hero-right {
        display: none;
    }

    h1,
    h2 {
        font-size: 22px;
    }

    .debt-cons-stat-value {
        font-size: 28px;
    }

    #hero-right {
        max-width: 100%;
    }

    .debt-cons-stats-section {
        width: 100%;
    }

    #debt-cons-stats-arrow {
        transform: rotate(90deg);
        margin: auto;
        width: 100%;
    }

    #debt-payoff-left {
        margin-right: 0px;
    }

}