/* B-Side Contact & Newsletter – Styles */
:root {
    --lmn-red:     #C41C1C;
    --lmn-red-dk:  #9E1616;
    --lmn-dark:    #1C1C1C;
    --lmn-gray:    #666;
    --lmn-border:  #e0e0e0;
    --lmn-bg:      rgba(0,0,0,.55);
    --lmn-radius:  12px;
}

.lmn-overlay {
    position: fixed;
    inset: 0;
    background: var(--lmn-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: lmnFadeIn .3s ease;
}
.lmn-overlay[hidden] { display: none; }

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

.lmn-popup {
    background: #fff;
    border-radius: var(--lmn-radius);
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.22);
    animation: lmnSlideUp .35s cubic-bezier(.25,.8,.25,1);
    text-align: center;
}
@keyframes lmnSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}


/* Close */
.lmn-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color .2s;
}
.lmn-close:hover { color: var(--lmn-dark); }

/* Logo */
.lmn-logo {
    margin-bottom: 20px;
}
.lmn-logo img {
    height: 52px;
    width: auto;
}

/* Titolo */
.lmn-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--lmn-dark);
    margin-bottom: 10px;
    line-height: 1.25;
}
.lmn-title span { color: var(--lmn-red); }

/* Testo */
.lmn-text {
    font-size: .92rem;
    color: var(--lmn-gray);
    margin-bottom: 22px;
    line-height: 1.55;
}

/* Form */
.lmn-field {
    margin-bottom: 10px;
}
.lmn-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--lmn-border);
    border-radius: 6px;
    font-size: .93rem;
    color: var(--lmn-dark);
    transition: border-color .2s;
    outline: none;
    font-family: inherit;
}
.lmn-field input:focus {
    border-color: var(--lmn-red);
    box-shadow: 0 0 0 3px rgba(196,28,28,.12);
}
.lmn-field input::placeholder { color: #bbb; }

/* Bottone */
.lmn-btn {
    width: 100%;
    padding: 12px;
    background: var(--lmn-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.lmn-btn:hover   { background: var(--lmn-red-dk); }
.lmn-btn:active  { transform: scale(.98); }
.lmn-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Spinner */
.lmn-btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lmnSpin .7s linear infinite;
    display: inline-block;
}
@keyframes lmnSpin { to { transform: rotate(360deg); } }

/* Messaggio esito */
.lmn-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.4;
}
.lmn-message[hidden] { display: none; }
.lmn-message.lmn-success { background: #e8f5e9; color: #2e7d32; }
.lmn-message.lmn-error   { background: #fce4ec; color: #c62828; }

/* Privacy */
.lmn-privacy {
    font-size: .78rem;
    color: #aaa;
    margin-top: 14px;
    line-height: 1.4;
}
.lmn-privacy a { color: var(--lmn-red); text-decoration: none; }
.lmn-privacy a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 480px) {
    .lmn-popup { padding: 32px 20px 24px; }
    .lmn-title { font-size: 1.2rem; }
}

/* -------------------------------------------------------------------------
   Inline form – shortcode [lmn_form] e blocco Gutenberg
   Layout compatto a colonna, pensato per sidebar e footer widget
   ------------------------------------------------------------------------- */

/* Variante card – usare in aree chiare (pagine, post) */
.lmn-inline-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 16px 16px;
    box-shadow: 0 3px 14px rgba(0,0,0,.10);
    border-top: 4px solid var(--lmn-red);
    box-sizing: border-box;
}
.lmn-inline-card .lmn-inline-title {
    font-size: .95rem !important;
    font-weight: 700 !important;
    color: var(--lmn-dark) !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    border: none !important;
}
.lmn-inline-card .lmn-inline-text {
    font-size: .8rem !important;
    color: var(--lmn-gray) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.45 !important;
}

/* Variante flat – usare in widget sidebar/footer: nessun box,
   il titolo lo imposta WordPress nel campo "Titolo widget" */
.lmn-inline-flat { background: none; padding: 0; }
.lmn-inline-flat .lmn-inline-title,
.lmn-inline-flat .lmn-inline-text { display: none; }

/* Controlli form – identici in entrambe le varianti */
.lmn-inline-form { width: 100%; }

.lmn-inline-row {
    margin: 0 0 6px !important;
    padding: 0 !important;
}
.lmn-inline-row-btn { display: block; margin: 0 !important; }

.lmn-inline-input {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 11px !important;
    background: #fff !important;
    border: 1.5px solid #ccc !important;
    border-radius: 5px !important;
    font-size: .85rem !important;
    color: #1C1C1C !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s;
}
.lmn-inline-input:focus {
    border-color: var(--lmn-red) !important;
    box-shadow: 0 0 0 2px rgba(196,28,28,.12) !important;
}
.lmn-inline-input::placeholder { color: #bbb !important; opacity: 1 !important; }

.lmn-inline-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 7px 0 0 !important;
    padding: 9px 12px !important;
    background: var(--lmn-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-decoration: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s;
}
.lmn-inline-btn:hover    { background: var(--lmn-red-dk) !important; }
.lmn-inline-btn:disabled { opacity: .7 !important; cursor: not-allowed !important; }

.lmn-inline-spinner {
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lmnSpin .7s linear infinite;
    display: inline-block;
}
.lmn-inline-spinner[hidden] { display: none !important; }

.lmn-inline-msg {
    margin: 7px 0 0 !important;
    padding: 7px 9px !important;
    border-radius: 5px !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    display: block;
}
.lmn-inline-msg[hidden]     { display: none !important; }
.lmn-inline-msg.lmn-success { background: #e8f5e9 !important; color: #2e7d32 !important; }
.lmn-inline-msg.lmn-error   { background: #fce4ec !important; color: #c62828 !important; }

.lmn-inline-privacy {
    font-size: .7rem !important;
    color: #aaa !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}
.lmn-inline-privacy a { color: var(--lmn-red) !important; text-decoration: none !important; }
.lmn-inline-privacy a:hover { text-decoration: underline !important; }
