/* Dedalo Lead Master - frontend styles
 * Tutto prefissato con .dlm- per evitare conflitti con il tema attivo.
 */

.dlm-wrap { display: flex; justify-content: center; padding: 20px 0; }

.dlm-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.dlm-form-container * { box-sizing: border-box; }

.dlm-title {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.dlm-form .dlm-group { margin-bottom: 20px; }

.dlm-row { display: flex; gap: 15px; }
.dlm-row .dlm-group { flex: 1; }

.dlm-form label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.dlm-form input,
.dlm-form select,
.dlm-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.dlm-form input:focus,
.dlm-form select:focus,
.dlm-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.dlm-form textarea {
    min-height: 120px;
    resize: vertical;
}

.dlm-submit {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.dlm-submit:hover  { background: #0056b3; }
.dlm-submit:disabled { background: #ccc; cursor: not-allowed; }

.dlm-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 4px;
}
.dlm-success {
    color: #155724;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}

.dlm-checkbox-group { margin-bottom: 15px; }
.dlm-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}
.dlm-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}
.dlm-checkbox-group a { color: #007bff; text-decoration: none; }
.dlm-checkbox-group a:hover { text-decoration: underline; }

.dlm-consent-toggle {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}
.dlm-consent-toggle:hover { color: #0056b3; }

.dlm-consent-text {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
.dlm-consent-text.show { display: block; }

.dlm-accept-all-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-family: inherit;
}
.dlm-accept-all-btn:hover { background: #218838; }

.dlm-consents-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}
.dlm-consents-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Honeypot: nascosto a utenti umani, visibile ai bot */
.dlm-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Mobile: la riga a 2 colonne diventa singola */
@media (max-width: 480px) {
    .dlm-row { flex-direction: column; gap: 0; }
    .dlm-form-container { padding: 20px; }
}
