/* =========================================
   QR CODE GENERATOR
   ========================================= */


/* =========================================
   PAGE
   ========================================= */

.calculator-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 0 0 60px;
}


.calculator-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb {
    padding: 18px 0;
    font-size: 14px;
    color: #4b5563;
}

.breadcrumb a {
    color: #0f3b66;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}


/* =========================================
   TOP ADVERTISEMENT
   ========================================= */

.top-ad {
    width: 100%;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;

    color: #718096;

    margin-bottom: 40px;
}


/* =========================================
   MAIN PAGE LAYOUT
   ========================================= */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;

    align-items: start;
}


.page-main-content {
    min-width: 0;
}


/* =========================================
   ADVERTISEMENT SIDEBAR
   ========================================= */

.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.ad-placeholder {
    height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed #cbd5e1;
    border-radius: 10px;

    color: #718096;
}


/* =========================================
   TOOL HEADER
   ========================================= */

.tool-header {
    text-align: center;
    margin-bottom: 35px;
}


.tool-header h1 {
    color: #2f3e52;
    font-size: 42px;
    margin: 0 0 12px;
}


.tool-header p {
    color: #526070;
    font-size: 18px;
    margin: 0;
}


/* =========================================
   QR GENERATOR
   ========================================= */

.qr-generator {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}


.qr-input-section {
    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 14px;

    padding: 35px;

    display: flex;
    flex-direction: column;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


.qr-input-section label {
    color: #2f3e52;

    font-size: 17px;
    font-weight: 700;

    margin-bottom: 12px;
}


.qr-input-section textarea {
    width: 100%;
    min-height: 150px;

    padding: 16px;

    border: 1px solid #cfd8e3;
    border-radius: 8px;

    font-family: inherit;
    font-size: 16px;

    color: #2f3e52;

    resize: vertical;
    outline: none;
}


.qr-input-section textarea:focus {
    border-color: #0f3b66;
}


.qr-input-section textarea::placeholder {
    color: #8a96a3;
}


/* Generate Button */

#generateBtn {
    margin-top: 20px;

    border: none;

    background: #ff3131;
    color: #ffffff;

    padding: 15px 30px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}


#generateBtn:hover {
    background: #e82727;
}


/* =========================================
   QR RESULT
   ========================================= */

.qr-result {
    margin-top: 25px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 14px;

    padding: 35px;

    text-align: center;
}


#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 25px;
}


#qrCode canvas,
#qrCode img {
    max-width: 100%;
    height: auto;
}


/* Download Button */

#downloadBtn {
    border: none;

    background: #0f3b66;
    color: #ffffff;

    padding: 14px 30px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}


#downloadBtn:hover {
    background: #092c4d;
}


/* =========================================
   HOW IT WORKS
   ========================================= */

.tool-info {
    margin-top: 60px;
}


.tool-info h2 {
    text-align: center;

    font-size: 30px;
    color: #2f3e52;

    margin-bottom: 35px;
}


.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.step {
    background: #ffffff;

    padding: 30px 25px;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    text-align: center;
}


.step > span {
    width: 42px;
    height: 42px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0f3b66;
    color: #ffffff;

    border-radius: 50%;

    font-weight: 700;
}


.step h3 {
    color: #2f3e52;

    font-size: 18px;

    margin-bottom: 10px;
}


.step p {
    color: #667085;

    line-height: 1.6;
}


/* =========================================
   ABOUT SECTION
   ========================================= */

.about-section {
    margin-top: 60px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 40px;
}


.content-container h2 {
    color: #2f3e52;

    font-size: 30px;

    margin-bottom: 20px;
}


.content-container p {
    color: #526070;

    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 15px;
}


.content-container p:last-child {
    margin-bottom: 0;
}


/* =========================================
   FAQ SECTION
   ========================================= */

.faq-section {
    margin-top: 35px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 40px;
}


.faq-section h2 {
    color: #2f3e52;

    font-size: 30px;

    margin-bottom: 25px;
}


.faq-item {
    padding: 20px 0;

    border-bottom: 1px solid #d9e0e7;
}


.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.faq-item h3 {
    color: #2f3e52;

    font-size: 18px;

    margin-bottom: 10px;
}


.faq-item p {
    color: #526070;

    line-height: 1.6;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1000px) {

    .page-layout {
        grid-template-columns: 1fr;
    }


    .ad-sidebar {
        display: none;
    }

}


@media (max-width: 768px) {

    .calculator-page .container {
        padding: 0 16px;
    }


    .top-ad {
        height: 80px;
        margin-bottom: 30px;
    }


    .tool-header h1 {
        font-size: 32px;
    }


    .tool-header p {
        font-size: 16px;
    }


    .qr-input-section {
        padding: 25px 20px;
    }


    .steps {
        grid-template-columns: 1fr;
    }


    .about-section,
    .faq-section {
        padding: 25px 20px;
    }


    .content-container h2,
    .faq-section h2,
    .tool-info h2 {
        font-size: 26px;
    }

}


@media (max-width: 600px) {

    .tool-header h1 {
        font-size: 28px;
    }


    .breadcrumb {
        font-size: 13px;
    }

}

/* =========================================
   Disclaimer Section
   ========================================= */

.disclaimer-section {
    max-width: 1100px;

    margin: 35px auto 0;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 40px;
}


.disclaimer-section h2 {
    color: #2f3e52;

    font-size: 30px;

    margin: 0 0 20px;
}


.disclaimer-section p {
    color: #526070;

    font-size: 16px;

    line-height: 1.7;

    margin: 0 0 15px;
}


.disclaimer-section p:last-child {
    margin-bottom: 0;
}


/* Mobile */

@media (max-width: 768px) {

    .disclaimer-section {
        padding: 25px 20px;
    }

}

/* ==========================================
   BOTTOM STICKY AD
   DESKTOP + MOBILE
========================================== */

.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) {

    /* Hide sidebar ads on mobile */
    .ad-sidebar {
        display: none !important;
    }

    /* 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;
    }

}

/* =========================================
   Clear QR Code Button
   ========================================= */

#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 2px solid #123f6d;
    border-radius: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}