/* =========================================
   Word to PDF Page
   ========================================= */

.word-to-pdf-page {
    min-height: 100vh;
    background: #f5f7fb;
}


/* =========================================
   Tool Header
   ========================================= */

.tool-header {
    text-align: center;
    padding: 45px 20px 30px;
}

.tool-header h1 {
    margin: 0 0 12px;
    font-size: 38px;
    color: #2f3e52;
}

.tool-header p {
    margin: 0;
    font-size: 17px;
    color: #526174;
}


/* =========================================
   Upload Container
   ========================================= */

.upload-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.upload-box {
    min-height: 310px;
    border: 2px dashed #c7d0dc;
    border-radius: 14px;
    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 30px;
}

.upload-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #e8eef7;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    margin-bottom: 15px;
}

.upload-box h2 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #2f3e52;
}

.upload-box p {
    margin: 5px 0;
    color: #5d6a7a;
    font-size: 16px;
}

.upload-box span {
    margin: 8px 0;
    color: #7b8794;
}


/* =========================================
   Choose File Button
   ========================================= */

.choose-file-btn {
    display: inline-block;

    margin-top: 8px;
    padding: 16px 38px;

    background: #ff3838;
    color: #ffffff;

    border-radius: 10px;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.choose-file-btn:hover {
    background: #e92d2d;
    transform: translateY(-1px);
}

.file-limit {
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #7b8794 !important;
}


/* =========================================
   Selected File
   ========================================= */

.selected-file {
    margin-top: 25px;
    padding: 20px 25px;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-icon {
    font-size: 32px;
}

.file-info div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#fileName {
    color: #2f3e52;
}

#fileSize {
    color: #7b8794;
    font-size: 14px;
}

#convertBtn {
    border: none;
    border-radius: 9px;

    padding: 14px 26px;

    background: #ff3838;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

#convertBtn:hover {
    background: #e92d2d;
}


/* =========================================
   Progress
   ========================================= */

.progress-container {
    margin-top: 25px;
    background: #ffffff;

    padding: 20px 25px;

    border: 1px solid #d9e0e7;
    border-radius: 12px;
}

.progress-text {
    display: flex;
    justify-content: space-between;

    margin-bottom: 10px;

    color: #2f3e52;
    font-weight: 600;
}

.progress-bar {
    height: 10px;

    background: #e7ebf0;
    border-radius: 20px;

    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: #ff3838;

    transition: width 0.3s ease;
}


/* =========================================
   Result
   ========================================= */

.result-container {
    margin-top: 25px;

    padding: 35px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;
}

.success-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #e3f5e9;
    color: #2f9e5b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 700;
}

.result-container h3 {
    margin: 0 0 8px;
    color: #2f3e52;
    font-size: 24px;
}

.result-container p {
    color: #667085;
    margin-bottom: 22px;
}

.download-btn {
    display: inline-block;

    padding: 15px 32px;

    background: #ff3838;
    color: #ffffff;

    text-decoration: none;

    border-radius: 9px;

    font-weight: 700;
}


/* =========================================
   Information
   ========================================= */

.tool-info {
    max-width: 1000px;

    margin: 0 auto;

    padding: 20px 20px 60px;

    text-align: center;
}

.tool-info h2 {
    font-size: 28px;
    color: #2f3e52;

    margin-bottom: 35px;
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.step {
    background: #ffffff;

    border: 1px solid #d9e0e7;
    border-radius: 12px;

    padding: 28px 20px;
}

.step > span {
    width: 42px;
    height: 42px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #ff3838;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.step h3 {
    margin: 0 0 10px;
    color: #2f3e52;
}

.step p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {

    .tool-header h1 {
        font-size: 30px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .selected-file {
        flex-direction: column;
        align-items: stretch;
    }

    #convertBtn {
        width: 100%;
    }

}

/* =========================================
   About Section
========================================= */

.about-section {
    padding: 70px 20px 30px;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-section h2,
.faq-section h2 {
    font-size: 30px;
    color: #2f3e52;
    margin-bottom: 20px;
}

.about-section p {
    color: #526070;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}


/* =========================================
   FAQ Section
========================================= */

.faq-section {
    padding: 30px 20px 50px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #d9e0e7;
}

.faq-item h3 {
    color: #2f3e52;
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-item p {
    color: #526070;
    line-height: 1.6;
}


/* =========================================
   Footer
========================================= */

.site-footer {
    background: #dfe3e8;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #cfd6de;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-links a {
    color: #2f3e52;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
    color: #526070;
    font-size: 14px;
}

/* =========================================
   DISCLAIMER
========================================= */

.word-to-pdf-disclaimer {
    width: 100%;
    padding-bottom: 60px;
}

.word-to-pdf-disclaimer .content-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================================================
   MAIN CONTENT + RIGHT SIDEBAR
   ========================================================= */

.word-ad-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}


/* Main Word to PDF Content */

.word-ad-main {
    min-width: 0;
}


/* Right Sidebar Advertisement */

.word-sidebar-ad {
    width: 100%;
    min-height: 250px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    /* Sidebar follows while scrolling */
    position: sticky;
    top: 20px;
    z-index: 10;
}
/* =========================================================
   WORD TO PDF RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .word-ad-layout {
        grid-template-columns: 1fr;
    }

    .word-sidebar-ad {
        display: none;
    }

}

/* =========================================================
   TOP ADVERTISEMENT
   ========================================================= */

.word-top-ad {
    width: 100%;
    max-width: 970px;
    min-height: 90px;

    margin: 0 auto 30px;
    padding: 0 20px;

    box-sizing: border-box;
}

.word-top-ad .ad-placeholder {
    width: 100%;
    min-height: 90px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;
}

/* =========================================================
   BOTTOM STICKY ADVERTISEMENT
   ========================================================= */

.word-bottom-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 90px;

    background: #ffffff;
    border-top: 1px solid #d9e0e7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;

    z-index: 9999;
}

.site-footer {
    padding-bottom: 120px;
}
/* =========================================
   SELECTED FILE ACTIONS
========================================= */

.selected-file-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.selected-file-actions button {
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}

@media (max-width: 480px) {

    .selected-file-actions {
        flex-direction: column;
    }

    .selected-file-actions button {
        width: 100%;
    }

}
#clearBtn {
    background: #ffffff;
    color: #123f6d;
    border: 1px solid #123f6d;
    border-radius: 6px;
    padding: 10px 18px;
    min-width: 140px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#clearBtn:hover {
    background: #123f6d;
    color: #ffffff;
}