/* =====================================
   BOOKNEST GLOBAL POPUP
===================================== */

.book-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999999;
}

.book-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.book-popup-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 26px 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.25s ease;
}

.book-popup-overlay.active .book-popup-box {
    transform: translateY(0) scale(1);
}

.book-popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    font-size: 38px;
    line-height: 30px;
    font-weight: 300;
    cursor: pointer;
}

.book-popup-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.book-popup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-popup-field label {
    font-size: 19px;
    line-height: 1.25;
    color: #171717;
    font-weight: 500;
}

.book-popup-field input,
.book-popup-field textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #cfcfcf;
    color: #333333;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.book-popup-field input {
    height: 39px;
}

.book-popup-field textarea {
    min-height: 95px;
    resize: vertical;
}

.book-popup-field input::placeholder,
.book-popup-field textarea::placeholder {
    color: #606060;
}

.book-popup-field input:focus,
.book-popup-field textarea:focus {
    background: #dddddd;
    box-shadow: 0 0 0 2px rgba(255, 55, 10, 0.18);
}

.book-popup-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 10px;
    background: #ff350b;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.book-popup-submit:hover {
    opacity: 0.92;
}

.book-popup-submit:active {
    transform: scale(0.99);
}

body.book-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .book-popup-overlay {
        padding: 14px;
    }

    .book-popup-box {
        max-width: 100%;
        border-radius: 16px;
        padding: 24px 18px 22px;
    }

    .book-popup-close {
        top: 12px;
        right: 14px;
    }

    .book-popup-field label {
        font-size: 16px;
    }

    .book-popup-field input,
    .book-popup-field textarea {
        font-size: 15px;
    }
}
