/* Popup overlay styling */
.cpf-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darkened background for emphasis */
    justify-content: center;
    align-items: center;
    z-index: 99999999;
}

/* Main popup content styling */
.cpf-popup-content {
    background: #fff; /* Dark gray background */
    /*background: #1a1a1a;  Dark gray background */
    padding: 40px;
    border-radius: 10px;
    position: relative;
    width: 450px;
    max-width: 90%;
    color: #fff;
    text-align: center;
    /*font-family: 'Arial', sans-serif;*/
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}
.cpf-popup-content::before {
    font-size:13px; 
    left: -13px;
    background: #2ea3f2;
    content: "15% Discount";
    width: 153px;
    position: absolute;
    top: 16px;
    left: -34px;
    transform: rotate(-35deg);
    padding: 1px 31px;
    font-weight: 700;
    /*border: 1px solid #005c58;*/
}
.cpf-popup-content.hide-before::before {
    display: none;
}
/* Close button styling */
.cpf-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    font-weight: bold;
}

/* Header and caption styling */
.cpf-popup-content h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.cpf-popup-content .discount-caption {
    font-size: 0.8rem;
    color: #161515;
    margin-bottom: 25px;
}

.cpf-popup-content .discount {
    font-size: 16px;
    color: #2ea3f2;
    font-weight: bold;
    margin: 20px 0;
    padding-bottom: 0px;
}

/* Input fields styling */
.cpf-popup-content input[type="text"],
.cpf-popup-content input[type="email"],#cpf-message,
.cpf-popup-content #message {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #2ea3f2 !important;
    background: #c1f5ee36;
    color: #000 !important;
    border-radius: 5px;
    font-size: 14px;
}
.cpf-popup-content input[type="text"]:focus {
    color: #0000;
}
.cpf-popup-content input[type="text"]::placeholder,
.cpf-popup-content input[type="email"]::placeholder,#cpf-message::placeholder,
.cpf-popup-content #message::placeholder{
  color: #2ea3f2 !important;
}
/* Submit button styling */
.cpf-popup-content button {
    padding: 14px 0;
    background: #2ea3f2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s ease;
}

.cpf-popup-content button:hover {
    background: #0f5c91;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.cpf-loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
