/* =========================================
   Strong Password Generator
   ========================================= */

.password-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 55px 20px 80px;
}


/* =========================================
   Tool Header
   ========================================= */

.tool-header {
    text-align: center;
    margin-bottom: 35px;
}

.tool-header h1 {
    font-size: 42px;
    color: #2f3e52;
    margin-bottom: 12px;
}

.tool-header p {
    font-size: 18px;
    color: #526070;
}


/* =========================================
   Password Generator
   ========================================= */

.password-generator {
    max-width: 850px;
    margin: 0 auto;

    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;

    padding: 35px;
}


/* =========================================
   Password Display
   ========================================= */

.password-display {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.password-display input {
    flex: 1;

    padding: 16px;

    border: 1px solid #cfd8e3;
    border-radius: 8px;

    font-size: 18px;
    color: #2f3e52;

    background: #f8fafc;
}

.password-display button {
    border: none;

    padding: 0 24px;

    background: #0f3b66;
    color: #ffffff;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.password-display button:hover {
    background: #092c4d;
}


/* =========================================
   Password Length
   ========================================= */

.password-length {
    margin-bottom: 25px;
}

.password-length label {
    display: block;

    margin-bottom: 12px;

    font-weight: 700;
    color: #2f3e52;
}

.password-length-value {
    font-weight: 700;
    color: #ff3131;
}

.password-length input {
    width: 100%;
    cursor: pointer;
}


/* =========================================
   Password Options
   ========================================= */

.password-options {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-bottom: 25px;
}

.password-option {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 14px 16px;

    background: #f8fafc;

    border: 1px solid #d9e0e7;
    border-radius: 8px;

    color: #2f3e52;

    cursor: pointer;
}

.password-option input {
    width: 18px;
    height: 18px;

    accent-color: #0f3b66;

    cursor: pointer;
}


/* =========================================
   Generate Button
   ========================================= */

#generateBtn {
    width: 100%;

    border: none;

    padding: 16px;

    background: #ff3131;
    color: #ffffff;

    border-radius: 8px;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

#generateBtn:hover {
    background: #e62828;
}


/* =========================================
   Tool Information
   ========================================= */

.tool-info {
    max-width: 1100px;

    margin: 70px auto 0;

    text-align: center;
}

.tool-info h2 {
    font-size: 30px;
    color: #2f3e52;

    margin-bottom: 35px;
}


/* =========================================
   Steps
   ========================================= */

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.step {
    background: #ffffff;

    padding: 30px 25px;

    border: 1px solid #d9e0e7;

    border-radius: 12px;
}

.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;
    margin-bottom: 10px;
}

.step p {
    color: #667085;
    line-height: 1.6;
}


/* =========================================
   About Section
   ========================================= */

.about-section,
.faq-section {
    max-width: 1100px;

    margin: 70px auto 0;

    background: #ffffff;

    border: 1px solid #d9e0e7;

    border-radius: 12px;
}

.content-container {
    padding: 40px;
}

.content-container h2 {
    font-size: 30px;

    color: #2f3e52;

    margin-bottom: 25px;
}

.content-container p {
    color: #58677a;

    line-height: 1.7;

    margin-bottom: 15px;
}


/* =========================================
   FAQ
   ========================================= */

.faq-item {
    padding: 20px 0;

    border-bottom: 1px solid #d9e0e7;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #2f3e52;

    font-size: 18px;

    margin-bottom: 10px;
}

.faq-item p {
    margin-bottom: 0;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {

    .password-page {
        padding: 35px 15px 60px;
    }

    .tool-header h1 {
        font-size: 32px;
    }

    .tool-header p {
        font-size: 16px;
    }

    .password-generator {
        padding: 22px;
    }

    .password-display {
        flex-direction: column;
    }

    .password-display button {
        padding: 15px;
    }

    .password-options {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .content-container {
        padding: 25px;
    }

}

/* =========================================
   Disclaimer Section
   ========================================= */

.disclaimer-section {
    max-width: 1100px;
    margin: 35px auto 0;

    background: #fff8e8;

    border: 1px solid #ead9a5;
    border-radius: 12px;

    padding: 35px 40px;
}

.disclaimer-section h2 {
    color: #2f3e52;
    font-size: 28px;
    margin: 0 0 18px;
}

.disclaimer-section p {
    color: #526070;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 14px;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .disclaimer-section {
        padding: 25px 20px;
    }

    .disclaimer-section h2 {
        font-size: 24px;
    }

}

/* ==========================================
   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;
    }

}