/* =========================================
   SmartMyTools - Compress PDF
   ========================================= */


/* =========================================
   Compress Page
   ========================================= */

.compress-page {
    width: 100%;
    min-height: 700px;
    padding-bottom: 70px;
    background: #f7f7fb;
}


/* =========================================
   Hero
   ========================================= */

.compress-hero {
    max-width: 1000px;
    margin: 0 auto;

    padding: 45px 24px 25px;

    text-align: center;
}

.compress-hero h1 {
    margin: 0 0 12px;

    color: #30313b;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
}

.compress-hero p {
    max-width: 850px;

    margin: 0 auto;

    color: #555866;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================================
   Upload Area
   ========================================= */

.compress-upload-area {
    max-width: 660px;
    min-height: 250px;

    margin: 0 auto;

    padding: 55px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.compress-upload-area.drag-over {
    background: #fff5f5;
    border-color: #ef4444;
}


/* =========================================
   Select PDF Button
   ========================================= */

.compress-select-button {
    min-width: 240px;
    height: 48px;

    padding: 0 25px;

    border: none;
    border-radius: 7px;

    background: #f53232;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.compress-select-button:hover {
    background: #dc2626;

    transform: translateY(-1px);
}


/* =========================================
   Upload Text
   ========================================= */

.compress-drop-text {
    margin: 14px 0 4px;

    color: #30313b;

    font-size: 14px;
}

.compress-help-text {
    margin: 0;

    color: #737987;

    font-size: 11px;
}


/* =========================================
   Selected PDF
   ========================================= */

.selected-pdf {
    max-width: 660px;

    margin: 24px auto 0;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #d6dce5;
    border-radius: 8px;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.04);
}


/* =========================================
   Selected PDF Header
   ========================================= */

.selected-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 12px;

    border-bottom: 1px solid #d9dde5;
}

.selected-pdf-header h2 {
    margin: 0;

    color: #30313b;

    font-size: 16px;
    font-weight: 600;
}

.remove-pdf-button {
    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: #6b7280;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.remove-pdf-button:hover {
    color: #ef4444;
}


/* =========================================
   Selected PDF File
   ========================================= */

.selected-pdf-file {
    margin-top: 12px;

    padding: 10px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #f8fafc;

    border: 1px solid #d9e0e7;
    border-radius: 7px;
}


/* =========================================
   PDF Icon
   ========================================= */

.pdf-file-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #ffe0e0;
    color: #ef3030;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   File Information
   ========================================= */

.pdf-file-info {
    min-width: 0;
}

