/* ──────────────────────────────────────────────────────────────────────────────
   Lab Configurator — Form di registrazione
   Stile minimal compatibile con qualsiasi tema WordPress.
   Tutte le classi sono prefissate con .lc- per evitare conflitti.
   ────────────────────────────────────────────────────────────────────────────── */

.lc-box {
    max-width: 560px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
}

.lc-title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

.lc-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ── Errore ──────────────────────────────────────────────────────────────────── */

.lc-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.875rem;
}

/* ── Campi ───────────────────────────────────────────────────────────────────── */

.lc-field {
    margin-bottom: 1rem;
}

.lc-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.lc-req {
    color: #ef4444;
}

.lc-field input[type="text"],
.lc-field input[type="email"],
.lc-field input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #111827;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}

.lc-field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #fff;
}

/* ── Griglia 2 colonne ───────────────────────────────────────────────────────── */

.lc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .lc-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Privacy checkbox ────────────────────────────────────────────────────────── */

.lc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400 !important;
    color: #6b7280 !important;
    font-size: 0.85rem;
}

.lc-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #4f46e5;
}

.lc-checkbox a {
    color: #4f46e5;
    text-decoration: underline;
}

/* ── Pulsante ────────────────────────────────────────────────────────────────── */

.lc-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #4f46e5;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s;
}

.lc-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.lc-btn:active {
    transform: translateY(0);
}

.lc-btn-full {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* ── Link login ──────────────────────────────────────────────────────────────── */

.lc-login-link {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.lc-login-link a {
    color: #4f46e5;
    font-weight: 600;
}

/* ── Successo ────────────────────────────────────────────────────────────────── */

.lc-success {
    text-align: center;
}

.lc-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #16a34a;
}

.lc-success h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: #111827;
}

.lc-success p {
    color: #4b5563;
    font-size: 0.925rem;
    margin-bottom: 0.75rem;
}

.lc-note {
    font-size: 0.8rem !important;
    color: #9ca3af !important;
}

.lc-note-warn {
    color: #d97706 !important;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
