/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */



/* Subscriptiob popup */

.input_wrapper fieldset {
    padding: 10px;
    position: relative;
    border-radius: 10px;
    border: 2px solid #1e3a8a;
    margin: 44px 0;
    background: #eb88956e;
}

.input_wrapper label.up_label {
    position: absolute;
    top: -28px;
    background: white;
    padding: 0px 10px;
}

.subscription_popup {
    border-radius: 10px;
    z-index: 9999999;
    gap: 10px;
    display: flex;
    overflow: hidden;
    background: white;
    width: 100% !important;
}

.subscription_popup img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.subscription_popup .sub_left_col {
    display: flex;
    flex: 0 0 45%;
    padding: clamp(0.4rem, 1vw, 3rem);
    flex-direction: column;
    justify-content: center;
}

div#preview_popup {
    z-index: 9999;
    padding: 0;
    border-radius: 10px !important;
    background: white !important;
}

.subscription_popup .fields {
    width: 100% !important;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.sub_left_col h2 {
    font-weight: 900;
    margin: 20px 0 !important;
    font-size: clamp(1rem, 1.8vw, 4rem);
    line-height: clamp(1rem, 1.8vw, 4rem);;

}

.subscription_popup .sub_left_col label {
    font-size: clamp(0.6em, 1.2vw, 2em);
    margin: 0;
    line-height: clamp(0.6em, 2vw, 3em);
    color: black !important;
    font-weight: 600;
}

p.message {
    margin: clamp(0.3rem, 1vw, 2rem);
}

.subscription_popup input {
    font-size: clamp(0.6em, 1.2vw, 2em);
    border: 1px solid #cacaca;
    border-radius: 10px !important;
    line-height: 20px !important;
    padding: clamp(0.6em, 0.4vw, 1em) !important;
}

.sub_privacy label {
    line-height: clamp(1.3em, 1.2vw, 3em) !important;
    font-size: clamp(0.6em, 1vw, 2em) !important;
}


.fields.sub_privacy {
    flex-direction: row;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 3px;
}

.fields.sub_privacy input {
    padding: 0px !important;
    border-radius: 0px !important;
}

input#sub_btn {
    background: black;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 27px !important;
}

input#sub_btn:hover {
    border: 2px solid black;
    background: transparent;
    color: black !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: 0.5s ease all;
}

/* End Subscriptiop popup */

@media (max-width: 767px) {

    .instant_overlay {
        padding: 0px;
    }

    .subscription_popup {
        width: 100% !important;
        flex-direction: row;
    }

    .sub_left_col h2 {
        
        margin: 10px 0 !important;
    }

    .subscription_popup .sub_left_col {
        padding: 10px;
        overflow: auto;
        width: 100%;
    }

    .intant-popup-type-subscription {
        width: 95% !important;
    }

    .subscription_popup input#sub_btn {
        width: 100%;
        padding: 4px !important;
    }
    .sub_privacy label {
        font-size: 10px !important;
    }

    .intant-popup-type-subscription i:before {

        color: black;
    }
    .subscription_popup .sub_left_col .firtlabel, .subscription_popup .sub_left_col .emaillabel {
        line-height: 24px !important;
    }
}

/* Unsubscribe Form Styles */
.ipb-unsubscribe-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ipb-unsubscribe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ipb-unsubscribe-header h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ipb-unsubscribe-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ipb-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ipb-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ipb-form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.ipb-form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.ipb-form-group input[type="email"] {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ipb-form-group input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Checkbox Styles */
.ipb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.ipb-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

/* Button Styles */
.ipb-unsubscribe-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.ipb-unsubscribe-btn:hover {
    background: #c0392b;
}

.ipb-unsubscribe-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message Styles */
.ipb-message {
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.ipb-message.ipb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ipb-message.ipb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Style Variations */
.ipb-style-minimal {
    box-shadow: none;
    border: 1px solid #e1e5e9;
}

.ipb-style-minimal .ipb-unsubscribe-btn {
    background: #6c757d;
}

.ipb-style-minimal .ipb-unsubscribe-btn:hover {
    background: #5a6268;
}

.ipb-style-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ipb-style-modern .ipb-unsubscribe-header h3,
.ipb-style-modern .ipb-unsubscribe-header p,
.ipb-style-modern .ipb-form-group label {
    color: white;
}

.ipb-style-modern .ipb-form-group input[type="email"] {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.ipb-style-modern .ipb-unsubscribe-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.ipb-style-modern .ipb-unsubscribe-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipb-unsubscribe-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .ipb-unsubscribe-header h3 {
        font-size: 1.25rem;
    }
    
    .ipb-unsubscribe-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Unsubscribe Page Specific Styles */
.ipb-unsubscribe-page {
    background: #f8f9fa;
}

.ipb-unsubscribe-page .entry-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Email Link Styles */
.ipb-unsubscribe-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 0.9rem;
}

.ipb-unsubscribe-link:hover {
    text-decoration: underline;
}

/* Footer Unsubscribe Link */
.ipb-footer-unsubscribe {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    font-size: 0.85rem;
    color: #666;
}

.ipb-footer-unsubscribe a {
    color: #e74c3c;
    text-decoration: none;
}

.ipb-footer-unsubscribe a:hover {
    text-decoration: underline;
}