/* Popup Modal Styles */
#popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 999999;
}

#popup-modal.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    margin: auto;
    -webkit-transform: translateY(20vh);
    -ms-transform: translateY(20vh);
    transform: translateY(20vh);
    opacity: 1;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 10px;
        -webkit-transform: translateY(10vh);
        -ms-transform: translateY(10vh);
        transform: translateY(10vh);
    }
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    border: none;
    background: none;
    padding: 5px;
    z-index: 1000000;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

#popup-modal .popup-hidden {
    display: none;
}

/* Form Styles */
form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

form label {
    margin: 5px 0;
    color: #333;
}

form input {
    margin-bottom: 10px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

form button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    -webkit-transition: background 0.3s ease;
    -ms-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

form button:hover {
    background: #005f8d;
}

#reg-mobile {
    margin-bottom: 10px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#password-strength {
    margin: 5px 0;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

#password-feedback {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.very-weak {
    color: #721c24;
    background-color: #f8d7da;
}

.weak {
    color: #856404;
    background-color: #fff3cd;
}

.medium {
    color: #0c5460;
    background-color: #d1ecf1;
}

.strong {
    color: #155724;
    background-color: #d4edda;
}

.very-strong {
    color: #155724;
    background-color: #c3e6cb;
}