/* ===================================
   Global Registration Popup Styles
   Premium & Important Design
   =================================== */

.register-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(85, 139, 47, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.register-popup-overlay.hidden {
    display: none !important;
}

.register-popup-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf5 100%);
    padding: 0;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(124, 179, 66, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header Banner */
.register-popup-header {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.register-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.register-popup-icon {
    font-size: 50px;
    margin-bottom: 10px;
    position: relative;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.register-popup-header h3 {
    color: white;
    font-size: 24px;
    margin: 0;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.register-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.register-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body */
.register-popup-body {
    padding: 25px 30px 30px;
}

.register-popup-message {
    color: #424242;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

.register-popup-message strong {
    color: #C62828;
}

/* Benefits List */
.register-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.register-popup-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.register-popup-benefits li:hover {
    background: #e8f5e9;
    transform: translateX(-5px);
}

.register-popup-benefits li .benefit-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #7CB342, #558B2F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

/* Actions */
.register-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-register-popup-primary {
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.4);
}

.btn-register-popup-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 179, 66, 0.5);
}

.btn-register-popup-secondary {
    padding: 12px;
    background: transparent;
    color: #9e9e9e;
    border: none;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-register-popup-secondary:hover {
    color: #616161;
}

/* Urgency Badge */
.register-popup-urgency {
    background: linear-gradient(135deg, #FF6B6B, #ee5a5a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .register-popup-box {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .register-popup-header {
        padding: 20px;
    }

    .register-popup-header h3 {
        font-size: 20px;
    }

    .register-popup-body {
        padding: 20px;
    }
}