/* ================================
   Custom Inner-Page Popup Form CSS
   ================================ */

.be-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.be-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.be-popup-box {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 30px 25px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.be-popup-overlay.active .be-popup-box {
    transform: scale(1);
}

.be-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.be-popup-close:hover {
    color: #000;
}

.be-popup-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.be-popup-box p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #666;
}

#be-popup-form input,
#be-popup-form select,
#be-popup-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
}

#be-popup-form select {
    appearance: auto;
    -webkit-appearance: menulist;
}

#be-popup-form input:focus,
#be-popup-form select:focus,
#be-popup-form textarea:focus {
    outline: none;
    border-color: #e63946;
}

#be-popup-form button {
    width: 100%;
    padding: 12px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#be-popup-form button:hover {
    background: #c92c39;
}

#be-popup-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.be-popup-msg {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.be-popup-msg.success {
    color: #2a9d3f;
    font-weight: 600;
}

.be-popup-msg.error {
    color: #e63946;
}

@media (max-width: 480px) {
    .be-popup-box {
        padding: 22px 18px;
    }
}