/* EuroBrand Manager - Public CSS v1.1 - Grafica Professionale */

/* Container Form */
.eb-form-container {
    max-width: 520px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.eurobrand-custom-form,
.eb-newsletter-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: box-shadow 0.3s ease;
}

.eurobrand-custom-form:hover,
.eb-newsletter-form:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

/* Header Form */
.eb-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.eb-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.eb-form-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Form Body */
.eb-form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eb-form-group {
    margin: 0;
}

/* Input Fields */
.eb-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3748;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.eb-input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.eb-input::placeholder {
    color: #a0aec0;
}

/* Button */
.eb-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

.eb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.eb-button:active {
    transform: translateY(0);
}

.eb-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Response Messages */
.eb-form-response {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
    display: none;
}

.eb-form-response.success,
.form-response.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.eb-form-response.error,
.form-response.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

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

/* Trust Badge */
.eb-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
}

/* Responsive */
@media (max-width: 600px) {
    .eurobrand-custom-form,
    .eb-newsletter-form {
        padding: 30px 24px;
        border-radius: 12px;
    }
    
    .eb-form-title {
        font-size: 24px;
    }
    
    .eb-form-subtitle {
        font-size: 15px;
    }
    
    .eb-input {
        padding: 12px 16px;
        font-size: 16px; /* Evita zoom su iOS */
    }
    
    .eb-button {
        padding: 14px 20px;
    }
}

/* ============================================ */
/* EXIT-INTENT POPUP */
/* ============================================ */

.eb-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

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

.eb-popup-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.eb-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.eb-popup-close:hover {
    color: #2d3748;
    transform: rotate(90deg);
}

.eb-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
    text-align: center;
}

.eb-popup-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0 0 30px 0;
    text-align: center;
}

.eb-popup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eb-popup-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
    margin-top: 10px;
}

.eb-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

@media (max-width: 600px) {
    .eb-popup-box {
        padding: 40px 30px;
        width: 95%;
    }
    
    .eb-popup-title {
        font-size: 22px;
    }
}
