/* Popup Styles */
.ns-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ns-popup-wrapper.active {
    display: flex;
}

.ns-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.ns-popup-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ns-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.ns-popup-close:hover {
    color: #333;
}

.ns-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.ns-popup-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.ns-popup-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.ns-subscribe-form {
    margin-bottom: 20px;
}

.ns-form-group {
    margin-bottom: 15px;
}

.ns-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ns-input:focus {
    outline: none;
    border-color: #024533;
}

.ns-button {
    width: 100%;
    padding: 12px 15px;
    background: #024533;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ns-button:hover {
    background: #005a87;
}

.ns-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ns-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.ns-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.ns-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.ns-popup-footer {
    text-align: center;
}

.ns-privacy {
    margin: 0;
    color: #999;
    font-size: 12px;
}

/* Trigger Button */
.ns-trigger-button {
    padding: 0px;
    height: auto;

    font-size: 20px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;

 

    color: #106425;
    border: none;

    display: inline-block;
    font-family: var(--td_default_google_font_2,'Roboto',sans-serif);
    text-align: center;
    position: relative;
    pointer-events: auto!important;
  
    letter-spacing: 0.5px;
    cursor: pointer;

    z-index: 99999999;
}

.ns-trigger-button:hover {

    transform: translateY(-2px);

}

/* Messages */
.ns-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    padding: 15px 40px 15px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.ns-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ns-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ns-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ns-message p {
    margin: 0;
}

.ns-message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.ns-message-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .ns-popup-content {
        padding: 30px 20px;
    }
    
    .ns-popup-header h2 {
        font-size: 24px;
    }
    
    .ns-popup-header p {
        font-size: 14px;
    }
    
    .ns-trigger-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Inline Form Styles */
.ns-form-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ns-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ns-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.ns-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.ns-form-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.ns-inline-form .ns-form-group {
    margin-bottom: 15px;
}

.ns-inline-form .ns-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ns-inline-form .ns-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.ns-inline-form .ns-submit-button {
    width: 100%;
    padding: 14px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-inline-form .ns-submit-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.ns-inline-form .ns-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ns-inline-form .ns-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-size: 14px;
}

.ns-inline-form .ns-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.ns-inline-form .ns-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.ns-form-footer {
    margin-top: 15px;
    text-align: center;
}

.ns-form-footer .ns-privacy {
    margin: 0;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

/* Variante compacta */
.ns-form-wrapper.compact .ns-form-container {
    padding: 20px;
}

.ns-form-wrapper.compact .ns-form-header h3 {
    font-size: 20px;
}

.ns-form-wrapper.compact .ns-inline-form .ns-input {
    padding: 10px 12px;
    font-size: 14px;
}

.ns-form-wrapper.compact .ns-inline-form .ns-submit-button {
    padding: 10px 16px;
    font-size: 14px;
}

/* Responsive para formulario inline */
@media (max-width: 600px) {
    .ns-form-wrapper {
        padding: 10px;
    }
    
    .ns-form-container {
        padding: 20px 15px;
    }
    
    .ns-form-header h3 {
        font-size: 20px;
    }
    
    .ns-form-header p {
        font-size: 14px;
    }
}
