/* Frontend Popup Styles */
.upb-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upb-popup.active { display: flex; }

.upb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.upb-container {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1;
}

.upb-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.1);
    color: #333;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.upb-close:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

.upb-content {
    line-height: 1.6;
}

.upb-content h1, .upb-content h2, .upb-content h3 {
    margin-top: 0;
}

.upb-content img {
    max-width: 100%;
    height: auto;
}

/* Form Styles */
.upb-form-header {
    margin-bottom: 24px;
}

.upb-form-group {
    margin-bottom: 16px;
}

.upb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.upb-form-group input,
.upb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.upb-form-group input:focus,
.upb-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.upb-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.upb-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.upb-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.upb-success {
    text-align: center;
    padding: 40px 20px;
}

.upb-success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.upb-success p {
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
    margin: 0;
}

/* Animations */
.upb-popup[data-animation="fadeIn"] .upb-container {
    animation: upbFadeIn 0.4s ease-out;
}

.upb-popup[data-animation="slideDown"] .upb-container {
    animation: upbSlideDown 0.5s ease-out;
}

.upb-popup[data-animation="slideUp"] .upb-container {
    animation: upbSlideUp 0.5s ease-out;
}

.upb-popup[data-animation="zoomIn"] .upb-container {
    animation: upbZoomIn 0.4s ease-out;
}

.upb-popup[data-animation="bounceIn"] .upb-container {
    animation: upbBounceIn 0.6s ease-out;
}

@keyframes upbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes upbSlideDown {
    from { opacity: 0; transform: translateY(-100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes upbSlideUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes upbZoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes upbBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Prevent body scroll */
body.upb-no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .upb-container {
        max-width: 100% !important;
    }
}
