/* --- WBM Native Modal Styles --- */

/* Sfondo scuro e layout centrato */
.wbm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Effetto sfocato figo sul background */
}

/* Contenitore principale */
.wbm-modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 800px;
    animation: wbmFadeInUp 0.4s ease-out forwards;
}

/* Struttura a 2 colonne (ispirata alla tua immagine) */
.wbm-modal-content {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Bottone di chiusura (La 'X' in alto a destra) */
.wbm-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff !important;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}
.wbm-modal-close:hover {
    transform: scale(1.2);
}

/* --- Colonna Sinistra (Grafica) --- */
.wbm-modal-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px;
    position: relative;
}
.wbm-modal-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* --- Colonna Destra (Form e Testi scuri come da tua immagine) --- */
.wbm-modal-right {
    flex: 1.2;
    background-color: #2b2b30; /* Il grigio/nero della tua immagine */
    padding: 50px 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wbm-modal-title {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.wbm-modal-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #cccccc !important;
    margin-bottom: 30px;
}
.wbm-modal-desc strong {
    color: #ffffff !important;
}

/* --- Stile del Form --- */
.wbm-input-group {
    margin-bottom: 20px;
}

.wbm-input-group input {
    width: 100%;
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.wbm-input-group input:focus {
    border-color: #ffffff !important;
    outline: none;
    background-color: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

.wbm-submit-btn {
    width: 100%;
    background-color: #1D72AA !important;
    color: #ffffff !important;
    border: none;
    padding: 20px 10px 20px 10px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px 3px 3px 3px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wbm-submit-btn:hover {
    background-color: #e4e4e4 !important;
    color: #1D72AA !important;
}
.wbm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Risposta Form */
.wbm-response-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.wbm-msg-success { background: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; color: #2ecc71; }
.wbm-msg-error { background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #e74c3c; }

/* --- Animazioni --- */
@keyframes wbmFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .wbm-modal-content {
        flex-direction: column;
    }
    .wbm-modal-left {
        padding: 30px;
        display: none; /* Su mobile nascondiamo la grafica per dare spazio vitale al form */
    }
    .wbm-modal-right {
        padding: 40px 20px;
    }
    .wbm-modal-close {
        top: -35px;
        right: 10px;
    }
}