/* Popup Overlay */
.ldp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

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

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

/* Popup Container */
.ldp-popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s ease;
}

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

/* Close Button */
.ldp-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ldp-close-popup:hover {
    transform: scale(1.1);
}

/* Popup Content */
.ldp-popup-content {
    background-color: #ef4444;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"%3E%3Cpath d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100" height="100" fill="url(%23grid)"/%3E%3C/svg%3E');
    padding: 50px 40px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Title */
.ldp-popup-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

/* Form Styles */
.ldp-form {
    background: white;
    padding: 30px;
    border-radius: 6px;
}

.ldp-form-group {
    margin-bottom: 20px;
}

.ldp-form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.ldp-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.ldp-form-group input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ldp-form-group input::placeholder {
    color: #9ca3af;
}

/* Checkbox Groups */
.ldp-checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ldp-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.ldp-checkbox-group label {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.ldp-checkbox-group label a {
    color: #ef4444;
    text-decoration: underline;
}

.ldp-checkbox-group label a:hover {
    color: #dc2626;
}

/* Captcha Group */
.ldp-captcha-group {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldp-captcha-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.ldp-captcha-group label {
    margin: 0;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
}

/* Submit Button */
.ldp-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #fca5a5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ldp-submit-btn:hover {
    background-color: #f87171;
    transform: translateY(-2px);
}

.ldp-submit-btn:active {
    transform: translateY(0);
}

.ldp-submit-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Form Message */
.ldp-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

.ldp-form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ldp-form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Elementor Button Widget */
.ldp-trigger-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ldp-trigger-button:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    color: white;
}

.ldp-trigger-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ldp-popup-content {
        padding: 40px 20px 20px;
    }
    
    .ldp-popup-title {
        font-size: 32px;
    }
    
    .ldp-form {
        padding: 20px;
    }
    
    .ldp-close-popup {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .ldp-popup-container {
        width: 95%;
    }
    
    .ldp-popup-title {
        font-size: 28px;
    }
    
    .ldp-form-group input {
        font-size: 14px;
    }
    
    .ldp-checkbox-group label {
        font-size: 12px;
    }
}
