/* PayPal Checkout Styles für MapLocator Pro */

/* PayPal Button Container */
.paypal-button-container {
    margin-top: 20px;
    min-height: 50px;
}

.paypal-button-container .paypal-button {
    margin: 10px 0;
}

/* PayPal Modal Styles */
.paypal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.paypal-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.paypal-modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.paypal-modal-content p {
    margin-bottom: 15px;
    color: #666;
    text-align: center;
}

/* Form Styles */
.paypal-modal .form-group {
    margin-bottom: 20px;
}

.paypal-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.paypal-modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.paypal-modal .form-group input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.paypal-modal .form-group input:required {
    border-left: 4px solid #2563EB;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.modal-buttons .btn-primary {
    background: #2563EB;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.modal-buttons .btn-primary:hover {
    background: #1b47ad;
    transform: translateY(-2px);
}

.modal-buttons .btn-secondary {
    background: #e9ecef;
    color: #6c757d;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-buttons .btn-secondary:hover {
    background: #dee2e6;
}

/* PayPal Messages */
.paypal-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paypal-message i {
    font-size: 18px;
}

.paypal-message button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.paypal-message button:hover {
    opacity: 1;
}

/* Message Types */
.paypal-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.paypal-error {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.paypal-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.paypal-loading {
    background: #2563EB;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Plan Cards with PayPal Integration */
.plan.paypal-enabled {
    position: relative;
   
}

/* .plan.paypal-enabled::before {
    content: '💳 PayPal-Checkout verfügbar';
    position: absolute;
    top: 10px;
    right: -30px;
    background: #ffc439;
    color: #333;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    white-space: nowrap;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .paypal-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .paypal-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .paypal-message {
        animation: slideInDown 0.3s ease;
    }
}

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

/* PayPal Button Customization */
.paypal-button-container .paypal-buttons {
    margin: 10px 0;
}

/* Plan upgrade indicator */
.plan-upgrade-indicator {
    background: #2563EB;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* Privacy Checkbox Styles */
.privacy-checkbox-container {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.privacy-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
}

.privacy-label {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
    display: inline;
}

.privacy-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #1b47ad;
    text-decoration: underline;
}

/* Success checkmark animation */
.success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    margin: 20px auto;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #28a745;
    }
}