/* Popup Overlay */
.pni-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.pni-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Form Container */
.pni-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.pni-popup-overlay.active .pni-form-container {
    transform: scale(1);
}

/* Close Button */
.pni-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
}
.pni-close-btn:hover {
    color: #333;
}

/* Titles and Text */
.pni-form-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}
.pni-start-date {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Price */
.pni-price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.pni-current-price {
    background: #a8b3d9;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
}
.pni-original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 18px;
}

/* Form Elements */
.pni-form-group {
    margin-bottom: 20px;
}
.pni-form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.pni-form-input:focus {
    outline: none;
    border-color: #a8b3d9;
}
.pni-submit-btn {
    width: 100%;
    background: #a8b3d9;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pni-submit-btn:hover {
    background: #9aa7d1;
}
.pni-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Info and Footer Text */
.pni-guarantee-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}
.pni-countdown-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Countdown Timer */
.pni-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}
.pni-countdown-item {
    text-align: center;
}
.pni-countdown-number {
    background: #f5f5f5;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    min-width: 60px;
}
.pni-countdown-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Privacy Notes */
.pni-privacy-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
.pni-terms-link {
    color: #a8b3d9;
    text-decoration: none;
}
.pni-terms-link:hover {
    text-decoration: underline;
}

/* AJAX Messages & Spinner */
.pni-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}
.pni-message.success {
    background: #d4edda;
    color: #155724;
}
.pni-message.error {
    background: #f8d7da;
    color: #721c24;
}
.pni-loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pni-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes pni-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pni-form-container {
        padding: 30px 20px;
    }
    .pni-form-title {
        font-size: 20px;
    }
    .pni-price-container {
        flex-direction: column;
        gap: 10px;
    }
}