.popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .popup-content {
        padding: 50px;
    }
}

.close-btn {
    color: #333;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.popup-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.popup-content input,
.popup-content textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 4px;
    font-family: inherit;
}

.popup-content input:focus,
.popup-content textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.popup-content button {
    background: #000;
    color: #fff;
    padding: 18px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s;
}

.popup-content button:hover {
    background: #333;
}

.popup-content button:disabled {
    background: #999;
    cursor: not-allowed;
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.success-message h4 {
    font-size: 24px;
    color: #000;
    margin-bottom: 10px;
}

.popup-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