.pdf-file-name {
    margin-bottom: 3px;

    color: #30313b;

    font-size: 13px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-file-details {
    color: #737987;

    font-size: 11px;
}


/* =========================================
   Compression Options
   ========================================= */

.compression-options {
    max-width: 660px;

    margin: 20px auto 0;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #d6dce5;
    border-radius: 8px;
}

.compression-options h2 {
    margin: 0 0 18px;

    color: #30313b;

    font-size: 17px;
    font-weight: 600;
}


/* =========================================
   Compression Levels
   ========================================= */

.compression-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compression-option {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px;

    border: 1px solid #d9dde5;
    border-radius: 7px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.compression-option:hover {
    background: #fafafa;

    border-color: #b9c2cf;
}

.compression-option input {
    margin-top: 3px;

    accent-color: #ef3030;
}

.compression-option-content {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.compression-option-content strong {
    color: #30313b;

    font-size: 14px;
}

.compression-option-content span {
    color: #6b7280;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================
   Compress Button
   ========================================= */

.compress-button {
    display: block;

    width: 660px;
    max-width: calc(100% - 40px);

    height: 48px;

    margin: 20px auto 0;

    border: none;
    border-radius: 7px;

    background: #f53232;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.compress-button:hover:not(:disabled) {
    background: #dc2626;
}

.compress-button:disabled {
    background: #f29a9a;

    cursor: not-allowed;
}


/* =========================================
   Error
   ========================================= */

.compress-error {
    width: 660px;
    max-width: calc(100% - 40px);

    margin: 14px auto 0;

    padding: 11px 14px;

    border: 1px solid #f3a6a6;
    border-radius: 6px;

    background: #fff1f1;
    color: #c62828;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   Result
   ========================================= */

.compress-result {
    width: 660px;
    max-width: calc(100% - 40px);

    margin: 24px auto 0;

    padding: 22px;

    background: #f0faf2;

    border: 1px solid #cfe6d3;
    border-radius: 8px;
}


/* =========================================
   Result Header
   ========================================= */

.compress-result-header {
    margin-bottom: 18px;

    text-align: center;
}

.compress-result-header h2 {
    margin: 0 0 6px;

    color: #26723a;

    font-size: 21px;
}

.compress-result-header p {
    margin: 0;

    color: #4f6b55;

    font-size: 13px;
}


/* =========================================
   Compression Summary
   ========================================= */

.compression-summary {
    padding: 16px;

    background: #ffffff;

    border: 1px solid #d9dde5;
    border-radius: 7px;
}


/* =========================================
   Result Actions
   ========================================= */

.compress-result-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    margin-top: 18px;
}

.download-compressed-button,
.start-over-button {
    min-width: 150px;

    height: 42px;

    padding: 0 20px;

    border-radius: 6px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.download-compressed-button {
    border: none;

    background: #0f3b66;

    color: #ffffff;
}

.download-compressed-button:hover {
    background: #0b2f52;
}

.download-compressed-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.start-over-button {
    border: 1px solid #c7ced8;

    background: #ffffff;

    color: #30313b;
}

.start-over-button:hover {
    background: #f1f3f6;

    border-color: #aeb7c3;
}


/* =========================================
   How It Works
   ========================================= */

.compress-how-it-works {
    max-width: 1000px;

    margin: 60px auto 0;

    padding: 0 24px;
}

.compress-how-it-works > h2 {
    margin: 0 0 20px;

    color: #30313b;

    font-size: 27px;
    line-height: 1.3;

    font-weight: 700;
}

.compress-steps {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.compress-step {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #d9dde5;

    border-radius: 8px;
}

.compress-step .step-number {
    width: 34px;
    height: 34px;

    margin-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0f3b66;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.compress-step h3 {
    margin: 0 0 7px;

    color: #30313b;

    font-size: 16px;
}

.compress-step p {
    margin: 0;

    color: #666b76;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================
   Responsive - Tablet
   ========================================= */

@media (max-width: 900px) {

    .compress-steps {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   Responsive - Mobile
   ========================================= */

@media (max-width: 600px) {

    .compress-page {
        padding-bottom: 50px;
    }

    .compress-hero {
        padding: 32px 18px 22px;
    }

    .compress-hero h1 {
        font-size: 28px;
    }

    .compress-hero p {
        font-size: 15px;
    }

    .compress-upload-area {
        min-height: 220px;

        margin-left: 20px;
        margin-right: 20px;

        padding: 45px 20px;
    }

    .compress-select-button {
        width: 100%;
        max-width: 280px;
    }

    .selected-pdf,
    .compression-options {
        margin-left: 20px;
        margin-right: 20px;
    }

    .compress-result-actions {
        flex-direction: column;
    }

    .download-compressed-button,
    .start-over-button {
        width: 100%;
    }

    .compress-how-it-works {
        padding-left: 20px;
        padding-right: 20px;
    }

    .compress-how-it-works > h2 {
        font-size: 24px;
    }

    .compress-steps {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {

    max-width: 1100px;

    margin: 0 auto;

    padding: 40px 24px;

}


.about-section h2 {

    margin: 0 0 20px;

    color: #2d3e50;

    font-size: 30px;

}


.about-section p {

    margin: 0 0 18px;

    color: #4b5d6d;

    font-size: 16px;

    line-height: 1.6;

}


/* =========================================
   FAQ SECTION
========================================= */

.faq-section {

    max-width: 1100px;

    margin: 0 auto;

    padding: 20px 24px 40px;

}


.faq-section h2 {

    margin: 0 0 25px;

    color: #2d3e50;

    font-size: 30px;

}


.faq-item {

    padding: 18px 0;

    border-bottom: 1px solid #d9e0e7;

}


.faq-item h3 {

    margin: 0 0 10px;

    color: #2d3e50;

    font-size: 18px;

}


.faq-item p {

    margin: 0;

    color: #4b5d6d;

    font-size: 16px;

    line-height: 1.6;

}