/* ==========================================
   BREAK-EVEN CALCULATOR
   Page-specific styling
========================================== */


/* ==========================================
   CALCULATOR CARD
========================================== */

.calculator-card {
    max-width: 650px;
}


/* ==========================================
   RESULTS
========================================== */

.results-section {
    max-width: 850px;
}


/* ==========================================
   BREAK-EVEN SUMMARY
========================================== */

.birthday-result {
    margin-top: 25px;
    padding: 20px;

    background: #f7f9fc;

    border-radius: 8px;
    border: 1px solid #dbe3ec;
}

.birthday-result h3 {
    margin: 0 0 10px;

    color: #123f68;
    font-size: 18px;
}

.birthday-result p {
    margin: 0;
    line-height: 1.6;
}


/* ==========================================
   ACTION BUTTONS
========================================== */

.calculator-actions {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;
    margin: 25px auto;

    max-width: 850px;
}

.calculator-actions button {
    padding: 11px 18px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    background: #ffffff;
    color: #123f68;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.calculator-actions button:hover {
    background: #f4f7fb;
}


/* ==========================================
   INFORMATION SECTION
========================================== */

.calculator-info {
    margin-top: 40px;
}

.calculator-info h2 {
    color: #123f68;

    font-size: 24px;

    margin: 30px 0 12px;
}

.calculator-info p {
    line-height: 1.7;
}


/* ==========================================
   FAQ
========================================== */

.faq-section {
    margin-top: 45px;
}

.faq-item {
    border-bottom: 1px solid #e1e7ef;

    padding: 15px 0;
}

.faq-item h3 {
    color: #123f68;

    font-size: 17px;

    margin: 0 0 7px;
}

.faq-item p {
    margin: 0;

    line-height: 1.6;
}


/* ==========================================
   DISCLAIMER
========================================== */

.disclaimer {
    margin-top: 40px;
    padding: 25px 30px;

    background: #f7f9fc;

    border-radius: 8px;
}

.disclaimer h2 {
    color: #123f68;

    margin-top: 0;
}

.disclaimer p {
    line-height: 1.7;
}


/* ==========================================
   TOP AD
   NORMAL PAGE FLOW
   Same behavior as Average Calculator
========================================== */

/*
   IMPORTANT:
   Do NOT use position: fixed here.

   The top advertisement remains in the normal
   page flow and scrolls away naturally.
*/

.top-ad {
    position: static;

    width: 100%;
    max-width: 970px;

    min-height: 90px;

    margin: 0 auto 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    background: #f8fafc;

    color: #94a3b8;

    font-size: 14px;
}


/* ==========================================
   RIGHT SIDEBAR ADS
   DESKTOP
========================================== */

.ad-sidebar {
    width: 300px;

    display: flex;
    flex-direction: column;

    gap: 24px;

    align-self: start;

    box-sizing: border-box;
}


/*
   Both sidebar advertisements are visible.
*/

.ad-sidebar .ad-placeholder {
    width: 300px;
    min-height: 250px;

    position: static;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    opacity: 1;
    visibility: visible;
}


/* ==========================================
   BOTTOM STICKY AD
   DESKTOP
========================================== */

.bottom-sticky-ad {
    display: flex;

    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(970px, calc(100% - 40px));

    min-height: 90px;

    z-index: 9998;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    background: #eef1f5;

    color: #94a3b8;

    font-size: 14px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {


    /* ======================================
       CALCULATOR CARD
    ====================================== */

    .calculator-card {
        width: 100%;

        box-sizing: border-box;

        padding: 20px;
    }


    /* ======================================
       RESULTS
    ====================================== */

    .results-grid {
        grid-template-columns: 1fr;
    }


    /* ======================================
       ACTION BUTTONS
    ====================================== */

    .calculator-actions {
        flex-direction: column;

        width: 100%;
    }

    .calculator-actions button {
        width: 100%;
    }


    /* ======================================
       INFORMATION / FAQ / DISCLAIMER
    ====================================== */

    .calculator-info h2,
    .faq-section h2,
    .disclaimer h2 {
        font-size: 21px;
    }

    .disclaimer {
        padding: 20px;
    }


    /* ======================================
       TOP AD
       NORMAL PAGE FLOW
    ====================================== */

    .top-ad {
        position: static;

        width: 100%;

        min-height: 60px;

        height: 60px;

        margin: 0 auto 25px;

        border-radius: 0;
    }


    /* ======================================
       HIDE RIGHT SIDEBAR ADS
    ====================================== */

    .ad-sidebar {
        display: none;
    }


    /* ======================================
       BOTTOM STICKY AD
    ====================================== */

    .bottom-sticky-ad {
        left: 0;
        right: 0;

        bottom: 0;

        transform: none;

        width: 100%;

        min-height: 60px;

        border-radius: 0;

        border-left: none;
        border-right: none;
        border-bottom: none;

        border-top: 1px solid #d9e0e7;

        z-index: 9999;
    }

}